Jump to content

[RESOLU] Afficher une opacité et message sur produit HORS STOCK


Recommended Posts

Bonjour à tous, 

Dans product_list.tpl, je cherche à afficher une conditions qui indique que lorsque le produit est hors-stock il est une opacité et un message qui indique "Rupture de stock, je le veux". 

Ma conditions :  {if $product->quantity < 0} {/if} ne fonctionne pas .. 

 

Merci à tous 

Bon week-end 

Edited by Grafyx89 (see edit history)
Link to comment
Share on other sites

Pour celles/ceux que ça intéressent, résolu, il suffit de mettre à la ligne 

<li class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-3{else} col-xs-12 col-sm-6 col-md-4{/if}" >

Remplacer par 

 

<li class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-3{else} col-xs-12 col-sm-6 col-md-4{/if}" {if $product.quantity_all_versions < 1} style="opacity: 0.3;"{/if}

Ensuite d'y mettre les css voulu 

Edited by Grafyx89 (see edit history)
Link to comment
Share on other sites

  • 1 month later...

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...