Jump to content

available date


mircot80

Recommended Posts

  • 1 year later...

Or, when stock is = 0 ? I would like to inform customers when the product can be ordered again, and the date appears only when the product is unavailable

where I can find the condition for product.availability_date
Prestashop 1.7.5.x

Link to comment
Share on other sites

  • 2 years later...

I believe I have achieved this by adding code to the product-add-to-cart.tpl

 

I added the following code:

{block name='product_availability_date'}
    {if $product.availability_date}
      <div class="product-availability-date">
        <label>{l s='Availability date:' d='Shop.Theme.Catalog'} </label>
        <span>{$product.availability_date}</span>
      </div>
    {/if}
    {/block}

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