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

#   Access cart info from Fields step in checkout

##

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

Less More

- Posts: 23
- Thank you received: 1
-
-

10 years 10 months ago -  10 years 10 months ago [\#226123](#226123) by [Phane](/forum/user/38356-phane "View Phane's Profile")  *[Access cart info from Fields step in checkout](/forum/27-checkout/881488-access-cart-info-from-fields-step-in-checkout#226123 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.45 -- Browser(s) name and version -- : Chrome latest  Hello,  I'd like to access order informations (full price with tax, shipping address) from the &quot;fields&quot; checkout step in order to display (or not) different custom fields, is it possible and if so, how ?  Thank you very much !")* was created by *[Phane](/forum/user/38356-phane "View Phane's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : Chrome latest

Hello,

I'd like to access order informations (full price with tax, shipping address) from the "fields" checkout step in order to display (or not) different custom fields, is it possible and if so, how ?

Thank you very much !

Last edit: 10 years 10 months ago by [Phane](/forum/user/38356-phane "View Phane's Profile").

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 10 months ago -  10 years 10 months ago [\#226180](#226180) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Access order info from Fields step in checkout](/forum/27-checkout/881488-access-cart-info-from-fields-step-in-checkout#226180 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.45 -- Browser(s) name and version -- : Chrome latest  Hello,  I'd like to access order informations (full price with tax, shipping address) from the &quot;fields&quot; checkout step in order to display (or not) different custom fields, is it possible and if so, how ?  Thank you very much !")*

Hello,

This video may help you to understand how the checkout views can be configured.

[ Video tutorial link](https://www.hikashop.com/support/support/documentation/277-configure-your-checkout-workflow.html)

And For the custom field, [ this tutorial](https://www.hikashop.com/support/support/documentation/42-hikashop-field-form.html) as well will give you some clue to create an Order Custom field.
With all of these, you have to add in your checkout configuration the "**Fields**" elements and create your required custom field

Regards,

Last edit: 10 years 10 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 23
- Thank you received: 1
-
-

10 years 10 months ago [\#226250](#226250) by [Phane](/forum/user/38356-phane "View Phane's Profile")  Replied by *[Phane](/forum/user/38356-phane "View Phane's Profile")* on topic *[Access order info from Fields step in checkout](/forum/27-checkout/881488-access-cart-info-from-fields-step-in-checkout#226250 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.45 -- Browser(s) name and version -- : Chrome latest  Hello,  I'd like to access order informations (full price with tax, shipping address) from the &quot;fields&quot; checkout step in order to display (or not) different custom fields, is it possible and if so, how ?  Thank you very much !")*

Hello Philip,

Thank you for your answer.

I understand all of this, I already configured the checkout workflow and added custom fields. The thing is I would like to, in the code (on the checkout/fields.php view), access the order informations with a line like "$this-&gt;orderInfos", and use them to hide or show the custom fields. I know it's possible to access these informations from the checkout/step.php view but is it possible from the fields view ?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTQ4OC1hY2Nlc3MtY2FydC1pbmZvLWZyb20tZmllbGRzLXN0ZXAtaW4tY2hlY2tvdXQ/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: 86561
- Thank you received: 14307
-
-

10 years 10 months ago [\#226335](#226335) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Access order info from Fields step in checkout](/forum/27-checkout/881488-access-cart-info-from-fields-step-in-checkout#226335 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.45 -- Browser(s) name and version -- : Chrome latest  Hello,  I'd like to access order informations (full price with tax, shipping address) from the &quot;fields&quot; checkout step in order to display (or not) different custom fields, is it possible and if so, how ?  Thank you very much !")*

Hi,

I suppose that you're talking about the cart information, not the order information since there is not yet any order on the checkout.

You can use such code:
$cartClass = hikashop_get('class.cart');
$cart = $cartClass-&gt;loadFullCart();

You'll get all the information available for the current cart in $cart.

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

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

Less More

- Posts: 23
- Thank you received: 1
-
-

10 years 10 months ago [\#226358](#226358) by [Phane](/forum/user/38356-phane "View Phane's Profile")  Replied by *[Phane](/forum/user/38356-phane "View Phane's Profile")* on topic *[Access order info from Fields step in checkout](/forum/27-checkout/881488-access-cart-info-from-fields-step-in-checkout#226358 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.45 -- Browser(s) name and version -- : Chrome latest  Hello,  I'd like to access order informations (full price with tax, shipping address) from the &quot;fields&quot; checkout step in order to display (or not) different custom fields, is it possible and if so, how ?  Thank you very much !")*

That's great, thanks a lot !

Would it be possible to also get the shipping address ? knowing that the client selects it before the fields step.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTQ4OC1hY2Nlc3MtY2FydC1pbmZvLWZyb20tZmllbGRzLXN0ZXAtaW4tY2hlY2tvdXQ/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: 86561
- Thank you received: 14307
-
-

10 years 10 months ago [\#226382](#226382) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Access order info from Fields step in checkout](/forum/27-checkout/881488-access-cart-info-from-fields-step-in-checkout#226382 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.45 -- Browser(s) name and version -- : Chrome latest  Hello,  I'd like to access order informations (full price with tax, shipping address) from the &quot;fields&quot; checkout step in order to display (or not) different custom fields, is it possible and if so, how ?  Thank you very much !")*

Hi,

The shipping address should also be available in $cart.

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

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

Less More

- Posts: 23
- Thank you received: 1
-
-

10 years 10 months ago [\#226473](#226473) by [Phane](/forum/user/38356-phane "View Phane's Profile")  Replied by *[Phane](/forum/user/38356-phane "View Phane's Profile")* on topic *[Access order info from Fields step in checkout](/forum/27-checkout/881488-access-cart-info-from-fields-step-in-checkout#226473 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.45 -- Browser(s) name and version -- : Chrome latest  Hello,  I'd like to access order informations (full price with tax, shipping address) from the &quot;fields&quot; checkout step in order to display (or not) different custom fields, is it possible and if so, how ?  Thank you very much !")*

Hello,

I just need to turn the "additionalInfos" to true : $cart = $cartClass-&gt;loadFullCart(true);
Now it works perfectly, thank you very much !

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

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