[Skip to main content](#vessel-content)

#   Changer l'ordre d'affichage prix régulier, escompte et prix escompté

##

- **[patoushka](/forum/user/6145-patoushka "View patoushka's Profile")**
- [![patoushka's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6145-patoushka "View patoushka's Profile") Topic Author
- [ Offline](/forum/user/6145-patoushka)

Less More

- Posts: 628
- Thank you received: 18
-
-

6 years 6 months ago [\#319711](#319711) by [patoushka](/forum/user/6145-patoushka "View patoushka's Profile")  *[Changer l'ordre d'affichage prix régulier, escompte et prix escompté](/forum/5-support-en-francais-french-support-/899980-changer-lordre-daffichage-prix-regulier-escompte-et-prix-escompte#319711 "-- url of the page with the problem -- :   www.leseditionsshakespeare.com/fr/compon...ente-facil-ebook-gpi  Bonjour,  je cherche à faire afficher le % de rabais au milieu des deux prix. J'ai beau chercher dans le code product / listing-price.php mais, je ne trouve pas.  J'aimerais aussi que le prix régulier soit barré.  pourriez-vous m'aider ?  Merci,")* was created by *[patoushka](/forum/user/6145-patoushka "View patoushka's Profile")*

-- url of the page with the problem -- : [ www.leseditionsshakespeare.com/fr/compon...ente-facil-ebook-gpi](https://www.leseditionsshakespeare.com/fr/component/hikashop/product/32-gramaticalmente-facil-ebook-gpi)

Bonjour,

je cherche à faire afficher le % de rabais au milieu des deux prix. J'ai beau chercher dans le code product / listing-price.php mais, je ne trouve pas.

J'aimerais aussi que le prix régulier soit barré.

pourriez-vous m'aider ?

Merci,

[ ![Capturedecranle2020-05-25a08.45.49.png](/forum/attachment/49514) ](/forum/attachment/49514 "...5a08.45.49.png")

[ ![Capturedecranle2020-05-25a08.48.35.png](/forum/attachment/49515) ](/forum/attachment/49515 "...5a08.48.35.png")

- [ ![Capturedecranle2020-05-25a08.45.49.png](/forum/attachment/49514) ](/forum/attachment/49514 "...5a08.45.49.png") [ ](/forum/attachment/49514?download=1 "...5a08.45.49.png")
- [ ![Capturedecranle2020-05-25a08.48.35.png](/forum/attachment/49515) ](/forum/attachment/49515 "...5a08.48.35.png") [ ](/forum/attachment/49515?download=1 "...5a08.48.35.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODk5OTgwLWNoYW5nZXItbG9yZHJlLWRhZmZpY2hhZ2UtcHJpeC1yZWd1bGllci1lc2NvbXB0ZS1ldC1wcml4LWVzY29tcHRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

6 years 6 months ago -  6 years 6 months ago [\#319717](#319717) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Changer l'ordre d'affichage prix régulier, escompte et prix escompté](/forum/5-support-en-francais-french-support-/899980-changer-lordre-daffichage-prix-regulier-escompte-et-prix-escompte#319717 "-- url of the page with the problem -- :   www.leseditionsshakespeare.com/fr/compon...ente-facil-ebook-gpi  Bonjour,  je cherche à faire afficher le % de rabais au milieu des deux prix. J'ai beau chercher dans le code product / listing-price.php mais, je ne trouve pas.  J'aimerais aussi que le prix régulier soit barré.  pourriez-vous m'aider ?  Merci,")*

Bonjour,

Les lignes de code responsable de l'affichage du pourcentage de code est : Code:

if(in_array($this-&gt;params-&gt;get('show_discount'), array(1, 4))) { echo '&lt;span class="hikashop_product_discount"&gt;'.JText::_('PRICE_DISCOUNT_START'); if(bccomp($this-&gt;row-&gt;discount-&gt;discount_flat_amount, 0, 5) !== 0) { echo $this-&gt;currencyHelper-&gt;format( -1 * $this-&gt;row-&gt;discount-&gt;discount_flat_amount, $price-&gt;price_currency_id); } elseif(bccomp($this-&gt;row-&gt;discount-&gt;discount_percent_amount, 0, 5) !== 0) { echo -1*$this-&gt;row-&gt;discount-&gt;discount_percent_amount.'%'; } echo JText::_('PRICE_DISCOUNT_END').'&lt;/span&gt;'; }

Il vous suffira donc de bouger ces lignes de code.

> J'aimerais aussi que le prix régulier soit barré.

Utiliser ce genre de code CSS fera l'affaire : Code:

text-decoration: line-through;

[ www.hikashop.com/support/documentation/1...the-display.html#css](https://www.hikashop.com/support/documentation/153-customize-the-display.html#css)

Bien cordialement,
Mohamed.

Last edit: 6 years 6 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODk5OTgwLWNoYW5nZXItbG9yZHJlLWRhZmZpY2hhZ2UtcHJpeC1yZWd1bGllci1lc2NvbXB0ZS1ldC1wcml4LWVzY29tcHRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.070 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
