Display error Messages by AJAX

Hi,


when a user tries to add a product in the cart above the available stock, it is displayed anything, so is pretty confusing for the buyer.

The only way for the user to see a massage about what's happening is when it reloads the page or goes to the cart, checkout or another product.

Related to that, if it's enable the Page Cache, if the user that has generated the error, and generates the page cache for that product or the pages listed above; all the other user will see a page with an error that they haven't generated.


For me, it is best to display errors by AJAX, in this way the page shouldn't be reloaded and is compatible with page caching.

Comments

Sign In or Register to comment.