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

#   affichage de la reduction à l'envers

##

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

Less More

- Posts: 2697
- Thank you received: 74
-
-

14 years 7 months ago [\#43377](#43377) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[affichage de la reduction à l'envers](/forum/5-support-en-francais-french-support-/43377-affichage-de-la-reduction-a-lenvers#43377 "Bonjour  la reduction s'affiche --&gt; 69,50 € -50% &#91;strike&#93;139,00 €&#91;/strike&#93; alors que c'est generalement le contraire --&gt; &#91;strike&#93;139,00 €&#91;/strike&#93; -50% 69,50 €  il y a un moyen simple pour remettre dans cet ordre ?  merci")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

Bonjour

la reduction s'affiche --&gt; **69,50 €** -50% [strike]139,00 €[/strike]
alors que c'est generalement le contraire --&gt; [strike]139,00 €[/strike] -50% **69,50 €**

il y a un moyen simple pour remettre dans cet ordre ?

merci

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14277
-
-

14 years 7 months ago [\#43405](#43405) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: affichage de la reduction à l'envers](/forum/5-support-en-francais-french-support-/43377-affichage-de-la-reduction-a-lenvers#43405 "Bonjour  la reduction s'affiche --&gt; 69,50 € -50% &#91;strike&#93;139,00 €&#91;/strike&#93; alors que c'est generalement le contraire --&gt; &#91;strike&#93;139,00 €&#91;/strike&#93; -50% 69,50 €  il y a un moyen simple pour remettre dans cet ordre ?  merci")*

Bonjour,

Nous avons justement changé l'ordre sur la 1.5.7.
Sinon, vous pouvez changer cela facilement en éditant le fichier listing_price de la vue product pour inverser les deux morceaux de code.

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

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

Less More

- Posts: 2697
- Thank you received: 74
-
-

14 years 7 months ago -  14 years 7 months ago [\#43449](#43449) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: affichage de la reduction à l'envers](/forum/5-support-en-francais-french-support-/43377-affichage-de-la-reduction-a-lenvers#43449 "Bonjour  la reduction s'affiche --&gt; 69,50 € -50% &#91;strike&#93;139,00 €&#91;/strike&#93; alors que c'est generalement le contraire --&gt; &#91;strike&#93;139,00 €&#91;/strike&#93; -50% 69,50 €  il y a un moyen simple pour remettre dans cet ordre ?  merci")*

j'ai repris la view de la 1.5.7 et j'ai bien

-50% 44,50 €

mais quel est le paramètre dans la config pour avoir le prix avant réduction ($price-&gt;price_value_without_discount) et afficher tout ?

**89 €** -50% 44,50 €

merci

Last edit: 14 years 7 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14277
-
-

14 years 7 months ago [\#43595](#43595) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: affichage de la reduction à l'envers](/forum/5-support-en-francais-french-support-/43377-affichage-de-la-reduction-a-lenvers#43595 "Bonjour  la reduction s'affiche --&gt; 69,50 € -50% &#91;strike&#93;139,00 €&#91;/strike&#93; alors que c'est generalement le contraire --&gt; &#91;strike&#93;139,00 €&#91;/strike&#93; -50% 69,50 €  il y a un moyen simple pour remettre dans cet ordre ?  merci")*

Il n'y a pas d'option pour afficher le prix avant réduction et la réduction.
Il y a l'option "afficher les prix réduits" de la configuration pour choisir d'afficher soit l'un soit l'autre.
Mais il suffit d'éditer légèrement la vue pour afficher les deux.
il suffit de remplacer cette ligne:
}elseif($this-&gt;params-&gt;get('show_discount')==2){

par:
}
if($this-&gt;params-&gt;get('show_discount')==1){

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

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

Less More

- Posts: 2697
- Thank you received: 74
-
-

14 years 7 months ago [\#43600](#43600) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: affichage de la reduction à l'envers](/forum/5-support-en-francais-french-support-/43377-affichage-de-la-reduction-a-lenvers#43600 "Bonjour  la reduction s'affiche --&gt; 69,50 € -50% &#91;strike&#93;139,00 €&#91;/strike&#93; alors que c'est generalement le contraire --&gt; &#91;strike&#93;139,00 €&#91;/strike&#93; -50% 69,50 €  il y a un moyen simple pour remettre dans cet ordre ?  merci")*

ca serait une bonne option pour une prochaine version

[strike]80[/strike] *-50%* **40**

merci pour la reponse

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14277
-
-

14 years 7 months ago [\#43640](#43640) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: affichage de la reduction à l'envers](/forum/5-support-en-francais-french-support-/43377-affichage-de-la-reduction-a-lenvers#43640 "Bonjour  la reduction s'affiche --&gt; 69,50 € -50% &#91;strike&#93;139,00 €&#91;/strike&#93; alors que c'est generalement le contraire --&gt; &#91;strike&#93;139,00 €&#91;/strike&#93; -50% 69,50 €  il y a un moyen simple pour remettre dans cet ordre ?  merci")*

C'est noté.

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

- **[Master01Bruno](/forum/user/3716-master01bruno "View Master01Bruno's Profile")**
- [![Master01Bruno's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar3716.jpg)](/forum/user/3716-master01bruno "View Master01Bruno's Profile")
- [ Offline](/forum/user/3716-master01bruno)

Less More

- Posts: 15
- Thank you received: 0
-
-
- [](http://dogklub.com)
-

14 years 7 months ago [\#44610](#44610) by [Master01Bruno](/forum/user/3716-master01bruno "View Master01Bruno's Profile")  Replied by *[Master01Bruno](/forum/user/3716-master01bruno "View Master01Bruno's Profile")* on topic *[Re: affichage de la reduction à l'envers](/forum/5-support-en-francais-french-support-/43377-affichage-de-la-reduction-a-lenvers#44610 "Bonjour  la reduction s'affiche --&gt; 69,50 € -50% &#91;strike&#93;139,00 €&#91;/strike&#93; alors que c'est generalement le contraire --&gt; &#91;strike&#93;139,00 €&#91;/strike&#93; -50% 69,50 €  il y a un moyen simple pour remettre dans cet ordre ?  merci")*

Bonjour,

J'ai fait le changement de ligne de code proposé et cela fonctionne, par contre le résultat chez moi est :

2,25 € -25%[strike]3,00 €[/strike]

est-il possible de rajouter un espace entre le -25% et l'ancien prix barré pour avoir le résultat suivant :

2,25 € -25% [strike]3,00 €[/strike]

Merci par avance

Bruno

[ ![hikashop&#95;001.png](/forum/attachment/3214) ](/forum/attachment/3214 "hikashop&#95;001.png")

- [ ![hikashop&#95;001.png](/forum/attachment/3214) ](/forum/attachment/3214 "hikashop&#95;001.png") [ ](/forum/attachment/3214?download=1 "hikashop&#95;001.png")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14277
-
-

14 years 7 months ago [\#44771](#44771) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: affichage de la reduction à l'envers](/forum/5-support-en-francais-french-support-/43377-affichage-de-la-reduction-a-lenvers#44771 "Bonjour  la reduction s'affiche --&gt; 69,50 € -50% &#91;strike&#93;139,00 €&#91;/strike&#93; alors que c'est generalement le contraire --&gt; &#91;strike&#93;139,00 €&#91;/strike&#93; -50% 69,50 €  il y a un moyen simple pour remettre dans cet ordre ?  merci")*

Il vous suffit de configurer un override de traduction pour cela pour expliqué ici:
[ www.hikashop.com/fr/download/languages.html#modify](http://www.hikashop.com/fr/download/languages.html#modify)

Par exemple:
PRICE_DISCOUNT_END=" "

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

- **[klamort](/forum/user/20709-klamort "View klamort's Profile")**
- [![klamort's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar20709.jpg)](/forum/user/20709-klamort "View klamort's Profile")
- [ Offline](/forum/user/20709-klamort)

Less More

- Posts: 22
- Thank you received: 0
-
- [](http://motosrosmant.be)
-

13 years 6 days ago [\#129733](#129733) by [klamort](/forum/user/20709-klamort "View klamort's Profile")  Replied by *[klamort](/forum/user/20709-klamort "View klamort's Profile")* on topic *[affichage de la reduction à l'envers](/forum/5-support-en-francais-french-support-/43377-affichage-de-la-reduction-a-lenvers#129733 "Bonjour  la reduction s'affiche --&gt; 69,50 € -50% &#91;strike&#93;139,00 €&#91;/strike&#93; alors que c'est generalement le contraire --&gt; &#91;strike&#93;139,00 €&#91;/strike&#93; -50% 69,50 €  il y a un moyen simple pour remettre dans cet ordre ?  merci")*

> erickb wrote: Bonjour
>
> la reduction s'affiche --&gt; **69,50 €** -50% \[strike\]139,00 €\[/strike\]
> alors que c'est generalement le contraire --&gt; \[strike\]139,00 €\[/strike\] -50% **69,50 €**
>
> il y a un moyen simple pour remettre dans cet ordre ?
>
> merci

Bonjour,

Pouvez-vous me dire comment vous avez fait pour avoir un prix "[strike]barré[/strike]"

Merci.

---

Je suis responsable de ce que je dis, pas de ce que tu comprends!

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

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

Less More

- Posts: 2697
- Thank you received: 74
-
-

13 years 6 days ago [\#129734](#129734) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[affichage de la reduction à l'envers](/forum/5-support-en-francais-french-support-/43377-affichage-de-la-reduction-a-lenvers#129734 "Bonjour  la reduction s'affiche --&gt; 69,50 € -50% &#91;strike&#93;139,00 €&#91;/strike&#93; alors que c'est generalement le contraire --&gt; &#91;strike&#93;139,00 €&#91;/strike&#93; -50% 69,50 €  il y a un moyen simple pour remettre dans cet ordre ?  merci")*

le html Code:

&lt;span class="hk_product_price_full"&gt; &lt;span class="hk_product_price_strike"&gt;59,00 €&lt;/span&gt;&lt;span class="hk_product_discount"&gt;-50%&lt;/span&gt;&lt;span class="hk_product_price hikashop_product_price_0 hk_product_price_with_discount"&gt;29,50 €&lt;/span&gt; &lt;/span&gt;

et le css
Code:

.hk_product_price_strike{ text-decoration:line-through; }

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile"), [klamort](/forum/user/20709-klamort "View klamort's Profile")

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

- **[klamort](/forum/user/20709-klamort "View klamort's Profile")**
- [![klamort's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar20709.jpg)](/forum/user/20709-klamort "View klamort's Profile")
- [ Offline](/forum/user/20709-klamort)

Less More

- Posts: 22
- Thank you received: 0
-
- [](http://motosrosmant.be)
-

13 years 6 days ago [\#129759](#129759) by [klamort](/forum/user/20709-klamort "View klamort's Profile")  Replied by *[klamort](/forum/user/20709-klamort "View klamort's Profile")* on topic *[affichage de la reduction à l'envers](/forum/5-support-en-francais-french-support-/43377-affichage-de-la-reduction-a-lenvers#129759 "Bonjour  la reduction s'affiche --&gt; 69,50 € -50% &#91;strike&#93;139,00 €&#91;/strike&#93; alors que c'est generalement le contraire --&gt; &#91;strike&#93;139,00 €&#91;/strike&#93; -50% 69,50 €  il y a un moyen simple pour remettre dans cet ordre ?  merci")*

Merci, je vais essayer de faire cela.

---

Je suis responsable de ce que je dis, pas de ce que tu comprends!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDMzNzctYWZmaWNoYWdlLWRlLWxhLXJlZHVjdGlvbi1hLWxlbnZlcnM/dG1wbD1tYXJrZG93bg==) 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.136 seconds

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

[](#top)
