• Resolved magedmoh94

    (@magedmoh94)


    Hi there,

    I found an issue when refreshing the page of the cart from the browser ( Mozilla firefox )

    Scenario:

    Step 1. Add a product which its price is 10$ to cart with quantity 3
    Cart Result
    Quantity: 3 – Price: 30

    Step 2. Change quantity from 3 to 5
    Cart Result
    Quantity: 5 – Price: 50

    Step 3. Change quantity from 5 to 7
    Cart Result
    Quantity: 7 – Price: 70

    Step 4. Refresh the page by pressing F5 or refresh button on Mozilla Firefox
    Cart Result
    Quantity: 5 – Price: 70

    The Quantity is reset to the first change we made on step 2, but the price is the same as before the refresh has its value right.

    I tested this on chrome but doesn’t happen it only happens on firefox can you check on safari too ?

    Best Regards

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author moiseh

    (@moiseh)

    Hello,
    I tried in my end to test in firefox but unfortunately couldn’t reproduce the issue, i don’t find a pattern (used Storefront theme).

    You can alternatively try to update the plugin to the latest version, i also find that the link you send have a strange pattern in URL’s, for example:

    https://www.tktshub.com/number28/assets/wooajaxcart.js
    https://www.tktshub.com/number31/assets/js/frontend/add-to-cart.min.js

    If the “number28” and “number31” mean different WordPress installs, the problem can be a PHP session or cookies issue that are not in sync, and then registering incorrect the quantities.

    Regards

    Thread Starter magedmoh94

    (@magedmoh94)

    Hi There,

    I updated the plugin but found the same issue still happening here is a video to show the case by the values i provided before.

    https://streamable.com/mb7gp

    The number 31 is Woocommerce plugin, the number 28 is your plugin ajax cart, i just use a mask on the folders to hide the name of plugins .. the issue still happens even if i don’t use the plugin which is used to hide the names of the plugins.

    Plugin Author moiseh

    (@moiseh)

    Thanks for the detailed video and info.

    But i unfortunately still don’t know how to reproduce in a clean WP install with Storefront theme, tried many times do the same, see the video:

    https://streamable.com/dznvs

    Thread Starter magedmoh94

    (@magedmoh94)

    Hi Moiseh,

    Thank you for your interest in debugging the issue.

    I have tried even with a default tewenty ninteen theme and the issue still happens.

    Which firefox do you test with ? windows version ?

    Mine is windows version and using wordpress v5.2.2 or 5.2.4

    Best Regards

    Plugin Author moiseh

    (@moiseh)

    I’m testing in linux mint 19 , firefox 70.0.1, latest version of WP.

    I’ve reproduced the issue in my firefox using your link https://tktshub.com/shop , but not when i’m using local WP install with Storefront.

    Thread Starter magedmoh94

    (@magedmoh94)

    I have disabled all the plugins and used default theme but the issue is still there, have you found the reason behind this ?

    Best Regards,

    Plugin Author moiseh

    (@moiseh)

    If you want a last try you can send me a clone of the WP install with the issue using Duplicator plugin then i can try to reproduce and find the issue here.

    If you want to send in private my email is moiseh [at] gmail [dot] com

    Regards

    Thread Starter magedmoh94

    (@magedmoh94)

    Hi Moiseh,

    I have sent to you a private email with a staging copy ready you can test on it you will find the issue already there :), check your inbox.

    Best Regards

    Plugin Author moiseh

    (@moiseh)

    Thanks for the staging info.

    But unfortunately i still don’t know the reason of this strange bug.

    I also tested with this plugin deactivated, and the issue continued, example:

    1. Disable Woo Ajax Cart plugin
    2. Change qty in cart from 5 to 2 then click in Update cart
    3. Change from 2 to 7 then click in Update cart
    4. Reload and will see that the issue continues

    Regards

    • This reply was modified 5 years, 4 months ago by moiseh.
    Thread Starter magedmoh94

    (@magedmoh94)

    Hi Moiseh,

    First of all thank you for trying to figuring it out with me.

    I have also tested this bug on another website with another hosting plan on bluehost without your plugin and with another theme but i found the issue is still there even with another woocommerce version, i think its a woocommerce issue with safari browser what do you think ?

    Best Regards

    Plugin Author moiseh

    (@moiseh)

    Hello,
    Yes, it may be a woocommerce issue, but i’m not sure.
    I would try to report to woocommerce support.

    Regards

    Thread Starter magedmoh94

    (@magedmoh94)

    Hello Moiseh,

    I will be thankful for your if you did this, do i need to start a support ticket on their plugin here on wordpress repository too or you will contact them or what ?

    How can i help ?

    Best Regards

    Plugin Author moiseh

    (@moiseh)

    I’m not able to help you in this issue.

    I never opened a ticket directly to woocommerce, guess you can open a request like you opened here.

    Thread Starter magedmoh94

    (@magedmoh94)

    Thank you so much i will do this and update you ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Ajax cart quantity issue on reload on mozilla firefox’ is closed to new replies.