Jump to content

( SOLVED ) product available, even when quantity is 0


Recommended Posts

Hello,

In attachement you will find a screenshot belonging to my question.
So, i have several articles with quantity 0 ( meaning i don't have them in stock )
When you see my settings ( attachement ) i will let the customers be able to order the articles ( they can see in the productdetail how long they will have to wait).
But on every page ( product group and pruduct details, it is still 'available'.
Did i do something wrong? How can i solve this problem?
So, when an article has 0 quantity, i would like it's clear that the article is ' out of stock for this moment' but will be able to let the customers buy it.

Anu suggestions?
thx

10257_rH0YbplfikGkY2JUJqI7_t

10258_IJ1bqo6M0dj7U19T4J6u_t

10259_n4k5l9hZpRvLzc84KyiJ_t

Link to comment
Share on other sites

i did do that.
1 ) noting changes, still 'available' and the cart button is still visible
2 ) this option will 'Add to cart button is hidden when product is unavailable'.. but i want to be able to sell the 'out of stock articles' also!
Strange?

Link to comment
Share on other sites

Sorry, i was missed.
Now i have in BO>preferences>products
- Allow ordering out-of-stock product: NO

So now the text is correct ' out of stock' in frontoffice.
But the cart buttons is gone.
How can i cobine these two? I would like to be able to seel products who are 'out of stock'

Thx

Link to comment
Share on other sites

SOLVED ! Solution:

Find in theme/yourtheme/ Product-list.tpl

find:

{if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if} 



change into:

{if $product.quantity > 0}{l s='Available'}{elseif $product.allow_oosp}{l s='Available soon'}{else}{l s='Out of stock'}{/if} 



then you need to change the translations for 'available soon' in your languages ( in backoffice / tools // translations / modify translatiosn / front office )

Link to comment
Share on other sites

  • 11 months later...
×
×
  • Create New...