Jump to content

bad quantity for some products


Recommended Posts

Hi !

I have a simple line of code who gives "in stock" or "out of stock" status on each product.

Since the last update of prestashop i encounter this :

in the back office quantities are ok exemple 10 for one product (id 655)

and in the front office it say "out of stock" with -12 in quantities !!

 

Here's my line of code :

{if $product.quantity > 0}
 <span class="stock stock-ok">{l s='En stock' d='Shop.Theme.Catalog'}</span>
 {else}
 <span class="stock stock-ko">{l s='En rupture' d='Shop.Theme.Catalog'}</span>
{/if}

 

it worked very well before the last prestashop update,

Do you have any idea ?

 

Thank you in advance

prestashop 1.7.6.9

Link to comment
Share on other sites

  • 9 months later...

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...