Home Forums WoodMart support forum Frequently bought together compability issues

Frequently bought together compability issues

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #499467

    metuza
    Participant

    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, 5 months ago by metuza.
    #499645

    metuza
    Participant

    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

    #499662

    Luke Nielsen
    Keymaster

    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, 5 months ago by Luke Nielsen.
    #499669

    metuza
    Participant

    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

    #499810

    Luke Nielsen
    Keymaster

    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

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Frequently bought together compability issues’ is closed to new replies.