Jump to content

Affichage du "Message si produit en stock" dans le panier


Recommended Posts

Bonjour à tous,

 

Actuellement, dans mon panier, le message "In Stock" ou "Out of stock" s'affiche à côté des produits commandés par le client.

 

Voici le bout de code responsable de ça dans mon shopping-cart-product-line.tpl:

 

{if $PS_STOCK_MANAGEMENT}
<td class="cart_avail" >{if $product.quantity_available > 0}<span class="label label-success">{l s='In Stock'}</span>{else}<span class="label label-warning">{l s='Out of Stock'}</span>{/if}</td>
{/if}

Le problème est que je souhaiterais plutôt afficher le message défini dans ma page produit (onglet "quantités") dans "Message si produit en stock" et "Message si produit hors stock mais précommande autorisée".

 

La raison est que je souhaite afficher un délai approximatif de livraison (différent selon le produit) à la place de simplement afficher "in stock" ou "out of stock".

 

Quelqu'un aurait une piste? Je suis sur presta 1.6.0.9

 

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