Bug in quantity discount that miscalculates inside cart for first interval only

This topic has 8 replies, 3 voices, and was last updated 1 months, 2 weeks ago ago by Luca Rossi

  • Avatar: Malek
    Malek
    Participant
    February 19, 2025 at 17:48

    I have the Quantity Discounts Sales Booster enabled and configured with 6 intervals, the first of which is min quantity of 5, max quantity of 10, and a discount of 5%. The product in question is sold for $7.50. When I add 5x of the product to the cart, it is calculated correctly at $7.13. However, when I click the [-] button in the cart to go from 5x to 4x, the price remains at $7.13, whereas it should obviously change back to $7.50 since the condition for discount is no longer met (5-10). However, if I go down to 3x, the price correctly changes to $7.50, and when I go back up to 4x, the price is still correct @ $7.50. And when I go to 5x, it correctly recalculates at $7.13. If I manually enter the number 4 using the keyboard then hit Enter, it calculates correctly at $7.50. It is only wrong when I go from 5x to 4x using the [-] button. This does not happen with subsequent intervals; only the 1st interval.
    I have tried clearing the cache, and I’ve tried a private window. I’ve tried multiple browsers on multiple devices (laptop and mobile).

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    7 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 20, 2025 at 08:19

    Hello, Malek,

    Thank you for contacting us and for using XStore.

    Your site is under maintenance mode, so we can’t check it.

    Please provide URL of page with the login form.

    Additionally, provide us with FTP access.

    For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.

    Best Regards,
    8Theme’s Team

    Avatar: Malek
    Malek
    Participant
    February 20, 2025 at 23:49

    Yes, the website is in maintenance mode. You just have to click the Log In button in the top right, then use the credentials I supplied in my first communication, and that’ll get you in. If you don’t see the Log In button, then please use the private link I have shared.
    As for FTP, I’ve provided this info in the private content area.
    Thanks!

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    February 24, 2025 at 17:46

    Dear @Malek,

    We hope you are doing well.

    Apologies for the delayed response, as we were away over the weekend.

    Could you kindly provide us with a screen recording of the issue? Unfortunately, we are unable to reproduce it on our end. You may use the following tool to record and share the video with us:

    (https://www.awesomescreenshot.com/video/36953506?key=c98cb7dc18aba74c4a72b7d55f90b499)

    We truly appreciate your cooperation.

    Thank you in advance!

    Best regards,
    8Theme Team

    Avatar: Malek
    Malek
    Participant
    February 25, 2025 at 02:44

    Hello,
    I’ve uploaded the screen recording to Google Drive as it was too big to attach:

    https://drive.google.com/file/d/11_FhFQfvdMIxkT6i1nWWW-naKGJFphUi/view?usp=sharing

    Pardon the sound. I don’t know why it was distorted, but it’s not too bad.

    Avatar: Justin
    Luca Rossi
    Support staff
    February 27, 2025 at 13:09

    Dear @Malek,

    Could you please try adding the following code under functions.php file locates in your child theme?

    
    add_action('wp_footer', 'n2t_wp_footer');
    function n2t_wp_footer() {
        ?>
        <script>
            jQuery( document.body ).on( 'updated_cart_totals', function(){
                window.location.reload(true);
            });
        </script>
        <?php
    }
    

    Let us know how it goes!

    Avatar: Malek
    Malek
    Participant
    March 6, 2025 at 20:55

    Hi,

    Thanks. Although that did work, it is not an ideal solution as it refreshes the page to get the correct total and does not appear to utilize ajax. It will have to do for now, but I do hope you will fix this bug soon on your end.
    Thanks.

    Avatar: Justin
    Luca Rossi
    Support staff
    March 7, 2025 at 08:25

    Dear @Malek,

    Thank you for reaching out to us.

    We have forwarded this issue to our development team, and it is expected to be resolved in upcoming updates. We appreciate your patience and understanding.

    Please stay tuned for further updates.

    Best regards,
    8Theme Team

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