Jump to content

add custom text for products when are not in stock


Recommended Posts

Hello,

 

Our eshop has been populated with around 5000 products and we now want to add a text for any product that has no text on the field "when in stock"

 

Is it possible to add a code for doing this?

 

We need to separate immediatly available products with the ones that are available uppon request.

 

Any other idea how to fix this? I cant go through 5000 products and add manually a text for each one bt I can add text for the available only as these are quite much less

Link to comment
Share on other sites

Well I was looking to place someting like this on product.tpl

 

<p id="availability_statut"{if ($product_lang->available_now = "")} style="display: none;"{/if}>
                <span id="availability_label">{l s='Availability:'}</span>
                <span id="availability_value"{if $product->quantity <= 0} class="warning_inline"{/if}>{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}</span>                

</p>

 

What does this need to work?

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