Cart page incorrect messages when entering too high quantity

  • Posts: 200
  • Thank you received: 75
7 years 8 months ago #264124

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5

Hi,

we see slightly strange behaviour in Hikashop 3 on the show cart page when we try to change the quantity of a product to a value higher than is in stock. We still get a "Successfully Saved" system message even though nothing is saved, and the "too much quantity selected" error message actually appears in the cart module.

It also happens on the demo page, see attached screenshot. That is what appears after entering a value higher than is in stock and clicking on save. Can this perhaps be fixed so the "too much quantity" error message appears as a system message at the top of the page?

Thanks in advance. Kind regards,

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 4748
  • Thank you received: 644
  • MODERATOR
7 years 8 months ago #264227

Hello,

From our side, impossible to reproduce your issue (with the last build HikaShop Business 3.0.0 [1703061031])
And even, on the HikaShop DemoWebsite, right now I can't see issue you speak about.
Can you provide your build, that you will get in Components => HikaShop => Configuration, and in Main tab, and finally in the Main part.

Maybe this issue was corrected with the last Build ?... Can you try to update in order to see if that solve your issue.
If that don't solve your issue we need a step by step way to process to reproduce your issue, and go forward on this subject.

Awaiting news from you.

Regards

Last edit: 7 years 8 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 200
  • Thank you received: 75
7 years 8 months ago #264240

Hi Philip,

the issue is definitely still there, also on the Demo page.
We have build version HikaShop Business 3.0.1 [1703041135] but just now also tried with the most recent build [1703051418].

To get to the issue we describe on the demo page:
1. Add the graphic tablet to cart (it has limited stock of 9)
2. Go to cart page through user control panel -> Show the carts -> click on our cart
3. Then on the cart page enter a quantity higher than 9 in the product quantity field
4. Click Save
5. The page reloads giving a system message "Succesfully Saved" and an error message down in the cart module saying "Too much quantity selected for product Graphic tablet", as shown in the screenshot in our first post.


The main problem is that the "Too much quantity" error message appears in the cart module.
If, as was in our case, you don't have a cart module showing on the cart page then the user won't see this message at all. All the user will see is the "Succesfully Saved" system message, but nothing is saved and the product quantity isn't modified because it was too high, so this will be quite confusing to the user.

The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

  • Posts: 4748
  • Thank you received: 644
  • MODERATOR
7 years 8 months ago #264281

Hello,

You're right, sorry I process my test a little to quick ! Now I get it, and I understand that there is something wrong !
The error message must be displayed upside the "save" message instead of the Cart module.
Thank you for this return, and so right now we will work on a patch to correct this, we will notify you in this topic when a patch will be available.

Regards

Please Log in or Create an account to join the conversation.

  • Posts: 200
  • Thank you received: 75
7 years 6 months ago #269461

Hi,

we never got any further reply on our issue, it seems partly fixed in that error messages no longer appear somewhere in the cart module but we still have a small issue with the way it's currently working, because when a user enters a too high quantity of a product on the cart page all he will see is a "successfully saved" message.

Would it instead be possible that the user gets a warning that the quantity he entered was higher than is in stock and has automatically been lowered?

Thanks in advance.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 6 months ago #269472

Hi,

The problem was actually fixed. The problem was a server side which didn't work properly.
Now I don't have it.
I only have a problem if I change the quantity and directly click on the "save" button without before clicking somewhere else on the page. In that case, when the button is clicked, the quantity is checked in javascript (that is the improvement) and the quantity is changed back to the maximum. However, as the save button was clicked, the cart data is sent to the server and it is valid since the quantity has already been fixed in javascript.
I've added a patch to the javascript check so that it also displays an error message in an alert box. That will avoid the submit of the form in such cases.

Please Log in or Create an account to join the conversation.

  • Posts: 200
  • Thank you received: 75
7 years 6 months ago #269604

Thank you, it's great to have the javascript quantity check and alert similar to what Hikashop 2 had.
We'll also add it to our product pages/listings!

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum