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

#   Disable custom order fields based on shipping type

##

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

Less More

- Posts: 45
- Thank you received: 1
-
-

11 years 4 months ago [\#207165](#207165) by [DFX](/forum/user/9847-dfx "View DFX's Profile")  *[Disable custom order fields based on shipping type](/forum/27-checkout/877931-disable-custom-order-fields-based-on-shipping-type#207165 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 2.5.28 -- PHP version -- : n/a -- Browser(s) name and version -- : n/a  Hi all,  From what I've read disabling custom fields based on shipping type may still not be possible? If so, is there a workaround?  The problem I have is that I have added custom fields for Time, Date, Location etc but these only apply to people that come to the store and does not apply to people that are mailing their device in. Hence, I need a way to enable/disable the display of those custom fields based on shipping type. Any help would be great.  Regards, Michael.")* was created by *[DFX](/forum/user/9847-dfx "View DFX's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 2.5.28
-- PHP version -- : n/a
-- Browser(s) name and version -- : n/a

Hi all,

From what I've read disabling custom fields based on shipping type may still not be possible? If so, is there a workaround?

The problem I have is that I have added custom fields for Time, Date, Location etc but these only apply to people that come to the store and does not apply to people that are mailing their device in. Hence, I need a way to enable/disable the display of those custom fields based on shipping type. Any help would be great.

Regards,
Michael.

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

11 years 4 months ago [\#207203](#207203) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Disable custom order fields based on shipping type](/forum/27-checkout/877931-disable-custom-order-fields-based-on-shipping-type#207203 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 2.5.28 -- PHP version -- : n/a -- Browser(s) name and version -- : n/a  Hi all,  From what I've read disabling custom fields based on shipping type may still not be possible? If so, is there a workaround?  The problem I have is that I have added custom fields for Time, Date, Location etc but these only apply to people that come to the store and does not apply to people that are mailing their device in. Hence, I need a way to enable/disable the display of those custom fields based on shipping type. Any help would be great.  Regards, Michael.")*

Hi,

There is indeed no option to restrict custom order fields based on the shipping method selected.
The simplest is to have the fields not required and to modify the "fields" file of the "checkout" view via the menu Display&gt;Views to skip their display based on the shipping method selected.
For example, with such code at the top of the file: Code:

&lt;?php $app = JFactory::getApplication(); if($app-&gt;getUserState(HIKASHOP_COMPONENT.'.shipping_id') == XXX) return; ?&gt;

where XXX is the id of the shipping mehtod for which you don't want to display the fields.
If the fields are to be required, it's more complex as the system will refuse the validation of the step where the fields are normally displayed. So it would require a developer to help you with that customization.

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