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

#   Get post values between checkout steps

##

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

Less More

- Posts: 34
- Thank you received: 1
-
-
-

6 years 11 months ago [\#314194](#314194) by [sandvalley2019](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile")  *[Get post values between checkout steps](/forum/27-checkout/898894-get-post-values-between-checkout-steps#314194 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2.26 -- Browser(s) name and version -- : every browser -- Error-message(debug-mod must be tuned on) -- : No error message  Hi,  I have two questions that are related to each other:  &#42; Is there a way to use the &quot;restrictions / display limited to&quot; function when the two fields are in 2 different steps in the checkout-process?  &#42; Is it possible to get the input-values of custom fields in a previous step in the checkout process in javascript? I want to display certain input-fields to hide and show, depending on previous selected values.  Thanks.  Best regards, Peter")* was created by *[sandvalley2019](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile")*

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.14
-- PHP version -- : 7.2.26
-- Browser(s) name and version -- : every browser
-- Error-message(debug-mod must be tuned on) -- : No error message

Hi,

I have two questions that are related to each other:

1. Is there a way to use the "restrictions / display limited to" function when the two fields are in 2 different steps in the checkout-process?
2. Is it possible to get the input-values of custom fields in a previous step in the checkout process in javascript?
I want to display certain input-fields to hide and show, depending on previous selected values.

Thanks.

Best regards,
Peter

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

6 years 11 months ago [\#314197](#314197) 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 *[Get post values between checkout steps](/forum/27-checkout/898894-get-post-values-between-checkout-steps#314197 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2.26 -- Browser(s) name and version -- : every browser -- Error-message(debug-mod must be tuned on) -- : No error message  Hi,  I have two questions that are related to each other:  &#42; Is there a way to use the &quot;restrictions / display limited to&quot; function when the two fields are in 2 different steps in the checkout-process?  &#42; Is it possible to get the input-values of custom fields in a previous step in the checkout process in javascript? I want to display certain input-fields to hide and show, depending on previous selected values.  Thanks.  Best regards, Peter")*

Hello Peter,

1. The "Restrictions / Display limited to" option was originally developed for custom fields that are on the same view / checkout step

2. You actually can retrieve custom fields values by checking the form data after every step.

Kind regards,
Mohamed.

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

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

Less More

- Posts: 34
- Thank you received: 1
-
-
-

6 years 11 months ago [\#314238](#314238) by [sandvalley2019](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile")  Replied by *[sandvalley2019](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile")* on topic *[Get post values between checkout steps](/forum/27-checkout/898894-get-post-values-between-checkout-steps#314238 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2.26 -- Browser(s) name and version -- : every browser -- Error-message(debug-mod must be tuned on) -- : No error message  Hi,  I have two questions that are related to each other:  &#42; Is there a way to use the &quot;restrictions / display limited to&quot; function when the two fields are in 2 different steps in the checkout-process?  &#42; Is it possible to get the input-values of custom fields in a previous step in the checkout process in javascript? I want to display certain input-fields to hide and show, depending on previous selected values.  Thanks.  Best regards, Peter")*

Hi Mohammed,

Thanks for the reply.

- I can imagine that there are situations that you would like to display certain (custom) fields depending on values in a previous step. Maybe a new feature in an upcoming release?
- How can I retrieve these values? I tried to get the values wit a php $\_GET or $\_POST but they both are empty. The POST cid-1 is directly going to a GET cid-2 with a 303-status.

Regards,
Peter

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

6 years 11 months ago [\#314247](#314247) 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 *[Get post values between checkout steps](/forum/27-checkout/898894-get-post-values-between-checkout-steps#314247 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2.26 -- Browser(s) name and version -- : every browser -- Error-message(debug-mod must be tuned on) -- : No error message  Hi,  I have two questions that are related to each other:  &#42; Is there a way to use the &quot;restrictions / display limited to&quot; function when the two fields are in 2 different steps in the checkout-process?  &#42; Is it possible to get the input-values of custom fields in a previous step in the checkout process in javascript? I want to display certain input-fields to hide and show, depending on previous selected values.  Thanks.  Best regards, Peter")*

Hello Peter,

Well you can actually retrieve order custom fields values by directly checking your cart data : Code:

// Get the current cart $checkoutHelper = hikashopCheckoutHelper::get(); $cart = $checkoutHelper-&gt;getCart();

Kind regards,
Mohamed.

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

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

Less More

- Posts: 34
- Thank you received: 1
-
-
-

6 years 10 months ago [\#314285](#314285) by [sandvalley2019](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile")  Replied by *[sandvalley2019](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile")* on topic *[Get post values between checkout steps](/forum/27-checkout/898894-get-post-values-between-checkout-steps#314285 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2.26 -- Browser(s) name and version -- : every browser -- Error-message(debug-mod must be tuned on) -- : No error message  Hi,  I have two questions that are related to each other:  &#42; Is there a way to use the &quot;restrictions / display limited to&quot; function when the two fields are in 2 different steps in the checkout-process?  &#42; Is it possible to get the input-values of custom fields in a previous step in the checkout process in javascript? I want to display certain input-fields to hide and show, depending on previous selected values.  Thanks.  Best regards, Peter")*

Thank you Mohammed, this was exactly what I was looking for.

Kind regars, and a happy 2020!
Peter

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

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

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