shipping address country
9 years 7 months ago #262830
by kyratn
shipping address country was created by kyratn
Hi,
How can i get and show shipping address country during checkout?
I used this for name "$cart->shipping_address->address_firstname" but i am struggling with country and i get "array" insteed country name.
Thanks
How can i get and show shipping address country during checkout?
I used this for name "$cart->shipping_address->address_firstname" but i am struggling with country and i get "array" insteed country name.
Thanks
Please Log in or Create an account to join the conversation.
9 years 7 months ago #262850
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic shipping address country
Hi,
You should take a look at the content of the variable :
us3.php.net/manual/fr/function.var-dump.php
Regards,
You should take a look at the content of the variable :
us3.php.net/manual/fr/function.var-dump.php
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
9 years 7 months ago - 9 years 7 months ago #262951
by kyratn
Replied by kyratn on topic shipping address country
Hi,
Jerome honestly, whenever i create new topic i hope someone else will answer it :lol:
You always give tips and a lot documentation and this is welcome but not exactly how could you do it. ...
It would take 3 min for u to give code example but insteed i will have now to spend 2 hours with trying.
No offense
Thanks
Jerome honestly, whenever i create new topic i hope someone else will answer it :lol:
You always give tips and a lot documentation and this is welcome but not exactly how could you do it. ...
It would take 3 min for u to give code example but insteed i will have now to spend 2 hours with trying.

No offense
Thanks
Last edit: 9 years 7 months ago by kyratn.
Please Log in or Create an account to join the conversation.
9 years 7 months ago #262954
by nicolas
Replied by nicolas on topic shipping address country
Hi,
Try something like that with the new checkout:
Please understand that custom coding is not part of customer support.
Try something like that with the new checkout:
Code:
$this->cart_addresses = $this->checkoutHelper->getAddresses();
$address = $this->cart_addresses['data'][ $cart->cart_billing_address_id ];
echo $address->address_country;
Please understand that custom coding is not part of customer support.
Please Log in or Create an account to join the conversation.
9 years 7 months ago #263061
by kyratn
Replied by kyratn on topic shipping address country
Hi,
Thank you Nicolas. That did the trick. Looking into code i see that was doing it wrong.
I understand that custom coding is not part of customer support.
I am with hikashop almost for 2 years and i found a lot topics with custom code given which did help me and many other people. So few lines of code is 2 minutes for you...and in the future it will help other people.
Anyway. You always can just ignore it and allow other people not hika team members to answer it.
Thanks again.
Thank you Nicolas. That did the trick. Looking into code i see that was doing it wrong.
I understand that custom coding is not part of customer support.
I am with hikashop almost for 2 years and i found a lot topics with custom code given which did help me and many other people. So few lines of code is 2 minutes for you...and in the future it will help other people.
Anyway. You always can just ignore it and allow other people not hika team members to answer it.
Thanks again.
Please Log in or Create an account to join the conversation.
Time to create page: 0.179 seconds