Jump to content

Add text on attribute no available


Recommended Posts

Hi!

 

Im trying to add "not available" text on the size attributes out of stock but i don't know how to do it.

 

There's a topic where the solution is found with this:

 

{if $product->quantity == 0}

     {l s='YOUR COMMUNICATE HERE'}

{/if}

 

 

The thing is that i dont know where it should be added. Im trying but nothing yet...

 

Thanks in advance!

Link to comment
Share on other sites

You mean besides the text in the select box/radio? This might be more complex than adding the text. Prestashop goes through attributes one by one, so if you have multiple, it can't guess the combination quantity by that time. Instead, it uses javascript to read each box value, find a combination id and display the out of stock text

Link to comment
Share on other sites

×
×
  • Create New...