Changing WOOCS Currency Messes Up WOOF Price Range Values
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 revemp on December 25, 2019, 21:25I have 2 currencies set up with WOOCS. I also have a price filter set up with WOOF. In my menu, I have items including min and max ranges - for example: /shop/?results=1&min_price=100&max_price=200
I need the price filter in WOOF to show the min and max value product results in whatever currency I choose to change to, but currently, when I change currency in WOOCS, the WOOF price values adjust in the sidebar. So for example, if I have CAD as first currency, and I have the min set to $100 and max set to $200 as it's in the URL above, everything works great. But the moment I change currency to USD, the sidebar price filter adjusts for the range to be $76 min and $152 max. I don't want this to happen. I want, when I change to USD, for the store to show me results still between $100 and $200, but now for items worth that much in USD.
How can I get this to work?
I have 2 currencies set up with WOOCS. I also have a price filter set up with WOOF. In my menu, I have items including min and max ranges - for example: /shop/?results=1&min_price=100&max_price=200
I need the price filter in WOOF to show the min and max value product results in whatever currency I choose to change to, but currently, when I change currency in WOOCS, the WOOF price values adjust in the sidebar. So for example, if I have CAD as first currency, and I have the min set to $100 and max set to $200 as it's in the URL above, everything works great. But the moment I change currency to USD, the sidebar price filter adjusts for the range to be $76 min and $152 max. I don't want this to happen. I want, when I change to USD, for the store to show me results still between $100 and $200, but now for items worth that much in USD.
How can I get this to work?
Quote from Pablo Borysenco on December 26, 2019, 12:26Hello
Try in file \wp-content\plugins\woocommerce-products-filter\views\shortcodes\woof_price_filter_slider.php delete these lines - https://c2n.me/45hG9JC.png AND in file \wp-content\plugins\woocommerce-products-filter\js\front.js - delete - https://c2n.me/45hGl4j.png
Hello
Try in file \wp-content\plugins\woocommerce-products-filter\views\shortcodes\woof_price_filter_slider.php delete these lines - https://c2n.me/45hG9JC.png AND in file \wp-content\plugins\woocommerce-products-filter\js\front.js - delete - https://c2n.me/45hGl4j.png
Quote from revemp on December 26, 2019, 21:41Hello,
It worked for the sidebar, but the results are still showing the same products. I have a $90 USD item as a result in $100 to $200 range. Is there any additional code that needs to be modified?
Hello,
It worked for the sidebar, but the results are still showing the same products. I have a $90 USD item as a result in $100 to $200 range. Is there any additional code that needs to be modified?
Quote from Pablo Borysenco on December 27, 2019, 12:18Hello
In this case, you should hire a developer.
custom code should change the search query after changing the currency
Hello
In this case, you should hire a developer.
custom code should change the search query after changing the currency
Quote from revemp on December 27, 2019, 18:30Hello,
Don't the WOOF filters modify the products results loop? We thought getting both the WOOF and WOOCS plugins would solve this issue, that's the whole point why we bought them.
Also for the first fix for the sidebar values - is there a way that we can keep that fix as permanent so that we don't have to keep editing the plugin every time there is a WOOF update?
Hello,
Don't the WOOF filters modify the products results loop? We thought getting both the WOOF and WOOCS plugins would solve this issue, that's the whole point why we bought them.
Also for the first fix for the sidebar values - is there a way that we can keep that fix as permanent so that we don't have to keep editing the plugin every time there is a WOOF update?
Quote from Pablo Borysenco on December 30, 2019, 12:34Hello
the WOOF and WOOCS plugins would solve this issue, - It is not issue. This is your custom functionality.
is there a way that we can keep that fix as permanent - Unfortunately no
Hello
the WOOF and WOOCS plugins would solve this issue, - It is not issue. This is your custom functionality.
is there a way that we can keep that fix as permanent - Unfortunately no
Quote from revemp on December 31, 2019, 20:34Hello,
This is very much issue and we don't see how you can consider it custom functionality when your GET parameters are min_price=100&max_price=200 and yet we are getting product results such as $91.33 in the product loop. We use the GET parameters to generate price range URLs (for example, "Gift ideas $100 to $200") and $91.33 is clearly outside of that range.
Hello,
This is very much issue and we don't see how you can consider it custom functionality when your GET parameters are min_price=100&max_price=200 and yet we are getting product results such as $91.33 in the product loop. We use the GET parameters to generate price range URLs (for example,"Gift ideas $100 to $200") and $91.33 is clearly outside of that range.
Quote from Pablo Borysenco on January 2, 2020, 11:59Hello
Return all the code as it was before. Everything works correctly!
GET parameters are min_price=100&max_price=200 - Yes, that's right! All prices are stored in one currency! And the search goes only in one currency. And otherwise it will not work because prices are stored in the database without conversion
WOOCS - changes prices in the slider but not in the URL and it provides the correct filter operation
Hello
Return all the code as it was before. Everything works correctly!
GET parameters are min_price=100&max_price=200 - Yes, that's right! All prices are stored in one currency! And the search goes only in one currency. And otherwise it will not work because prices are stored in the database without conversion
WOOCS - changes prices in the slider but not in the URL and it provides the correct filter operation