I have an issue related to variable products within the "Bought Together" plugin. When editing a product, if the price for a variable product in the "Bought Together" list is set to 100%, the price fails to load on the front-end when a user selects an option for that particular variable product.
To replicate the problem, you can visit the following page: https://www.menghsiuw.sg-host.com/product/toyota-supra-a90-mk5-2-0-aluminum-alloy-cold-air-intake/. Upon selecting an option for a "Bought Together" item, you will notice that the price does not appear as expected.
As a temporary workaround, avoiding setting the price to 100% for variable products within the "Bought Together" items resolves the problem. Instead, setting it to 95% or 99% works fine. The issue seems to occur specifically when the price is set to 100%.
However, disabling the option to load product prices in the background (Ajax loading) has consequences related to caching system and country-specific pricing rules.
There are cases where we need to hide prices based on country-specific rules. Disabling Ajax loading is not an option for us, as it would result in inconsistent pricing being displayed because of the cache.
Ideally, we are seeking a solution that allows both the "Bought Together" plugin to function correctly with variable products set to 100% price and maintains the Ajax loading functionality.
Is it possible to address this issue from your plugin's side, as loading the price in the background is a common feature provided by WooCommerce?
Thanks for the code snippet you provided to address the issue. It has solved the problem.
I have a quick question regarding the code: Is this a temporary fix, and is there a plan to incorporate a permanent solution within the plugin itself? If there is a plan for a permanent fix, I would appreciate any information you can provide regarding its timeline.
Hi,
I have an issue related to variable products within the "Bought Together" plugin. When editing a product, if the price for a variable product in the "Bought Together" list is set to 100%, the price fails to load on the front-end when a user selects an option for that particular variable product.
To replicate the problem, you can visit the following page: https://www.menghsiuw.sg-host.com/product/toyota-supra-a90-mk5-2-0-aluminum-alloy-cold-air-intake/. Upon selecting an option for a "Bought Together" item, you will notice that the price does not appear as expected.
As a temporary workaround, avoiding setting the price to 100% for variable products within the "Bought Together" items resolves the problem. Instead, setting it to 95% or 99% works fine. The issue seems to occur specifically when the price is set to 100%.
Could you please have a look at this issue?
Thank you.
Best regards,
Attached files: wpc2.jpg
Hi Varlaj,
I've turned off this option https://app.screencast.com/gnzeTGrecqTuC and the price works fine now https://www.menghsiuw.sg-host.com/product/toyota-supra-a90-mk5-2-0-aluminum-alloy-cold-air-intake/
Please check again and let me know if have any issues when turning off this option.
Best regards,
Dustin
Thank you for your prompt response.
However, disabling the option to load product prices in the background (Ajax loading) has consequences related to caching system and country-specific pricing rules.
There are cases where we need to hide prices based on country-specific rules. Disabling Ajax loading is not an option for us, as it would result in inconsistent pricing being displayed because of the cache.
Ideally, we are seeking a solution that allows both the "Bought Together" plugin to function correctly with variable products set to 100% price and maintains the Ajax loading functionality.
Is it possible to address this issue from your plugin's side, as loading the price in the background is a common feature provided by WooCommerce?
Best regards.
I've added a snippet for you here https://app.screencast.com/jrKEo4A1YkQ6H and seem it works https://www.menghsiuw.sg-host.com/product/toyota-supra-a90-mk5-2-0-aluminum-alloy-cold-air-intake/
Added snippet for backup:
Best regards,
Dustin
Dear Dustin,
Thanks for the code snippet you provided to address the issue. It has solved the problem.
I have a quick question regarding the code: Is this a temporary fix, and is there a plan to incorporate a permanent solution within the plugin itself? If there is a plan for a permanent fix, I would appreciate any information you can provide regarding its timeline.
Thank you once again for your prompt assistance.
Best regards.
I'm so sorry for the late reply!
This is a compatibility issue with another plugin, so we can use a snippet only. We won't add this change to our plugin permanently.
This snippet was added to a child theme, so it wasn't lost when updating WordPress, WooCommerce, or our plugin. So, don't worry about that.
Best regards,
Dustin
No worries about the delay in response. Ok, you can close the ticket. Thank you for your assistance.
Have a nice day.