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

#   \[RESOLU\] checkout/step.php recuperer les valeurs

##

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

14 years 4 months ago -  14 years 4 months ago [\#56989](#56989) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[\[RESOLU\] checkout/step.php recuperer les valeurs](/forum/5-support-en-francais-french-support-/56989-resolu-checkout-step-php-recuperer-les-valeurs#56989 "dans ./templates/TPL/html/com&#95;hikashop//checkout/step.php en plusieurs steps je veux récupérer des valeurs comme payment&#95;shipping&#95;methods et shipping&#95;name quelle est la methode employee par Hikashop ?  merci")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

dans ./templates/TPL/html/com_hikashop//checkout/step.php en plusieurs steps je veux récupérer des valeurs comme payment_shipping_methods et shipping_name
quelle est la methode employee par Hikashop ?

merci

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

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

14 years 4 months ago [\#57040](#57040) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: checkout/step.php recuperer les valeurs](/forum/5-support-en-francais-french-support-/56989-resolu-checkout-step-php-recuperer-les-valeurs#57040 "dans ./templates/TPL/html/com&#95;hikashop//checkout/step.php en plusieurs steps je veux récupérer des valeurs comme payment&#95;shipping&#95;methods et shipping&#95;name quelle est la methode employee par Hikashop ?  merci")*

Si la vue shipping est affichée, les méthodes de livraison sont stockées dans $this-&gt;rates
Il est ainsi possible de faire cela:

foreach($this-&gt;rates as $rate){
echo $rate-&gt;shipping_name;
}

Si la vue payment est affichée, les méthodes de paiement sont stockées dans $this-&gt;methods
Il est ainsi possible de faire cela:

foreach($this-&gt;methods as $method){
echo $method-&gt;payment_shipping_methods;
}

Si les vues ne sont pas affichées sur l'étape actuelle, il va falloir utiliser le code des fonctions shipping/payment de components/com_hikashop/views/checkout/view.html.php pour charger ces données avant de les utiliser.

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

14 years 4 months ago -  14 years 4 months ago [\#57070](#57070) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: checkout/step.php recuperer les valeurs](/forum/5-support-en-francais-french-support-/56989-resolu-checkout-step-php-recuperer-les-valeurs#57070 "dans ./templates/TPL/html/com&#95;hikashop//checkout/step.php en plusieurs steps je veux récupérer des valeurs comme payment&#95;shipping&#95;methods et shipping&#95;name quelle est la methode employee par Hikashop ?  merci")*

merci Nicolas

je viens de tester et je le recupere tout simplement avec $this-&gt;shipping-&gt;shipping_id

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

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

14 years 4 months ago -  14 years 4 months ago [\#57071](#57071) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: checkout/step.php recuperer les valeurs](/forum/5-support-en-francais-french-support-/56989-resolu-checkout-step-php-recuperer-les-valeurs#57071 "dans ./templates/TPL/html/com&#95;hikashop//checkout/step.php en plusieurs steps je veux récupérer des valeurs comme payment&#95;shipping&#95;methods et shipping&#95;name quelle est la methode employee par Hikashop ?  merci")*

maintenant dans cette etape je dois récupérer toute l'adresse du client pour tester certaines valeurs

$adr = hikashop_get('class.address');
mais dans var_dump($adr); il n'y a rien

comment je recupere les valeurs ? $adr-&gt;address_company ou $adr-&gt;get('address_company') par exemple

je peux bien entendu faire une requete SQL mais je prefere utiliser les class d'Hikashop

merci

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

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

14 years 4 months ago -  14 years 4 months ago [\#57108](#57108) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: checkout/step.php recuperer les valeurs](/forum/5-support-en-francais-french-support-/56989-resolu-checkout-step-php-recuperer-les-valeurs#57108 "dans ./templates/TPL/html/com&#95;hikashop//checkout/step.php en plusieurs steps je veux récupérer des valeurs comme payment&#95;shipping&#95;methods et shipping&#95;name quelle est la methode employee par Hikashop ?  merci")*

$cartClass = hikashop_get('class.cart');
$cart = $cartClass-&gt;loadFullCart(true,false);
echo $cart-&gt;shipping_address-&gt;address_company;

ça marche

et merci à Jerome pour l'info

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

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

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