Jump to content

If $product->available_later filled in write it on product-list.tpl


Recommended Posts

Hello,

 

Now my product-list.tpl show in stock/out of stock.

 

But in BO I have the option to write something in the field "Displayed text when backordering is allowed"

and it shows in product.tpl

 

Now I want to have this text showed on product-list.tpl instead of "out of stock" if the field is filled in with some text.

I tried to copy this line to product-list.tpl but it does not show anything: {$product.available_later}

 

Anyone with a quick fix for that ?

 

Thanks....

 

Link to comment
Share on other sites

  • 3 weeks later...

Got it working with this code:

{if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.quantity > 0)}{l s='Available'}{elseif isset($product.available_later) && $product.available_later}<span class="ontheway">{$product.available_later}</span>{else}<span class="warning_inline">{l s='Out of stock'}</span>{/if}</span>{/if}

 

Closing the question.

Link to comment
Share on other sites

  • 3 weeks 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...