thomas767 Posted July 2, 2014 Share Posted July 2, 2014 Bonsoir, je souhaite supprimer la mention en stock de la page liste de produit. Je suis en version 1.6 Dans le fichier " product-list.tpl " voici la section correspondante : {if (!$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)} <span itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="availability"> {if ($product.allow_oosp || $product.quantity > 0)} <span class="{if $product.quantity <= 0 && !$product.allow_oosp}out-of-stock{else}available-now{/if}"> <link itemprop="availability" href="http://schema.org/InStock" />{if $product.quantity <= 0}{if $product.allow_oosp}{if isset($product.available_later) && $product.available_later}{$product.available_later}{else}{l s='In Stock'}{/if}{else}{l s='Out of stock'}{/if}{else}{if isset($product.available_now) && $product.available_now}{$product.available_now}{else}{l s='In Stock'}{/if}{/if} </span> {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)} <span class="available-dif"> <link itemprop="availability" href="http://schema.org/LimitedAvailability" />{l s='Product available with different options'} </span> {else} <span class="out-of-stock"> <link itemprop="availability" href="http://schema.org/OutOfStock" />{l s='Out of stock'} </span> {/if} </span> {/if} Voila je suis bloqué j'ai essayé de modifier un peu cette partie sans succès. Merci d'avance pour votre aide Link to comment Share on other sites More sharing options...
marine45 Posted July 2, 2014 Share Posted July 2, 2014 Salut, ligne 156, supprime {if (!$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)} <span itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="availability"> {if ($product.allow_oosp || $product.quantity > 0)} <span class="{if $product.quantity <= 0}out-of-stock{else}available-now{/if}"> <link itemprop="availability" href="http://schema.org/InStock" />{if $product.quantity <= 0}{if $product.allow_oosp}{$product.available_later}{else}{l s='Out of stock'}{/if}{else}{if isset($product.available_now) && $product.available_now}{$product.available_now}{else}{l s='In Stock'}{/if}{/if} </span> {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)} <span class="available-dif"> <link itemprop="availability" href="http://schema.org/LimitedAvailability" />{l s='Product available with different options'} </span> {else} <span class="out-of-stock"> <link itemprop="availability" href="http://schema.org/OutOfStock" />{l s='Out of stock'} </span> {/if} </span> {/if} {/if} Je ne sais pas trop si la manip est bonne mais chez moi ca marche! Si qqn peut confimer.... Link to comment Share on other sites More sharing options...
thomas767 Posted July 2, 2014 Author Share Posted July 2, 2014 J'avais essayé, j'ai réessayé et le site est vierge quand j'enlève toute la partie... :/ Link to comment Share on other sites More sharing options...
marine45 Posted July 2, 2014 Share Posted July 2, 2014 (edited) J'avais essayé, j'ai réessayé et le site est vierge quand j'enlève toute la partie... :/ Tu as bien supprimé de la ligne 156 à la 174, juste entre les deux </div> ? Car sur le code que tu montres dans ton premier post il manque un {/if} à la fin. Edited July 2, 2014 by marine45 (see edit history) Link to comment Share on other sites More sharing options...
thomas767 Posted July 2, 2014 Author Share Posted July 2, 2014 Bien joué !! J'avais oublié une section exact. Merci beaucoup Link to comment Share on other sites More sharing options...
marine45 Posted July 2, 2014 Share Posted July 2, 2014 Bien joué !! J'avais oublié une section exact. Merci beaucoup Y'a pas de quoi! 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