Jump to content

Recommended Posts

Hi there, having prestashop 1.4.6.2 I'm having a problem with the "var quantityavailable" that seems to give incorrect information in the source code.

 

There's a feedrobot crawling our pages, but every product with "var quantityavailable = 0" is not added to the feed.

 

By some reason we have products with a stock, but in the sourcecode it says "var quantityavailable = 0"

 

Looks like it has to do with sizes and attributes. Attached is a screenshot that shows a product with a quantityavailable = 0, while in fact there are 10 products in stock.

 

What could this possibly be?

 

post-850717-0-73295400-1435758672_thumb.jpg

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

  • 1 month later...
  • 2 weeks later...

It's not a theme-thing. This is in the product.tpl

{if $display_qties == 1 && $product->quantity}{$product->quantity}{else}0{/if};

In the presta-backend the display quantity was turned off.

When turned off in the backend, the quantity also becomes invisible in the sourcecode.

Link to comment
Share on other sites

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