OpenCart quantity check
Implemented improvements to the online store on OpenCart 2 related to controlling the quantity of products when adding to the cart.
A check for available product quantity has been implemented for both standard items and products with options (e.g., size, color). In case the user tries to add more units of a product than are available, the system correctly limits the quantity and displays an informative message.
Additionally:
- A warning is displayed as an inline message under the "Buy" button;
- Multilingual support for the message is provided through standard language files of OpenCart;
- Custom links have been added for each language (e.g., order page for individual requests);
- UX has been improved: the message appears dynamically and does not reload the page;
- Proper interaction with the existing AJAX product addition to the cart has been taken into account.
A check for available product quantity has been implemented for both standard items and products with options (e.g., size, color). In case the user tries to add more units of a product than are available, the system correctly limits the quantity and displays an informative message.
Additionally:
- A warning is displayed as an inline message under the "Buy" button;
- Multilingual support for the message is provided through standard language files of OpenCart;
- Custom links have been added for each language (e.g., order page for individual requests);
- UX has been improved: the message appears dynamically and does not reload the page;
- Proper interaction with the existing AJAX product addition to the cart has been taken into account.