0.00  View cart

Support Easy Booking: Duration Discounts Duration Discounts for bundle product not working since 1.8.2

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #8573
    Christoph
    Participant

    Hi,

    since the update 1.8.2, the duration discounts for bundle products are not working anymore. 1.8.1 (after downgrading) still works.

    Product bundle plugin, version 6.4.2

    Thanks for an update!

    Best regards,

    Christoph

    #8575
    Ashanna
    Plugin's author

    Hello,

    I’ll have a look as soon as I can (not today).

    Can you give me more information about the issue please? Does it happen on all product types? Or only variable?

    Regards,
    Natasha

    #8576
    Christoph
    Participant

    Sure.

    The products in our bundle are all simple, not variable. I know, you changed something about variable products, but it broke simple products (I assume). Version 1.8.1 works.

    Thanks,

    Christoph

    • This reply was modified 3 weeks ago by Christoph.
    #8580
    Ashanna
    Plugin's author

    Hello,

    It works when I try on the demo (see here, there’s a $2 discount on the bundled item for 2 days), but it’s not the latest version of Product Bundles so I’ll need to try again later with it.

    On your bundle product, you need to check “Priced individually” and “Apply Easy Booking: Duration Discounts pricing?” option.

    Can you tell me what doesn’t work exactly?

    Thanks.

    Regards,
    Natasha

    #8605
    Christoph
    Participant

    Sorry for my late reply!

    Yes I am aware of these settings, I didn’t change them when I updated – before the update, it worked.

    The duration discounts are simply not applied, only the regular price.

    I can give you access to our test system if you want – there, the current version of product bundles is installed.

    Best regards,

    Christoph

     

    #8607
    Ashanna
    Plugin's author

    Hello,

    I’ll have a look at product bundles today, because there are also issues with availability apparently. They seem to have changed how the bundles work in the latest versions. I’ll keep you informed as soon as possible and release updates if necessary.

    Thanks for your patience.

    Regards,
    Natasha

    #8609
    Ashanna
    Plugin's author

    Found the issue! I had indeed broken something by fixing variable products 🙂

    I’ll release an update (after I check the availability issue), but if you want to try yourself in the meantime:

    • Go to easy-booking-duration-discounts/includes/ebdd-functions.php
    • Go to line 43 and replace:
    if ( $_product->is_type('variation') ) {
    	$product_id = $_product->get_parent_id();
    }
    
    $apply_discounts = get_post_meta( $product_id, '_apply_ebdd_discounts', true );

    • With:
    if ( $_product->is_type('variation') ) {
    	$apply_discounts = get_post_meta( $_product->get_parent_id(), '_apply_ebdd_discounts', true );
    } else {
    	$apply_discounts = get_post_meta( $_product_id, '_apply_ebdd_discounts', true );
    }

    I hope this helps 🙂

    Regards,
    Natasha

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

You must be logged in to reply to this topic.

Want to know what's next with Easy Booking? Check the roadmap!