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

#   recuperer prix dans le checkout

##

- **[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: 2705
- Thank you received: 74
-
-

14 years 6 months ago [\#49394](#49394) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[recuperer prix dans le checkout](/forum/5-support-en-francais-french-support-/49394-recuperer-prix-dans-le-checkout#49394 "il faut que dans le cart.php du checkout je contrôle dans la boucle des articles du caddy le prix final unitaire de chacun et si un des prix est inférieur a x euros je veux afficher un message...")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

il faut que dans le cart.php du checkout je contrôle dans la boucle des articles du caddy le prix final unitaire de chacun et si un des prix est inférieur a x euros je veux afficher un message que ces articles sont sans retour, a quel endroit c'est le mieux pour faire ca (recuperer le prix et mettre une valeur a true par exemple) ?

merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkzOTQtcmVjdXBlcmVyLXByaXgtZGFucy1sZS1jaGVja291dD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

14 years 6 months ago [\#49432](#49432) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: recuperer prix dans le checkout](/forum/5-support-en-francais-french-support-/49394-recuperer-prix-dans-le-checkout#49432 "il faut que dans le cart.php du checkout je contrôle dans la boucle des articles du caddy le prix final unitaire de chacun et si un des prix est inférieur a x euros je veux afficher un message...")*

Après cette ligne:
foreach($this-&gt;rows as $i =&gt; $row){

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkzOTQtcmVjdXBlcmVyLXByaXgtZGFucy1sZS1jaGVja291dD90bXBsPW1hcmtkb3du) 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: 2705
- Thank you received: 74
-
-

14 years 6 months ago [\#49435](#49435) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: recuperer prix dans le checkout](/forum/5-support-en-francais-french-support-/49394-recuperer-prix-dans-le-checkout#49435 "il faut que dans le cart.php du checkout je contrôle dans la boucle des articles du caddy le prix final unitaire de chacun et si un des prix est inférieur a x euros je veux afficher un message...")*

merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkzOTQtcmVjdXBlcmVyLXByaXgtZGFucy1sZS1jaGVja291dD90bXBsPW1hcmtkb3du) 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: 2705
- Thank you received: 74
-
-

14 years 6 months ago -  14 years 6 months ago [\#49522](#49522) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: recuperer prix dans le checkout](/forum/5-support-en-francais-french-support-/49394-recuperer-prix-dans-le-checkout#49522 "il faut que dans le cart.php du checkout je contrôle dans la boucle des articles du caddy le prix final unitaire de chacun et si un des prix est inférieur a x euros je veux afficher un message...")*

avec
Code:

if ($row-&gt;prices[0]-&gt;price_value_with_tax &lt; $firstprice ){ $isfirstprice = 1; echo '&lt;span class="hk_fp_warn" title="'.JText::_('HK_FIRST_PRICE_TITLE').'"&gt;*&lt;/span&gt;'; }

je ne recupere pas le prix unitaire, si j'ai 2 fois le meme article a petit prix ca me recupere le total est le prix n'est pas affiché

bien sur je peux faire :
if ($row-&gt;prices[0]-&gt;price_value_with_tax/ $row-&gt;cart_product_quantity &lt; $firstprice

mais comment recuperer le prix unitaire ?

merci

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkzOTQtcmVjdXBlcmVyLXByaXgtZGFucy1sZS1jaGVja291dD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

14 years 6 months ago [\#49602](#49602) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: recuperer prix dans le checkout](/forum/5-support-en-francais-french-support-/49394-recuperer-prix-dans-le-checkout#49602 "il faut que dans le cart.php du checkout je contrôle dans la boucle des articles du caddy le prix final unitaire de chacun et si un des prix est inférieur a x euros je veux afficher un message...")*

Faites un var_dump de $row et vous aurez la réponse...

C'est $row-&gt;prices[0]-&gt;unit_price-&gt;price_value_with_tax qu'il faut utiliser

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkzOTQtcmVjdXBlcmVyLXByaXgtZGFucy1sZS1jaGVja291dD90bXBsPW1hcmtkb3du) 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: 2705
- Thank you received: 74
-
-

14 years 6 months ago [\#49626](#49626) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: recuperer prix dans le checkout](/forum/5-support-en-francais-french-support-/49394-recuperer-prix-dans-le-checkout#49626 "il faut que dans le cart.php du checkout je contrôle dans la boucle des articles du caddy le prix final unitaire de chacun et si un des prix est inférieur a x euros je veux afficher un message...")*

merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkzOTQtcmVjdXBlcmVyLXByaXgtZGFucy1sZS1jaGVja291dD90bXBsPW1hcmtkb3du) 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: 2705
- Thank you received: 74
-
-

14 years 6 months ago -  14 years 6 months ago [\#49893](#49893) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: recuperer prix dans le checkout](/forum/5-support-en-francais-french-support-/49394-recuperer-prix-dans-le-checkout#49893 "il faut que dans le cart.php du checkout je contrôle dans la boucle des articles du caddy le prix final unitaire de chacun et si un des prix est inférieur a x euros je veux afficher un message...")*

dans l'email de notification ./media/com_hikashop/mail/order_creation_notification.html.modified.php

$item-&gt;unit_price-&gt;price_value_with_tax ne me donne aucune valeur comment je peux avoir le prix unitaire TTC dans l'email ?

je le recupere comme ca @$item-&gt;order_product_total_price / @$item-&gt;order_product_quantity ....

merci

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkzOTQtcmVjdXBlcmVyLXByaXgtZGFucy1sZS1jaGVja291dD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

14 years 6 months ago [\#49995](#49995) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: recuperer prix dans le checkout](/forum/5-support-en-francais-french-support-/49394-recuperer-prix-dans-le-checkout#49995 "il faut que dans le cart.php du checkout je contrôle dans la boucle des articles du caddy le prix final unitaire de chacun et si un des prix est inférieur a x euros je veux afficher un message...")*

comme cela: $item-&gt;order_product_price

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkzOTQtcmVjdXBlcmVyLXByaXgtZGFucy1sZS1jaGVja291dD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

14 years 6 months ago [\#49996](#49996) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: recuperer prix dans le checkout](/forum/5-support-en-francais-french-support-/49394-recuperer-prix-dans-le-checkout#49996 "il faut que dans le cart.php du checkout je contrôle dans la boucle des articles du caddy le prix final unitaire de chacun et si un des prix est inférieur a x euros je veux afficher un message...")*

Il suffisait de faire un var_dump de $item pour avoir la réponse... ![:)](/media/kunena/emoticons/3.png ":)")

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

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