Grafyx89 Posted November 18, 2017 Share Posted November 18, 2017 (edited) 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 November 19, 2017 by Grafyx89 (see edit history) Link to comment Share on other sites More sharing options...
Grafyx89 Posted November 19, 2017 Author Share Posted November 19, 2017 (edited) 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 November 19, 2017 by Grafyx89 (see edit history) Link to comment Share on other sites More sharing options...
jeromecollection Posted January 5, 2018 Share Posted January 5, 2018 Bonjour, je suis sur ps 1.6.1.17 theme défaut... lorsque je fait la modif , tout passe en opaque .... pouvez vous m'aiguiller ...svp merci . je n'ai pas modifié le css 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