Jump to content

Problème affichage 'Hors stock" dans la liste produit.


Recommended Posts

Bonjour,

 

Mon prestashop est la version 1.6.1.2

J'ai un soucis avec les produits Hors stock qui sont commandables sur ma boutique.

J'ai bien le message qui s'affiche en cas de rupture sur la fiche produit : 

http://www.zoanthus.fr/sels-marins/40-aquaforest-probiotic-reef-salt-22kg-5902026730051.html

 

Mais dans la liste des produits, le produit s'affiche "en stock".

http://www.zoanthus.fr/44-sel-r%C3%A9cifal-enrichi

 

 

Je n'arrive pas résoudre ce problème seul.

Je vous donne le code de mon fichier product_list.tpl ( je pense que cela doit ce gérer à ce niveau là )

 

 

{if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}
<div class="availability">
{if ($product.allow_oosp || $product.quantity > 0)}
<span class="label {if $product.quantity <= 0 && !$product.allow_oosp}out-of-stock label-warning{else}available-now label-success{/if}">
{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 label label-warning">
{l s='Product available with different options'}
</span>
{else}
<span class="out-of-stock label label-danger">
{l s='Out of stock'}
</span>
{/if}
</div>
{/if}
 
 
 
Merci à vous
Clément
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...