ALouis Posted July 26, 2016 Share Posted July 26, 2016 Bonjour, Je suis sous PS 1.6.1.5 URL: www.vindebout.fr J'ai ajouté des prix spécifiques sur certains produit, à partir de 6 btl je fais 10% de remise. Ce prix s'affiche dans la fiche produit sous la forme: 'A partir de 6 : X Euros' Par exemple: http://www.vindebout.fr/loire/181-herve-villemade-bovin-2015-1-litre.html Je souhaiterais mettre en avant ce prix spécifique sur la fiche produit, soit en mettant la police plus importante, soit en rouge, en gras.... Comment pois je obtenir cela svp? Merci d'avance pour votre aide. Link to comment Share on other sites More sharing options...
Mohamadou Ndiaye Posted July 26, 2016 Share Posted July 26, 2016 Bonjour, Pour ce faire vous devez aller dans thèmes->default-bootstrap->css->product.css ou global.css et ajouter ceci à la fin du fichier par exemple : #product .content_prices .unit-price { color: red; font-weight: bold; } Vous pouvez ajouter autant de propriété css que vous voulez. Et n'oubliez pas de vider la cache. Merci 1 Link to comment Share on other sites More sharing options...
ALouis Posted July 26, 2016 Author Share Posted July 26, 2016 Merci beaucoup c'est parfait, j'ai ajouté cela à la fin de mon product.css: #product .content_prices .unit-price { color: red; font-weight: bold; font-size:24px; } Question subsidiaire, si je veux insérer une image (par exemple de 6 btl) à cette endroit, comment faire? Link to comment Share on other sites More sharing options...
Mohamadou Ndiaye Posted July 27, 2016 Share Posted July 27, 2016 Bonjour, Concernant votre 2ème question, il faut tout d'abord ajouter votre image dans thèmes->default-bootstrap->css->img . Ensuite il faut ouvrir le thèmes->default-bootstrap->product.tpl et chercher ceci dans le fichier : {hook h="displayProductPriceBlock" product=$product type="unit_price" . Enfin ajouter ceci tout juste après <img src="{$img_dir}/votre_image" alt=""> . Et voila maintenant votre image sera afficher après le prix . Merci 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