Jump to content

Recommended Posts

Bonjour,

 

Quand j'ai un article en promotion à -20% est-il possible que sur la page produit cela affiche -20% au lieu d'un prix barré.

 

Ou existe-t-il un module pour cela?

 

Merci 

Share this post


Link to post
Share on other sites

Oui, ajuste tes tpls à la manière du thème de base product-list.tpl

{if $product.specific_prices.reduction_type == 'percentage'}
   <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span>
{/if}

Share this post


Link to post
Share on other sites

 

Oui, ajuste tes tpls à la manière du thème de base product-list.tpl

{if $product.specific_prices.reduction_type == 'percentage'}
   <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span>
{/if}

Merci de la réponse, si j'ai bien compris, je dois rajouter ces lignes à la fin du fichier product-list.tpl de mon thème?

Share this post


Link to post
Share on other sites

Non j'ai pas dit ça.

Tu regarde comment est structuré le thème d'origine et comment ton thème est organisé et tu ajustes.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More