products on stock

sspindsspind Posts: 6Member
edited April 12 in Customizations

Sorry, Im quite new to lightspeed template so questions arise.

Shop has a stocklevel and I try to add in products.rain for the products overview page /snippets/products.rain:

{% if not product.stock.available %}

not available

  {% endif %}

which shows always "not available"

I also tried

{% if not product.stock.on_stock %}

test

  {% endif %}

which didnt work, too

So I dont know what do do. There are definitely products on stock.

A workaround would be to work over a product filter which has the title

mystock and values (stock, not on stock) in different languages.

I please for some help..in this forum I found a similar question from February which is unanswered.

Post edited by sspind on

1 comment

Sign In or Register to comment.