AlainBo26 Posted February 26, 2014 Share Posted February 26, 2014 Bonjour, J'ai un problème dans la disponibilité d'un produit en 1.5.6.2. En effet, depuis le compte client, on m'informe que le produit est en stock: Et lorsque je rentre dans la fiche produit, on me dit qu'il ne est pas. Effectivement, dans les faits, il ne l'est pas. Une idée? Alain Link to comment Share on other sites More sharing options...
Zebx Posted February 26, 2014 Share Posted February 26, 2014 Bonjour, Ce produit n'a-t-il pas des déclinaisons dont minimum 1 est en stock? Link to comment Share on other sites More sharing options...
AlainBo26 Posted February 26, 2014 Author Share Posted February 26, 2014 Non, aucune déclinaison. Link to comment Share on other sites More sharing options...
Zebx Posted February 26, 2014 Share Posted February 26, 2014 Mmm, bah en fait c'est normal (enfin selon PS) Si le produit est commandable même en étant hors stock, alors dans la liste des produits il s'affichera comme étant en stock (à traduire par commandable). Si le produit n'est pas commandable quand il est hors stock, alors là il s'affichera correctement dans la liste comme étant hors stock. Pour modifier cet affichage qui effectivement n'a pas beaucoup de sens, il faut modifier le fichier product-list.tpl dans le thème. A la ligne 53 du thème par défaut (PS1.5.6.2) Enlever: $product.allow_oosp || Dans la partie de code suivante : {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}<span class="warning_inline">{l s='Out of stock'}</span>{/if}</span>{/if} Link to comment Share on other sites More sharing options...
AlainBo26 Posted February 26, 2014 Author Share Posted February 26, 2014 mmm Ok, Merci beaucoup, je vais voir ça. 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