alexis_gyf Posted May 14, 2022 Share Posted May 14, 2022 (edited) Hello I have a problem with availability message on products. Always saw the default availability of the product. For example if a product have 4 items stock and i put 5 on cart, i can't order but above the message is still the same "Available" and it is not renew automatic to "Out of stock". Any suggestions? Prestashop version 1.7.6.8 PHP version 7.2 Theme Nuranium https://www.cookworld.gr/en/home/mini-pan-without-lid-14cm Edited May 23, 2022 by alexis_gyf (see edit history) Link to comment Share on other sites More sharing options...
Prestachamps Posted May 23, 2022 Share Posted May 23, 2022 On 5/14/2022 at 12:39 PM, alexis_gyf said: Hello I have a problem with availability message on products. Always saw the default availability of the product. For example if a product have 4 items stock and i put 5 on cart, i can't order but above the message is still the same "Available" and it is not renew automatic to "Out of stock". Any suggestions? Prestashop version 1.7.6.8 PHP version 7.2 Theme Nuranium https://www.cookworld.gr/en/home/mini-pan-without-lid-14cm Hi, Probably it is a theme-related issue. As I see on your site, the product-availability section is outside of the form on the product page, so when you increase the quantity a refresh action is triggered, which needs to update the frontend. https://prnt.sc/r7zMSFAtWqgr It works for the add to cart button, but most probably because the availability is outside the form, then it can't update its text. However, in the response there is present the text: "availability_message":"There are not enough products in stock" Ask your theme developer, to resolve it for you by adding the availability section inside the form. I hope that I could help. Have a nice day, Leo. 1 Link to comment Share on other sites More sharing options...
alexis_gyf Posted May 23, 2022 Author Share Posted May 23, 2022 7 hours ago, Prestachamps said: Hi, Probably it is a theme-related issue. As I see on your site, the product-availability section is outside of the form on the product page, so when you increase the quantity a refresh action is triggered, which needs to update the frontend. https://prnt.sc/r7zMSFAtWqgr It works for the add to cart button, but most probably because the availability is outside the form, then it can't update its text. However, in the response there is present the text: "availability_message":"There are not enough products in stock" Ask your theme developer, to resolve it for you by adding the availability section inside the form. I hope that I could help. Have a nice day, Leo. Yes you are right. It is theme issue and i will update it. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now