Jump to content

(SOLVED) Prestashop 1.7.6.8 problem availability message


alexis_gyf

Recommended Posts

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

availability_wrong.jpg

Edited by alexis_gyf (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
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

availability_wrong.jpg

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.

  • Like 1
Link to comment
Share on other sites

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

  • alexis_gyf changed the title to (SOLVED) Prestashop 1.7.6.8 problem availability message

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...