Jump to content

Missing feature? warning message quantities


Recommended Posts

Hi,

 

I am expecting some information pop-up or something in this situation:

 

- I have set the item quantity at 30

- I try to put 31 items into my shopping cart

 

Well, nothing happens when I press the add to cart button. It does not add it to the cart which is ok, but some warning message should pop-up to inform customers that you cannot order this much items.

 

Am I doing something wrong or is this a missing feature?

 

Cheers,

 

NILAGolf_

post-781667-0-82798400-1401261229_thumb.jpg

Link to comment
Share on other sites

  • 3 weeks later...

Finally found the solution!

In ajax-cart.js  (under /themes/default-bootstrap/js/modules/blockcart/) you have to add the alert() function in case of errors!

 

At about line 343-344 (inside add() function, case success but there are errors) I've added:

 

alert(jsonData.errors);

 

and now works perfectly.

 

I don't know if this lack is a bug or is a new feature....!

 

You can mark as solved :)

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

Hey! this is usefull. I made it work. Now...how can I change the message that pop ups? Can I add the quantities left in that message?

 

Hi!!

 

I need also me the same fix, but I don't know where I have to change the file  ajax-cart.js.

Can you help me to fix it?

 

Thanks

Angela

Link to comment
Share on other sites

×
×
  • Create New...