Jump to content

Message if selected combination not available


Recommended Posts

Hi,

 

Mt client has version 1.3.1.1 and if the selected combination is not available, the buy now button just disappears. How can I shpw a message instead that says, 'Sorry, the selected combination is not available', which I believe is what happens in the latest version of Prestashop?

Link to comment
Share on other sites

Hmm, OK I have realised why it is not showing on my site - it is because I have removed this:

 

<!-- availability -->
  <p id="availability_statut"{if ($product->quantity == 0 && !$product->available_later) OR ($product->quantity != 0 && !$product->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>

 

As we do not want to show availability as each item is made to order. How can I edit this so that it is ONLY shown when the combination is not avaialable, in other words so that any other availability messages are not shown?

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