Sales Booster – Shipping Progress Bar in Basket calculating incorrectly with Multi-Buy Discount

This topic has 40 replies, 3 voices, and was last updated 2 weeks ago ago by Jack Richardson

  • Avatar: Cookster Creative
    Cookster Creative
    Participant
    October 28, 2025 at 21:33

    Set the minimum order for standard delivery to £25

    attachment 1: shows correctly, £5.99 + £19.01 = £25

    attachment2: updated the fun time lubricant quantity to 2, this means its 5% off so each item is now £5.69, whereas if purchasing just 1 its £5.99. The shipping bar is displaying incorrect price, £13.02 + £11.38 = £24.40 – if i refresh page it then shows correctly.

    attachment 3: page refreshed, shows correctly. Issue seems the shipping bar is not refreshing with the cart update properly.

    Attached another topic with same issue on Checkout page: https://www.8theme.com/topic/shipping-progress-bar-not-updating-in-checkout-properly/#post-458292

    Files is visible for topic creator and
    support staff only.
    39 Answers
    Avatar: Cookster Creative
    Cookster Creative
    Participant
    October 29, 2025 at 06:38
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 29, 2025 at 08:31

    Hello, Cookster Creative

    To ensure you get the best support, we’re escalating your request to another specialist from our team, who will take a closer look at the issue.

    They will update you as soon as possible, and we’ll make sure to keep you posted. If you have any additional details that might help, feel free to reply here.

    Thank you for your cooperation!

    Best Regards,
    The 8Theme Team

    Avatar: Cookster Creative
    Cookster Creative
    Participant
    October 29, 2025 at 16:41

    Hi, I have another issue with the shipping bar this time in my checkout it doesn’t work as good as it could.

    I have enabled the option provided by Xstore widget where you can update quantity in checkout of your products, but the shipping progress bar doesn’t update as the product quantity is updated.

    The shipping bar will only update when I refresh the page on checkout, it’s not updating live as I increase/decrease product count.ave

    Attachment 1: I have 3 in checkout screen, this is correct

    Attachment 2: I increased to 4 in checkout screen, shipping progress bar doesn’t update unless refresh page

    In the basket page at least the shipping bar was updating somewhat (even though the amount needed to get free shipping is incorrect until you shift f5 refresh page) but in the checkout page it doesn’t update at all until refresh.

    This sales booster progress bar addon is marketed as a Cart/Checkout, so I would have expected this to work, please can you assist with this?

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    October 30, 2025 at 04:44

    Dear @Cookster Creative,

    Could you please provide temporary wp-admin access? We need to check your settings.

    To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.

    Thank you!

    Avatar: Cookster Creative
    Cookster Creative
    Participant
    October 30, 2025 at 17:19

    Sent

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    October 31, 2025 at 10:49

    Dear @Cookster Creative,

    After reviewing your checkout page, we identified several errors in the Console Log: https://prnt.sc/WA3Hd_InLDMZ.

    We recommend disabling all third-party plugins that are not included with XStore (https://www.8theme.com/documentation/xstore/plugins/included-plugins/). Once this is done, please clear your browser cache and check the page again. It is possible that one of these additional plugins is causing the issue.

    If the problem persists, could you please create a staging site for our testing? You may use the staging feature provided by your hosting service or install this free plugin to create a staging site: https://wordpress.org/plugins/wp-staging/

    Best regards,
    8Theme Team

    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 2, 2025 at 09:10

    Replied

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    November 3, 2025 at 06:54

    Hello @Cookster Creative,

    We apologize for the delayed response due to the weekend.

    Could you please let us know if there is a way to disable the username and password prompt shown here: https://prnt.sc/GjIlXwclSykl?
    It repeatedly requests us to enter the login information.

    Best regards,
    The 8Theme Team

    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 3, 2025 at 09:58

    Sorted now.

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    November 3, 2025 at 16:35

    Dear @Cookster Creative,

    By default, the cart progress bar is calculated only on the cart page.

    If you would like it to function on the checkout page as well, please add the following custom code to the functions.php file located in your child theme:

    
    
    add_action('wp_footer', 'n2t_wp_footer');
    function n2t_wp_footer() {
        ?>
        <script>
            (function($) {
                "use strict";
    
                $(document).on("updated_checkout", function() {
    
                    let $progressAmount = $(".et-cart-progress-amount");
    
                    let subtotalText = jQuery('.product-subtotal .woocommerce-Price-amount').first().text();
    
                    let subtotal = subtotalText.replace(/[^0-9.-]+/g, "");
                    let target = $progressAmount.attr("data-amount");
    
                    console.log(subtotal);
    
                    let decimals = etConfig.woocommerceSettings.cart_progress_num_decimals;
                    let remainingFormatted = "";
                    let progress = (subtotal / target) * 100;
    
                    progress = progress.toFixed(3);
                    progress = parseInt(progress);
                    if (progress > 100) progress = 100;
    
                    $(".et_cart-progress-bar").attr("value", progress);
                    $(".et-cart-progress").attr("data-percent-sold", progress);
    
                    if (progress < 100) {
                        let remaining = (target - subtotal).toFixed(decimals);
                        let parts = remaining.split(".");
    
                        // Format thousands
                        if (parts.length > 1 && parts[0].length > 3) {
                            parts[0] = parts[0].substring(0, parts[0].length - 3)
                                + etConfig.woocommerceSettings.cart_progress_thousand_sep
                                + parts[0].substring(parts[0].length - 3);
                            remainingFormatted = parts[0] + etConfig.woocommerceSettings.cart_progress_decimal_sep + parts[1];
                        } else if (parts[0].length > 3) {
                            remainingFormatted = remaining.substring(0, remaining.length - 3)
                                + etConfig.woocommerceSettings.cart_progress_thousand_sep
                                + remaining.substring(remaining.length - 3);
                        } else {
                            remainingFormatted = remaining;
                        }
    
                        // Add currency
                        switch (etConfig.woocommerceSettings.cart_progress_currency_pos) {
                            case "left":
                                remainingFormatted = $progressAmount.attr("data-currency") + remainingFormatted;
                                break;
                            case "right":
                                remainingFormatted += $progressAmount.attr("data-currency");
                                break;
                            case "left_space":
                                remainingFormatted = $progressAmount.attr("data-currency") + " " + remainingFormatted;
                                break;
                            case "right_space":
                                remainingFormatted = remainingFormatted + " " + $progressAmount.attr("data-currency");
                                break;
                            default:
                                remainingFormatted = $progressAmount.attr("data-currency") + remainingFormatted;
                        }
    
                        // Output
                        $progressAmount.html(remainingFormatted);
                        $(".et-cart-progress-bar").addClass("in-process");
                    } else {
                        $(".et-cart-progress-bar").removeClass("in-process");
                    }
                });
    
            })(jQuery);
        </script>
        <?php
    }
    
    

    Best regards,
    8Theme Team

    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 3, 2025 at 22:13

    Thank you it now works in the checkout, but generally across the site can we fix that it doesn’t track multi buy correctly? I have set £25 min spend to get free shipping, but I added 2 of these in my cart with 5% multi buy offer and the shipping bar at top left is not tracking correctly how much more needed to spend to get to £25, the amount and subotal in cart do not make sense.

    It is only till I refresh my page where it corrects. The issue with this is in the basket it may tell someone they have qualified for free shipping then clicking basket (which reloads page) then the bar changes to spend £1 more to get free shipping.

    This will unfortunately not give a smooth shopping experience, please could you look into this for me? I would really appreciate if this could be resolved somehow. I have atatched a screenshot and you’re welcome to test adding multi quantity of an item and checking bar and refreshing. Thank you!

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    November 4, 2025 at 12:05

    Hello @Cookster Creative,

    Could you please confirm whether the website is currently down on your end as well?

    We are unable to access it at the moment.

    Best regards,
    The 8Theme Team

    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 4, 2025 at 12:16

    Hi, everything seems fine on my end.

    Avatar: Justin
    Luca Rossi
    Support staff
    November 5, 2025 at 11:57

    Dear Cookster Creative,

    We believe that our IP address (171.235.88.118) may have been blocked by your hosting provider.
    Could you please assist us by whitelisting this IP address?

    Thank you for your help.

    Best regards,
    The 8Theme Team

    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 5, 2025 at 12:12

    Hi, you should be able to access now, that’s been whitelisted.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 10, 2025 at 09:08

    Hello @Cookster Creative,

    We apologize for the delay in our response. We have been investigating the issue on your web-site and providing support to other customers as well. During our review and while working on a solution, we noticed that we are currently unable to access or log in to your staging website. We kindly ask for your assistance in resolving this matter. If you require our IP address, we have included it in the private content.

    Additionally, we would appreciate it if you could provide us with FTP access to your staging website, as this would greatly assist us in addressing your request.

    We would also like to recommend our plugin, SalesMax, available at https://www.8theme.com/salesmax/. This plugin includes a “Buy More, Save More” feature (among many others) that offers enhanced customization options and an improved UI/UX for websites.

    You can find more details in our documentation: https://www.8theme.com/documentation/salesmax/.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Please contact administrator
    for this information.
    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 10, 2025 at 13:44

    Hi Jack,

    I have whitelisted the IP and provided FTP access details in private area.

    I dont have an issue with the mutibuy plugins, it;s the fact that the shipping progress bar isn’t displayed correctly until refreshing the page when doing multi buy purchases.

    Please contact administrator
    for this information.
    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 10, 2025 at 13:47

    Also Jack, I was doing a free coupon “ozzyrat” as a test and noticed the shipping progress bar was still saying spend ££ to get free shipping. I think it would function better if it notices when a free shipping coupon is used. My main concern at moment is getting it working with the multibuy without needing to refresh the page though.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 10, 2025 at 17:07

    Hello @Cookster Creative,

    Could you please check how it works when using the default shortcode [woocommerce_cart] (https://prnt.sc/v8LHlLL394zK) instead of the widgets currently in use? For this test, we have created a temporary test page and set it as the cart page in the WooCommerce settings.

    It appears that the issue occurs when the progress bar is displayed in a separate area. However, when it is shown in the same area that reloads with the cart items, it functions correctly.

    At this stage, we have not yet found a correct solution for the widget-based content. The good news is that the progress bar works better (although some minor bugs remain) with the default shortcode-based layout. Could you please confirm if this approach is acceptable for you?

    Sorry, but we do not have a final solution yet and will need additional time to investigate and find one.

    Best regards,
    Jack Richardson
    8Theme Team

    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 10, 2025 at 23:40

    Hi Jack,

    I do not really want to use shortcode as I spent quite a bit of time styling the element provided with the theme.

    The shipping bar does work on the basket, checkout and mini cart but the only issue is with the multibuy, needing to refresh the page to get the correct amount to show. When adding or taking things off the basket it does track how much more to spend to get free shipping etc, but the thing is as soon as you buy 2/3/4 items and the multi-buy kicks in it tracks the wrong amount and then you need to shift f5 for it to then say the correct amount.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 11, 2025 at 08:24

    Hello @Cookster Creative,

    Could you please clarify where you added the snippet from the following link: https://www.8theme.com/topic/sales-booster-shipping-progress-bar-in-basket-calculating-incorrectly-with-multi-buy-discount/#post-458608? We are currently unable to locate this code and would like to make the necessary modifications.

    Additionally, may we update the theme on your website to the latest version?

    We apologize for the delay in our response and appreciate your patience as we work to find a global solution.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 11, 2025 at 09:20

    Hi Jack,

    It is currently uploaded on the live site, would it help if I pushed the live site through to staging? Or I can just add the snippet on the staging site.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 11, 2025 at 10:35

    Hello @Cookster Creative,

    Yes, please update the staging website with the same content and snippets as your current live website. This will allow us to review and improve the snippets. Once the issue has been tested and resolved on the staging website, you can then copy the updated snippet to your live website.

    Additionally, if possible, please update all plugins and the theme to their latest versions.

    Best regards,
    Jack Richardson
    8Theme Team

    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 11, 2025 at 10:54

    That’s done see private area for access details

    Please contact administrator
    for this information.
    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 11, 2025 at 11:00

    Hi Jack,

    I just realised the checkout shipping bar works properly with the multi-buy offer when you purchase. 2/3/4 of anything. It’s £25 for free shipping, if you test adding 2 or 3 of the same item in basket and checkout you will see the checkout is correct progress amount to get to £25.

    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 11, 2025 at 11:02

    If we can get the mini cart and basket progress tracker to work as well as the checkout one then the issue would be solved.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 11, 2025 at 21:25

    Hello @Cookster Creative,

    We apologize for the delay in resolving this issue. Please rest assured that we have recorded your request, and our team is actively working to identify the source of the problem and determine a suitable solution. This process may take some additional time, but we will notify you as soon as we have found a proper fix.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 12, 2025 at 13:53

    Hello @Cookster Creative,

    Could you please check it now? We have improved the previous custom snippet and attached videos of our tests on your Cart and Checkout pages. Kindly verify whether the calculations are now correct.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Files is visible for topic creator and
    support staff only.
    Avatar: Cookster Creative
    Cookster Creative
    Participant
    November 12, 2025 at 14:29

    Hi,

    The calculations are now correct on both, however, it does seem that the basket one sometimes seems like its jumping and buffering longer than it needs to before giving the calculation, giving the wrong amount then the right amount after a buffer where it goes blurry and looks like it’s reloading. Whereas the checkout one feels smooth and quick to give you the calculation.

    Also, this fix doesn’t seem to apply to the shipping progress bar at the bottom of the mini cart.

    I’ve made changes on my live site so won’t want to just simply push the staging changes to live when this is all sorted, can you confirm it will be easy just to either update snippet or give you access to the live site to apply the fixes?

    Thanks,
    Matthew

  • 1 2
    Viewing 30 results - 1 through 30 (of 40 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.