Full Carbone 94 Posted February 2, 2015 Share Posted February 2, 2015 Bonjour, Sur mon thème 1.5.6 "Disponibilité" n'apparait pas si quantité 0. j'ai donc dans "product.tpl" modifier : <p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}> par <p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: block;"{/if}> "Disponibilité" apparait mais avec indiquer "quantié disponible quantités disponibles" ex : http://www.fullcarbone94.fr/home/378-2-phares-bi-xenon-golf-7-r.html j'ai dans traduction modifier : quantité disponible par en rupture de stock quantités disponibles par en stock et je voulais attribuer les traduction si quantité 0 > en rupture de stock si quantité +1 > en stock mais je rame depuis plus d'une heure je pense que sa passe dans "product.tpl" aux lignes : <!-- number of item in stock --> {if ($display_qties == 1 && !$PS_CATALOG_MODE && $product->available_for_order)} <p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: block;"{/if}> <span id="availability_label">{l s='Availability:'}</span> <span id="quantityAvailable">{$product->quantity|intval}</span> <span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='items in stock'}</span> <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'}</span> j'ai atribuer la traductions "items in stock" a 1 quantité ou + mais je n'arrive pas a atribuer "item in stock" si quantité 0 et sans faire de doublons aussi si vous avez une idée, ou que j'ai tout faux merci de votre aide Cordialement, chris Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now