Issue with Sales Booster Add-ons: Quantity Discount

This topic has 7 replies, 2 voices, and was last updated 5 days, 16 hours ago ago by Samir Malik

  • Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 22, 2025 at 20:58

    Hello XStore Support Team,

    I am experiencing a serious issue with the Sales Booster → Quantity Discounts (Multibuy) feature on the cart page.

    1. Quantity Discount Recalculation Bug

    I have the following tiered discounts set:

    Buy 2 → 5% off

    Buy 3 → 10% off

    Buy 4 → 15% off

    Here is the problem:

    Increasing quantity works correctly and the correct tier discount is applied.

    However, when decreasing quantity across tiers, the discounted price does not revert to the correct tier or original price.

    Example:

    At quantity 5, the discount is correct.

    When reducing quantity back to 1, the cart still shows the discounted price (e.g., the 2-item tier) instead of the original price.

    The correct price only appears after manually refreshing the page (F5).

    2. This is only happening in the XStore AJAX cart

    My progress/free-shipping bar (custom-built) always shows the correct total immediately, which confirms the issue is specifically with the XStore cart update logic, not WooCommerce, not caching, and not my bar.

    3. Additional Testing

    To verify the issue further, I changed the discount intervals (e.g., from 2–4 → 3–4). The bug behaves the same:

    When stepping down across discount tiers, the cart keeps the old tier price.

    Only a full page refresh recalculates the correct price.

    This confirms that the Sales Booster discount logic is not recalculating during XStore’s AJAX quantity update, which causes:

    Incorrect subtotal displayed in the cart

    Correct price only shown after refresh or at checkout

    Confusing price changes for customers between basket → checkout

    4. Impact

    Customers see one price in the basket and a different one on checkout after recalculation.
    This is a critical issue because it directly affects trust and conversions.

    5. Request

    Please provide a fix or patch so that Sales Booster Quantity Discounts recalculate correctly during AJAX cart quantity updates, especially when decreasing quantity across tiers (e.g., 5 → 1).

    This is a core requirement of any multibuy system and is currently not functioning correctly.

    I have provided access to our staging application in the private area.

    If you need FTP access, I have also left the details there.

    In the video attached, please see me decraese quantity from 5 to 1, it shows the incorrect price £3.39, then I refresh the page and it will show £3.99, my shipping bar I created is the same design as the one provided by yourselves and this always shows the correct amount to get to the £25 free shipping.

    Thank you, and please treat this as urgent.

    Content is visible for topic creator and
    support staff only.
    Files is visible for topic creator and
    support staff only.
    6 Answers
    Avatar: Samir Malik
    Samir Malik
    Support staff
    November 24, 2025 at 08:25

    Hello @Cookster Creative,

    Our team is currently working on your request and will get back to you shortly.

    Best regards,
    The 8Theme Team

    Avatar: Samir Malik
    Samir Malik
    Support staff
    November 24, 2025 at 16:52

    Dear @Cookster Creative,

    We have added the following code snippet to your website to force cache purging and ensure the cart content is refreshed:

    
    add_action('wp_footer', function() {
        ?>
        <script>
            jQuery(document).ready(function ($){
                jQuery(function($) {
    
                    // Increase / decrease qty
                    $(document).on('click', '.woocommerce-mini-cart .quantity .plus, .woocommerce-mini-cart .quantity .minus', function() {
                        // Always force fragment refresh (for mini-cart/header cart)
                        setTimeout(function (){
                            $(document.body).trigger('wc_fragment_refresh');
                        }, 1000);
                    });
    
                });
    
            });
        </script>
        <?php
    }, 100);
    

    Could you please check if the off-canvas cart is now functioning correctly?

    Thank you for your cooperation.

    Best regards,
    8Theme Team

    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 25, 2025 at 00:47

    Hi,

    Issue is partially solved, off canvas cart functions good correct when I add and remove products and so does the main cart partially. See screenshot, the subtotal inline with the product shows correct £3.99, but the subtotal on the right side is still showing £3.39.

    For this, I tested adding 5 products and decreasing quantity down to 1, the correct price £3.99 displays in line with product subtotal but still incorect on the right hand side cart totals. The mini cart is working good.

    Files is visible for topic creator and
    support staff only.
    Avatar: Samir Malik
    Samir Malik
    Support staff
    November 26, 2025 at 14:58

    Dear @Cookster Creative,

    We have applied the new hotfix (the link is available in the private content area) to your staging website.

    Everything should now be functioning properly.

    Could you please verify this on your end?

    Thank you.

    Best regards,
    The 8Theme Team

    Content is visible for topic creator and
    support staff only.
    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 26, 2025 at 16:08

    Hi Samir,

    I’ve had to disable WPRocket due to it causing too many issues on my site, after disabling it my issues have gone away, including this issue with the subtotal not updating correctly.

    Therefore, I do not think I need to add this fix to my live site, as it is currently working as intended.

    I apologise for raising this to you, although it may help for others who use WPRocket in the future.

    Kind regards,
    Matthew

    Avatar: Samir Malik
    Samir Malik
    Support staff
    November 27, 2025 at 03:29

    Thanks @Cookster Creative,

    Please keep that code snippet in the case you want to use WP Rocket plugin.

    Best Regards,
    8Theme’s Team

  • Viewing 7 results - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.