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

#   Il vous reste xxx € avant d'atteindre le franco

##

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 11 months ago [\#28788](#28788) by [vichymotoculture](/forum/user/3956-vichymotoculture "View vichymotoculture's Profile")  *[Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#28788 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")* was created by *[vichymotoculture](/forum/user/3956-vichymotoculture "View vichymotoculture's Profile")*

Bonjour,

Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4

Est-il possible avec Hikashop de faire afficher un message qui indique au client "il vous reste xxx € avant d'avoir les frais de port offert"

Ceci pour inciter le client à commander plus de produit pour atteindre le franco.

Merci par avance.

Cordialement.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMjg3ODgtaWwtdm91cy1yZXN0ZS14eHgtZXVyLWF2YW50LWRhdHRlaW5kcmUtbGUtZnJhbmNvP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Online](/forum/user/63-nicolas)

Less More

- Posts: 86310
- Thank you received: 14274
-
-

14 years 11 months ago [\#28800](#28800) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#28800 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Bonjour,

Il n'y a pas d'option pour cela. Il faudrait éditer le fichier "cart" de la vue "checkout" pour rajouter du code de la sorte:

if($this-&gt;total-&gt;prices[0]-&gt;price_value_with_tax&lt;YYY){
echo 'il vous reste '.(YYY - $this-&gt;total-&gt;prices[0]-&gt;price_value_with_tax).'€ avant d'avoir les frais de port offert';
}

où YYY est le montant à partir du quel vous offrez les frais de port.

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 11 months ago [\#28863](#28863) by [vichymotoculture](/forum/user/3956-vichymotoculture "View vichymotoculture's Profile")  Replied by *[vichymotoculture](/forum/user/3956-vichymotoculture "View vichymotoculture's Profile")* on topic *[Re: Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#28863 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Bonjour,

Merci beaucoup pour votre réponse. J'ai essayé d'insérer le code mais celui-ci apparait codé sur ma page du front-end. Saurez-vous exactement ou il faut insérer ce code dans la page ?

Merci par avance.

Cordialement.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMjg3ODgtaWwtdm91cy1yZXN0ZS14eHgtZXVyLWF2YW50LWRhdHRlaW5kcmUtbGUtZnJhbmNvP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Online](/forum/user/63-nicolas)

Less More

- Posts: 86310
- Thank you received: 14274
-
-

14 years 11 months ago [\#28892](#28892) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#28892 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Vous pouvez mettre cela juste après le premier tag &lt;?php du fichier.

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 11 months ago [\#28901](#28901) by [vichymotoculture](/forum/user/3956-vichymotoculture "View vichymotoculture's Profile")  Replied by *[vichymotoculture](/forum/user/3956-vichymotoculture "View vichymotoculture's Profile")* on topic *[Re: Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#28901 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Merci pour votre réponse. Quand je fais ceci j'ai le message suivant qui apparait :
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in web/templates/vm/html/com_hikashop/checkout/cart.php on line 3

Je ne vois pas ce qui cloche.

Merci par avance.

Cordialement.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMjg3ODgtaWwtdm91cy1yZXN0ZS14eHgtZXVyLWF2YW50LWRhdHRlaW5kcmUtbGUtZnJhbmNvP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Online](/forum/user/63-nicolas)

Less More

- Posts: 86310
- Thank you received: 14274
-
-

14 years 11 months ago [\#28902](#28902) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#28902 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Pourriez vous faire une capture d'écran de ce que vous avez écrit ?

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 11 months ago [\#28904](#28904) by [vichymotoculture](/forum/user/3956-vichymotoculture "View vichymotoculture's Profile")  Replied by *[vichymotoculture](/forum/user/3956-vichymotoculture "View vichymotoculture's Profile")* on topic *[Re: Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#28904 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Voici la capture d'écran.  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Capture_decran_2011_11_02_a_17.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Capture_decran_2011_11_02_a_17.png "&#91;img")

- [ ![Capture&#95;decran&#95;2011&#95;11&#95;02&#95;a&#95;17.png](/forum/attachment/1988) ](/forum/attachment/1988 "...11&#95;02&#95;a&#95;17.png") [ ](/forum/attachment/1988?download=1 "...11&#95;02&#95;a&#95;17.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMjg3ODgtaWwtdm91cy1yZXN0ZS14eHgtZXVyLWF2YW50LWRhdHRlaW5kcmUtbGUtZnJhbmNvP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Online](/forum/user/63-nicolas)

Less More

- Posts: 86310
- Thank you received: 14274
-
-

14 years 11 months ago [\#28906](#28906) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#28906 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Ah, un petit détail. Il faut écrire d\'avoir et non d'avoir dans la phrase car sinon c'est interprété par le php.

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 11 months ago [\#28907](#28907) by [vichymotoculture](/forum/user/3956-vichymotoculture "View vichymotoculture's Profile")  Replied by *[vichymotoculture](/forum/user/3956-vichymotoculture "View vichymotoculture's Profile")* on topic *[Re: Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#28907 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Super. Merci ça marche à présent. Ça m'avait échappé.

Cordialement.

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

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

Less More

- Posts: 102
- Thank you received: 10
-
-

12 years 8 months ago [\#144354](#144354) by [walkyrie](/forum/user/7240-walkyrie "View walkyrie's Profile")  Replied by *[walkyrie](/forum/user/7240-walkyrie "View walkyrie's Profile")* on topic *[Re: Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#144354 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Bonjour,

J'ai exactement le même besoin. Je voudrai simplement savoir si la fonction a été rajoutée, ou sinon si la méthode à employer est toujours la même?

D'avance, merci!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMjg3ODgtaWwtdm91cy1yZXN0ZS14eHgtZXVyLWF2YW50LWRhdHRlaW5kcmUtbGUtZnJhbmNvP3RtcGw9bWFya2Rvd24=) 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
-
-
-

12 years 8 months ago [\#144362](#144362) 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 *[Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#144362 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Bonjour,
La fonction n'a pas été ajoutée, la méthode à employer sera donc la même ![:)](/media/kunena/emoticons/8.png ":)").

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

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

Less More

- Posts: 102
- Thank you received: 10
-
-

12 years 8 months ago [\#144368](#144368) by [walkyrie](/forum/user/7240-walkyrie "View walkyrie's Profile")  Replied by *[walkyrie](/forum/user/7240-walkyrie "View walkyrie's Profile")* on topic *[Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#144368 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

merci pour la réponse Mohamed et bonne journée!

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

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

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

Less More

- Posts: 261
- Thank you received: 4
-
-

12 years 8 months ago [\#146313](#146313) by [djiben](/forum/user/7756-djiben "View djiben's Profile")  Replied by *[djiben](/forum/user/7756-djiben "View djiben's Profile")* on topic *[Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#146313 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Bonjour,

Je souhaite utiliser ce code pour mon site. Pouvez-vous m'aider à l'améliorer svp ?

- Je souhaiterais que le montant s'affiche comme ça : il vous reste 124,20 € avant ...
Actuellement il s'affiche comme ça : 124.2
- J'aimerais également rajouter un class css à cette phrase pour pouvoir lui donner du style. Malheureusement je n'en suis qu'à la page 2 du tuto "débuter avec php" ...

Bon pour la 2ème question, je finirais bien par trouver (enfin j'espère) mais pour la 1ère ça me dépasse largement.

Merci d'avance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMjg3ODgtaWwtdm91cy1yZXN0ZS14eHgtZXVyLWF2YW50LWRhdHRlaW5kcmUtbGUtZnJhbmNvP3RtcGw9bWFya2Rvd24=) 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
-
-
-

12 years 8 months ago [\#146325](#146325) 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 *[Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#146325 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Bonjour,
Je pense qu'utiliser ce genre de code fera surement l'affaire : Code:

if($this-&gt;total-&gt;prices[0]-&gt;price_value_with_tax&lt;YYY){ echo '&lt;span class="MACLASSE"&gt;il vous reste '.(YYY - $this-&gt;total-&gt;prices[0]-&gt;price_value_with_tax).'€ avant...&lt;/span&gt;'; }

Veuillez noter qu'il vous faudra renommer MACLASSE par votre classe CSS.

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

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

Less More

- Posts: 261
- Thank you received: 4
-
-

12 years 8 months ago [\#146357](#146357) by [djiben](/forum/user/7756-djiben "View djiben's Profile")  Replied by *[djiben](/forum/user/7756-djiben "View djiben's Profile")* on topic *[Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#146357 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Merci bien ça fonctionne.
Par contre auriez-vous une idée pour modifier l'affichage du prix ?
Je souhaiterais que le montant s'affiche comme ça : il vous reste 124,20 € avant ...
Actuellement il s'affiche comme ça : 124.2 € avant ...

Merci de votre aide

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMjg3ODgtaWwtdm91cy1yZXN0ZS14eHgtZXVyLWF2YW50LWRhdHRlaW5kcmUtbGUtZnJhbmNvP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Online](/forum/user/63-nicolas)

Less More

- Posts: 86310
- Thank you received: 14274
-
-

12 years 7 months ago [\#146534](#146534) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#146534 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

En ce cas, au lieu de Code:

(YYY - $this-&gt;total-&gt;prices[0]-&gt;price_value_with_tax)

vous pouvez utiliser Code:

round(YYY - $this-&gt;total-&gt;prices[0]-&gt;price_value_with_tax,2)

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

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

Less More

- Posts: 261
- Thank you received: 4
-
-

12 years 7 months ago [\#146712](#146712) by [djiben](/forum/user/7756-djiben "View djiben's Profile")  Replied by *[djiben](/forum/user/7756-djiben "View djiben's Profile")* on topic *[Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#146712 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Non ça fonctionne pas chez moi, je me suis surement loupé dans le code. Ci-jointes les captures d'écran.

####  Attachment not found

####  Attachment not found

Merci d'avance.

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#146757](#146757) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#146757 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Bonjour,

Merci d'utiliser la variable: Code:

$this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax

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

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

Less More

- Posts: 261
- Thank you received: 4
-
-

12 years 7 months ago [\#146776](#146776) by [djiben](/forum/user/7756-djiben "View djiben's Profile")  Replied by *[djiben](/forum/user/7756-djiben "View djiben's Profile")* on topic *[Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#146776 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Non Xavier ce n'est pas ça que je souhaite faire. Je souhaite que le montant en question s'affiche à la française comme ça 53,20 €.
En mettant la variable que tu m'as donné ça donne ça :

####  Attachment not found

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#146780](#146780) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Il vous reste xxx € avant d'atteindre le franco](/forum/5-support-en-francais-french-support-/28788-il-vous-reste-xxx-eur-avant-datteindre-le-franco#146780 "Bonjour,  Je travail sur Joomla 1.5.23 et Hikashop Business 1.5.4  Est-il possible avec Hikashop de faire afficher un message qui indique au client &quot;il vous reste xxx € avant d'avoir les frais de port offert&quot;  Ceci pour inciter le client à commander plus de produit pour atteindre le franco.  Merci par avance.  Cordialement.")*

Autant pour moi je n'avais pas compris ce que vous souhaitiez..
Ce genre de code devrait résoudre votre problème: Code:

$nb = round(YYY - $this-&gt;total-&gt;prices[0]-&gt;price_value_with_tax,2); if(strlen(substr(strrchr($nb, "."), 1)) == 1){ $nb .= '0'; }elseif(strlen(substr(strrchr($nb, "."), 1)) == 0){ $nb .= '.00'; } echo $nb;

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

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

[](#top)
