Frequently bought together compability issues
-
Hello,
I am testing Woodmart frequently bought together option and found that there is a price display issue when i have YITH dynamic pricing enabled.
If you look at this product, and also the 2 other bundled products you will see the display price vary. It works ok in cart and checkout but not in single product: https://www.arctic-fritid.as/produkt/jaktutstyr/vapentilbehor/ballistol-balsin-lys-stokkolje-50ml/
All 3 products included in the bundle is setup with 10% discount.
Is there anything that can be done to fix the price display?
I have added login credentials if needed.
Brgds
Rune
-
This topic was modified 1 year, 10 months ago by
metuza.
Hi again,
I did find a solution. I need to change priority on the below filter from 10 to 11. Then everything seems to work ok.
But how can i access these filters from my functions.php?
add_filter( ‘woocommerce_get_price_html’, array( $this, ‘update_product_price’ ), 11, 2 );
Brgds
Rune
Hello,
In general, you are right, but it will not be possible to fix the problem with frequently bought together with the help of hooks, it will probably be easier to change the position of the hook (reduce it) in the YITH dynamic pricing enabled, because during operation, the filter you specified is created, and after the frequently bought together products are displayed, this filter is deleted.
Kind Regards
-
This reply was modified 1 year, 10 months ago by
Luke Nielsen.
Hello,
Ok, that is the same how dynamic pricing works. Well then the perfect solution would be to add a filter to the priority of the “woocommerce_get_price_html” filter, then we can easily change the priority, and all problems solved.
Brgds
Rune
Hello,
Great! If you have any more questions or need further assistance, please let me know. I’m always happy to assist you.
Have a good day!
Kind Regards
The topic ‘Frequently bought together compability issues’ is closed to new replies.