What's New
Viewing 14 posts - 1 through 14 (of 14 total)
Viewing 14 posts - 1 through 14 (of 14 total)
You must be logged in to reply to this topic.
Hello,
When you click several times on buttons + or – in the cart, the behavior is really strange. It adds too many items (same for removal).
– To reproduce, go to http://panda2.sunnytoo.com/en/
– Add a product to the cart
– Then click on “+” 3 times or more, not to quickly, not too slowly. It will add something like 1 + 2 + 3 + 4 instead of 4.
I have made a video, you can download it to see it : https://drive.google.com/file/d/11A4LSp60_-Jk3sXbrMsrww_CZd19jCsS/view
This bug is really annoying in B2B since the quantities are often updated in the cart.
Regards
Hello,
I’m am using PS 1.7.7.4 + Panda theme 2.6.3.
Smarty cache, server files cache and browser cache are cleared.
The problem also occurs on your demo store, the video was recorded on http://panda2.sunnytoo.com/en/
It is 100% reproducible.
Regards
Hi,
The problem is because Prestashop uses ajax to validate the quantities and stock. if you click the buttons + or – continuously, there isn’t any ajax request. but if you stop to click the button, the ajax request will be sent to the server to validate the quantities, that need a few minutes, if the data is processing and you start to click the button again, you will see the behavior that mentioned. we will improve it, if the request is sending, the button will be disabled.
Best regards.
Check this video I recorded, if you click at a very fast speed, then it works fine.
What happened in your video was that you stopped for more than 300ms
Find this code
l=setTimeout(function(){g(e)},300)
In the /themes/panda/asset/js/theme.js file.
Change 300 to 600.
I will include the change in the next theme update.
Another perfect solution is that to disable the quantity box when you stop clicking to wait for the cart to be updated. But that’s not user-friendly.
Here is the video https://screencast-o-matic.com/watch/cr1DfpV1hOj
Hello Yobo and Jonny,
Sorry to talk about this thread again, but the issue with the quantity remains:
From what I can see, when the customer adds one more product (+), the quantity+- field is blocked, then there is a “dead time” and later the price is updated. (see attached gif_1_deadtime).
The problem appears when the customer allows to click +- in that “dead time” again before the price is updated, and here is the bug.
For this not to happen, the quantity+- field must be blocked until the prices have been updated.
This option is present in large stores such as Carrefour, Amazon, Leroymerlin, etc. I suppose they did it like that to avoid the problem that we have today.
On Amazon or Leroymerlin, the full page is locked to update prices. (see attached gif_amz).
In Carrefour, for example, only the quantity+- field is blocked until the prices are updated. (see attached gif_carref).
I would like a solution like Carrefour’s if possible to avoid problems when customers add a lot of quantity.
Best regards
@comptoirducode
julio’s suggestion has already be included in the latest version of the panda theme.
The “dead time”(300ms) has to be there. Some people click the + button at a relatively slow speed, if there is no “dead time”, they can only increase the quantity by 1 every time. If the + button gets clicked during the “Dead time”, the current “dead time” will be ended, another 300ms dead time will be started, till people stop clicking the + button.
You must be logged in to reply to this topic.