Le-cathare Posted October 18, 2012 Share Posted October 18, 2012 Bonjour sur la page panier je souhaite afficher la dispo du produit (dispo, Non dispo) avec des point de couleur. j'ai le Thème Prestashop Template 1.4.5 Comment faire ? Merci d'avance Link to comment Share on other sites More sharing options...
ckarone Posted October 18, 2012 Share Posted October 18, 2012 Bonjour, Cela ce passe dans shopping-cart-product-line.tpl A la ligne 37 : {if $product.active AND ($product.allow_oosp OR ($product.quantity <= $product.stock_quantity)) AND $product.available_for_order AND !$PS_CATALOG_MODE} <img src="{$img_dir}icon/available.gif" alt="{l s='Available'}" width="14" height="14" /> {else} <img src="{$img_dir}icon/unavailable.gif" alt="{l s='Out of stock'}" width="14" height="14" /> {/if} Ckarone Link to comment Share on other sites More sharing options...
Le-cathare Posted October 19, 2012 Author Share Posted October 19, 2012 (edited) Bonjour il faut donc que je rajoute c'est ligne dans le tpl ? a la ligne 37 j'ai {if isset($empty)} <p class="warning">{l s='Your shopping cart is empty.'}</p> {elseif $PS_CATALOG_MODE} <p class="warning">{l s='This store has not accepted your new order.'}</p> faut le mettre avant ou après Edited October 19, 2012 by Le-cathare (see edit history) Link to comment Share on other sites More sharing options...
Le-cathare Posted October 19, 2012 Author Share Posted October 19, 2012 Oups je me suis tromper de fichier. J'ai donc dans le bon fichier ceci sans rien modifier. mais rien s'affiche sur la dispo <!-- <td class="cart_ref">{if $product.reference}{$product.reference|escape:'htmlall':'UTF-8'}{else}--{/if}</td> <td class="cart_availability"> {if $product.active AND ($product.allow_oosp OR ($product.quantity <= $product.stock_quantity)) AND $product.available_for_order AND !$PS_CATALOG_MODE} <img src="{$img_dir}icon/available.gif" alt="{l s='Available'}" width="14" height="14" /> {else} <img src="{$img_dir}icon/unavailable.gif" alt="{l s='Out of stock'}" width="14" height="14" /> {/if} Link to comment Share on other sites More sharing options...
Le-cathare Posted October 19, 2012 Author Share Posted October 19, 2012 Bon j'ai enlever <!-- sa fonctionne mais j'ai mon panier tout décaler maintenant Link to comment Share on other sites More sharing options...
ckarone Posted October 19, 2012 Share Posted October 19, 2012 Il faut rajouter une colonne dispo dans le tableau. Avez vous une url? Ckarone Link to comment Share on other sites More sharing options...
Le-cathare Posted October 19, 2012 Author Share Posted October 19, 2012 (edited) Comment on fait ? Oui : http://www.huilletpr...utique/commande Edited October 20, 2012 by Le-cathare (see edit history) Link to comment Share on other sites More sharing options...
Le-cathare Posted October 31, 2012 Author Share Posted October 31, 2012 Bon j'ai enlever <!-- sa fonctionne mais j'ai mon panier tout décaler maintenant (notamment le total) Link to comment Share on other sites More sharing options...
utaku Posted April 6, 2013 Share Posted April 6, 2013 Bonjour, Cela ce passe dans shopping-cart-product-line.tpl A la ligne 37 : {if $product.active AND ($product.allow_oosp OR ($product.quantity <= $product.stock_quantity)) AND $product.available_for_order AND !$PS_CATALOG_MODE} [img={$img_dir}icon/available.gif] {else} [img={$img_dir}icon/unavailable.gif] {/if} Ckarone Hello merci pour ton astuce, elle fonctionne nickel sur ma PS 1.5.2 ^^' 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