dpm Posted May 6, 2008 Share Posted May 6, 2008 La couleur verte d' un produit en stock est la même lorsque le produit est hors stock. J' ai modifié les mots hors stock par vendu, est donc je voudrais changer la couleur, mais je ne sais pas ou faire cette modif. Merci. Link to comment Share on other sites More sharing options...
mathmenet Posted May 9, 2008 Share Posted May 9, 2008 Salut, je te propose cette solution. Tu vas dans le fichier shopping-cart.tpl (dans le thème) ensuite tu vas à la ligne 55 et tu remplace <td class="cart_availability"> par le code ci-dessous. <td class="cart_availability"> {if $product.stock_quantity > 1} <img src="{$img_dir}icon/available.gif" alt="{l s='Available'}" /><br />éxpédié sous 24h {elseif $product.stock_quantity == 0} <img src="{$img_dir}icon/unavailable.gif" alt="{l s='Out of stock'}" /><br />Sous x jours {else} <img src="{$img_dir}icon/unavailable.gif" alt="{l s='Out of stock'}" /><br />Indisponible {/if} </td> J'ai tésté plusieurs commandes complètes et ça a toujours fonctionné. En espérant que c'est ce que tu voulais. Link to comment Share on other sites More sharing options...
F4brice Posted March 10, 2010 Share Posted March 10, 2010 Salut ! Je cherche la meme chose !Une idée ??Merci Link to comment Share on other sites More sharing options...
pokemon3d Posted March 10, 2010 Share Posted March 10, 2010 Bonjour,Je l'ai fait pour un site de test sur les pages Listes de Produit, en créant (dans global.css) une copie de la classe "availability", en la nommant "unavailability" et en modifiant la couleur d'affichage en rouge au lieu de vert. ul#product_list li span.unavailability{ float: right; color:red; font-size:0.9em; } puis en ajoutant du code dans product-list.tpl : {if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{/if} {if ($product.quantity == 0)}{l s='Out of stock'}{/if} Il y a certainement plus élégant, surtout au niveau tu tpl, comme par exemple un {if}{else}.Cordialement, Link to comment Share on other sites More sharing options...
rocky Posted March 11, 2010 Share Posted March 11, 2010 Topic moved from English forum Link to comment Share on other sites More sharing options...
Trolet Posted March 11, 2010 Share Posted March 11, 2010 Il y a certainement plus élégant ça me semble très élégant. Je privilégie cette méthode également Link to comment Share on other sites More sharing options...
shugo42 Posted March 11, 2010 Share Posted March 11, 2010 Bonjour,Il y a deja une solution je te donne le lien:http://www.prestashop.com/forums/viewthread/43992/developpement/resolu_modifier_couleur_des_produits_en_stock_et_hors_stockj'espère que sa te serviracordialement Link to comment Share on other sites More sharing options...
F4brice Posted March 13, 2010 Share Posted March 13, 2010 Quelqu'un a t'il une idée concernant l'arrivé sur le panier ( voir le fichié joint ).Effectivement, que le produit soit en stock ou pas en stock (mais commandable), la pastille de disponibilité est verte quoi qu'il en soit.Comment faire pour afficher une pastille rouge lorsque le produit n'est pas en stock mais commandable ??Merci Link to comment Share on other sites More sharing options...
bobo59 Posted May 5, 2010 Share Posted May 5, 2010 La couleur verte d' un produit en stock est la même lorsque le produit est hors stock. J' ai modifié les mots hors stock par vendu, est donc je voudrais changer la couleur, mais je ne sais pas ou faire cette modif. Merci. Comment as tu fait pour ajouter d'autres motmerci d'avance 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