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

#   Conditional fields based on payment method

##

- **[teamtmedia](/forum/user/39167-teamtmedia "View teamtmedia's Profile")**
- [![teamtmedia's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39167.png)](/forum/user/39167-teamtmedia "View teamtmedia's Profile") Topic Author
- [ Offline](/forum/user/39167-teamtmedia)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

10 years 9 months ago [\#229202](#229202) by [teamtmedia](/forum/user/39167-teamtmedia "View teamtmedia's Profile")  *[Conditional fields based on payment method](/forum/29-payment-methods/882165-conditional-fields-based-on-payment-method#229202 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.8 -- Browser(s) name and version -- : FF44  I have set up my solution with 2 payment options. For all values payment by Stripe is available. There is a 2nd payment option to lease our products (through a business partner) that is only available for orders over £1,000. That part I have used the &quot;purchase order&quot; option as &quot;lease&quot; payment method and used the available parameters to configure that perfectly.  However a customer using the &quot;lease&quot; option needs to provide more information and I would like to use conditional fields. Is there any way to have additional fields appear based on payment method? I am happy for the fields to be on the next stage of the form with the terms and conditions acceptance which would make the flow acceptable for both methods.  I have experimented with your conditional options but can't find a method of triggering fields (therefore populating the next step) based off payment method.  Any hints?")* was created by *[teamtmedia](/forum/user/39167-teamtmedia "View teamtmedia's Profile")*

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.6.8
-- Browser(s) name and version -- : FF44

I have set up my solution with 2 payment options. For all values payment by Stripe is available. There is a 2nd payment option to lease our products (through a business partner) that is only available for orders over £1,000. That part I have used the "purchase order" option as "lease" payment method and used the available parameters to configure that perfectly.

However a customer using the "lease" option needs to provide more information and I would like to use conditional fields. Is there any way to have additional fields appear based on payment method? I am happy for the fields to be on the next stage of the form with the terms and conditions acceptance which would make the flow acceptable for both methods.

I have experimented with your conditional options but can't find a method of triggering fields (therefore populating the next step) based off payment method.

Any hints?

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

10 years 9 months ago [\#229220](#229220) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Conditional fields based on payment method](/forum/29-payment-methods/882165-conditional-fields-based-on-payment-method#229220 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.8 -- Browser(s) name and version -- : FF44  I have set up my solution with 2 payment options. For all values payment by Stripe is available. There is a 2nd payment option to lease our products (through a business partner) that is only available for orders over £1,000. That part I have used the &quot;purchase order&quot; option as &quot;lease&quot; payment method and used the available parameters to configure that perfectly.  However a customer using the &quot;lease&quot; option needs to provide more information and I would like to use conditional fields. Is there any way to have additional fields appear based on payment method? I am happy for the fields to be on the next stage of the form with the terms and conditions acceptance which would make the flow acceptable for both methods.  I have experimented with your conditional options but can't find a method of triggering fields (therefore populating the next step) based off payment method.  Any hints?")*

Hi,

There is no option for that.

If you're a developer, what you can do is start with this:
[ www.hikashop.com/forum/checkout/877364-p...-checkout-steps.html](http://www.hikashop.com/forum/checkout/877364-put-2-custom-fields-in-different-checkout-steps.html)
Use that principle to display or not the custom order fields based on the payment methods selected. And to knwo the payment method selected, you can use this:
$app = JFactory::getApplication();
$payment_id=$app-&gt;getUserState( HIKASHOP_COMPONENT.'.payment_id' );

The following user(s) said Thank You: [teamtmedia](/forum/user/39167-teamtmedia "View teamtmedia's Profile")

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

- **[teamtmedia](/forum/user/39167-teamtmedia "View teamtmedia's Profile")**
- [![teamtmedia's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39167.png)](/forum/user/39167-teamtmedia "View teamtmedia's Profile") Topic Author
- [ Offline](/forum/user/39167-teamtmedia)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

10 years 9 months ago [\#229329](#229329) by [teamtmedia](/forum/user/39167-teamtmedia "View teamtmedia's Profile")  Replied by *[teamtmedia](/forum/user/39167-teamtmedia "View teamtmedia's Profile")* on topic *[Conditional fields based on payment method](/forum/29-payment-methods/882165-conditional-fields-based-on-payment-method#229329 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.8 -- Browser(s) name and version -- : FF44  I have set up my solution with 2 payment options. For all values payment by Stripe is available. There is a 2nd payment option to lease our products (through a business partner) that is only available for orders over £1,000. That part I have used the &quot;purchase order&quot; option as &quot;lease&quot; payment method and used the available parameters to configure that perfectly.  However a customer using the &quot;lease&quot; option needs to provide more information and I would like to use conditional fields. Is there any way to have additional fields appear based on payment method? I am happy for the fields to be on the next stage of the form with the terms and conditions acceptance which would make the flow acceptable for both methods.  I have experimented with your conditional options but can't find a method of triggering fields (therefore populating the next step) based off payment method.  Any hints?")*

Thank you for the pointers. At this stage I will leave it that we send an application as soon as we receive this kind of order. Once the site is up and stable I can look at developing this locally and with time on my side. Thanks again.

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

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