Woo Products Filter - ajax price issue
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from Kerry on April 29, 2020, 03:07Hi! Thank you for a great plugin.
I'm having a conflict with the Woocommerce Wholesale Plugin. Which basically serves up a different price for people in a certain "role". On the Woo shop page, when you first load the page, all is well and you will see correct wholesale price.
When I select a filter (filter set automatically, Ajax enabled, auto-submit enabled, not using turbo) - the correct products come back, but the price no longer shows the "wholesale" price, it shows the regular retail price.
However, if I "refresh" the page with woof filter applied, it shows the correct wholesale price.
So it seems like when the plugin is using ajax to refresh, it's pulling unfiltered prices. Can you let me know how the prices are pulled on Shop page with Ajax? Do you have any ideas how I can make the Ajax request pull the correct prices? My client needs the Ajax filtering, so I can't just use post.
Thank you,
Kerry Geiger
kerry.geiger@bluejux.com
Hi! Thank you for a great plugin.
I'm having a conflict with the Woocommerce Wholesale Plugin. Which basically serves up a different price for people in a certain"role". On the Woo shop page, when you first load the page, all is well and you will see correct wholesale price.
When I select a filter (filter set automatically, Ajax enabled, auto-submit enabled, not using turbo) - the correct products come back, but the price no longer shows the"wholesale" price, it shows the regular retail price.
However, if I"refresh" the page with woof filter applied, it shows the correct wholesale price.
So it seems like when the plugin is using ajax to refresh, it's pulling unfiltered prices. Can you let me know how the prices are pulled on Shop page with Ajax? Do you have any ideas how I can make the Ajax request pull the correct prices? My client needs the Ajax filtering, so I can't just use post.
Thank you,
Kerry Geiger
Quote from Kerry on April 29, 2020, 03:42Hi, I just found this out -- The Woocommerce Wholesale plugin uses the following actions and filters to adjust the price on the front end. Is there a way to include this filter when running the ajax for woof filter? I'm comfortable with php/hooks etc, but want you guidance if you know of any reasons for this particular issue.
add_filter( 'woocommerce_get_price_html', array($this, 'wwp_change_product_price_display'), 200 , 2 );
Hi, I just found this out -- The Woocommerce Wholesale plugin uses the following actions and filters to adjust the price on the front end. Is there a way to include this filter when running the ajax for woof filter? I'm comfortable with php/hooks etc, but want you guidance if you know of any reasons for this particular issue.
add_filter( 'woocommerce_get_price_html', array($this, 'wwp_change_product_price_display'), 200 , 2 );
Quote from Pablo Borysenco on April 29, 2020, 13:37Hello Kerry
My plugin does not affect the product template and cannot change prices. the plugin uses standard woocommerce features to display products.
So my plugin cannot enable or disable the functionality of a third-party plugin.
Contact to third-party plugin support. Perhaps the author of this plugin disable price changes on the admin panel side(is_admin()==false) But Ajax request is always in admin panel area (is_admin() ==true)
Hello Kerry
My plugin does not affect the product template and cannot change prices. the plugin uses standard woocommerce features to display products.
So my plugin cannot enable or disable the functionality of a third-party plugin.
Contact to third-party plugin support. Perhaps the author of this plugin disable price changes on the admin panel side(is_admin()==false) But Ajax request is always in admin panel area (is_admin() ==true)
Quote from Kerry on April 29, 2020, 21:44Hi Pablo,
I am not talking about the product template, I'm talking about the "Shop page" (archive products) which your plugin affects dramatically. This is the page with the woof filter.
Please, can you look again at my question? The ajax filtering does not pull the correct "price" or honor the filter I mentioned above UNTIL your reload the page manually.
So when you fire woof product filter using AJAX, you get the wrong price. When you reload the page, you get the right price. This is your ajax code not honoring
woocommerce filter - woocommerce_get_price_html.
thanks,
Kerry
Hi Pablo,
I am not talking about the product template, I'm talking about the"Shop page" (archive products) which your plugin affects dramatically. This is the page with the woof filter.
Please, can you look again at my question? The ajax filtering does not pull the correct"price" or honor the filter I mentioned above UNTIL your reload the page manually.
So when you fire woof product filter using AJAX, you get the wrong price. When you reload the page, you get the right price. This is your ajax code not honoring
woocommerce filter - woocommerce_get_price_html.
thanks,
Kerry
Quote from Kerry on April 30, 2020, 02:50You can close this request. I still have the issue, there is a conflict with woo pricing display filters and ajax results and post results, but I don't have the time to sort it out, so I'm approaching the issue in a different way.
You can close this request. I still have the issue, there is a conflict with woo pricing display filters and ajax results and post results, but I don't have the time to sort it out, so I'm approaching the issue in a different way.
Quote from Pablo Borysenco on April 30, 2020, 13:58Hello Kerry
https://c2n.me/47iBxGl.png - I am sure that I wrote in this post - https://c2n.me/47iBBPg.png I understand you, and I repeat once again that you should contact third-party plugin support and you can insert my messages (the author of a third-party plugin will be able to understand the reason)
Hello Kerry
https://c2n.me/47iBxGl.png - I am sure that I wrote in this post - https://c2n.me/47iBBPg.png I understand you, and I repeat once again that you should contact third-party plugin support and you can insert my messages (the author of a third-party plugin will be able to understand the reason)