Maxxi2 Posted April 13, 2012 Share Posted April 13, 2012 Bonjour, je me suis attaqué au product-list.tpl car j'avais besoin que celui-ci m'affiche "sur commande" quand le stock = 0 et la commande possible sur l'affiche de la categorie. Après de long test, certain produit n'affiche pas le texte alors que sur d'autre, le problème n'existe pas. Après verification sur firebug, la balise ne contient aucune données.. Les 2 premiers fonctionnent, mais les 2 derniers n'affiche rien, alors que les produits sont configuré à l'identique dans le backoffice. 0 en stock, accepter les commandes si rupture et message hors stock identique exemple: http://www.elite-led...25-proj-rgb-led voici le code pour faire afficher: {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)} {if ($product.allow_oosp || $product.quantity <= 0)} <span id="availability_value" class="warning_ofline">{$product.available_later}</span> {elseif ($product.allow_oosp || $product.quantity > 0)} <span id="availability_value" class="success_inline">{l s='Available'}</span> {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)} <span id="availability_value" class="warning_ofline">{l s='Product available with different options'}</span> {else} <span id="availability_value" class="warning_inline">{l s='Out of stock'}</span> {/if} {/if} Quelqu'un saurait il me dire ou est mon erreur,pourquoi il prend en compte certain produit et pas d'autre ? Merci Link to comment Share on other sites More sharing options...
Patrick_64 Posted April 13, 2012 Share Posted April 13, 2012 Salut, regarde au niveau de tes articles, si une option ne serait pas noté sur un et pas noté sur l'autre. Je m'explique, parfois quand on coche "Afficher en solde" dans la fiche article, ça m'enlève le prix barré. bon courage Patrick Link to comment Share on other sites More sharing options...
Maxxi2 Posted April 13, 2012 Author Share Posted April 13, 2012 j'ai bien reverifié tout est a l'identique. Link to comment Share on other sites More sharing options...
MayMo design Posted April 17, 2012 Share Posted April 17, 2012 vérifies si les produits avec le warning n'ont pas des déclinaisons, donc hors stock pour des options et en stock pour d'autres Link to comment Share on other sites More sharing options...
Atch Posted April 18, 2012 Share Posted April 18, 2012 Bonjour, moi je vois "sur commande" pour les 4... V++ Atch 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