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

#   Additional Category for custom fields in checkout

##

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

Less More

- Posts: 65
- Thank you received: 3
-
-

7 years 2 months ago [\#310809](#310809) by [ginmacher](/forum/user/55208-ginmacher "View ginmacher's Profile")  *[Additional Category for custom fields in checkout](/forum/27-checkout/898268-additional-category-for-custom-fields-in-checkout#310809 "-- url of the page with the problem -- :   www.ginmacher.de  -- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : Custom Field on Checkout  Hello Team,  on my checkout page I have a custom section below (marked red) with three custom fields in the view order. I want to add another field (marked green) with a dropdown, that the user can should select where does he know my shop from.  Regarding this field I have two questions: 1.) I want this field to be in a seperate section, not in the one with the three fields and with a seperate header caption (best would be above the current section with the three fields.. How is that possible? If Imake new custom fields they only go (if I put them in the order form) in the section where the other three fields are. 2.) The field itself should contain 4 values to select, but in the chart itself if should be empty from start on (field is mandaroty in the background settings). Currently when I setup the field I can only select a value as standard value which is already there, that also makes the setting (field mandatory) obsolete, because there's already a value in. How can I setup the field in a way, that the user has to select one entry but the field itself shows no value when the user entered the shopping cart website? Means - if the user miss to fill the field and want to do the checkout the error message appears (from Background setting) that the field has to be filled with a value from the dropdown.  Thanks for your support.")* was created by *[ginmacher](/forum/user/55208-ginmacher "View ginmacher's Profile")*

-- url of the page with the problem -- : [ www.ginmacher.de](http://www.ginmacher.de)
-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.6
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : Custom Field on Checkout

Hello Team,

on my checkout page I have a custom section below (marked red) with three custom fields in the view order. I want to add another field (marked green) with a dropdown, that the user can should select where does he know my shop from.

[ ![Bild1&#95;2019-09-12.jpg](/forum/attachment/47671) ](/forum/attachment/47671 "...2019-09-12.jpg")

Regarding this field I have two questions:
1.) I want this field to be in a seperate section, not in the one with the three fields and with a seperate header caption (best would be above the current section with the three fields.. How is that possible? If Imake new custom fields they only go (if I put them in the order form) in the section where the other three fields are.
2.) The field itself should contain 4 values to select, but in the chart itself if should be empty from start on (field is mandaroty in the background settings). Currently when I setup the field I can only select a value as standard value which is already there, that also makes the setting (field mandatory) obsolete, because there's already a value in. How can I setup the field in a way, that the user has to select one entry but the field itself shows no value when the user entered the shopping cart website? Means - if the user miss to fill the field and want to do the checkout the error message appears (from Background setting) that the field has to be filled with a value from the dropdown.

Thanks for your support.

- [ ![Bild1&#95;2019-09-12.jpg](/forum/attachment/47671) ](/forum/attachment/47671 "...2019-09-12.jpg") [ ](/forum/attachment/47671?download=1 "...2019-09-12.jpg")

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

7 years 2 months ago [\#310812](#310812) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Additional Category for custom fields in checkout](/forum/27-checkout/898268-additional-category-for-custom-fields-in-checkout#310812 "-- url of the page with the problem -- :   www.ginmacher.de  -- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : Custom Field on Checkout  Hello Team,  on my checkout page I have a custom section below (marked red) with three custom fields in the view order. I want to add another field (marked green) with a dropdown, that the user can should select where does he know my shop from.  Regarding this field I have two questions: 1.) I want this field to be in a seperate section, not in the one with the three fields and with a seperate header caption (best would be above the current section with the three fields.. How is that possible? If Imake new custom fields they only go (if I put them in the order form) in the section where the other three fields are. 2.) The field itself should contain 4 values to select, but in the chart itself if should be empty from start on (field is mandaroty in the background settings). Currently when I setup the field I can only select a value as standard value which is already there, that also makes the setting (field mandatory) obsolete, because there's already a value in. How can I setup the field in a way, that the user has to select one entry but the field itself shows no value when the user entered the shopping cart website? Means - if the user miss to fill the field and want to do the checkout the error message appears (from Background setting) that the field has to be filled with a value from the dropdown.  Thanks for your support.")*

Hi,

1. That's possible. You can create a new view "fields" in the "checkout workflow" of the HikaShop configuration on top of the one you already have.
Then, in each "fields" view, you have an option where you can select which custom order field you want to be displayed there. Other custom order fields won't appear in the view.

2. You need to add a 5th value with its "value" input field empty and it's "title" input field set to "please select something" (or something similar). After saving the custom field once, select that 5th value as the default one and you'll see that the "required" option will be enforced.

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

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

Less More

- Posts: 65
- Thank you received: 3
-
-

7 years 2 months ago [\#310854](#310854) by [ginmacher](/forum/user/55208-ginmacher "View ginmacher's Profile")  Replied by *[ginmacher](/forum/user/55208-ginmacher "View ginmacher's Profile")* on topic *[Additional Category for custom fields in checkout](/forum/27-checkout/898268-additional-category-for-custom-fields-in-checkout#310854 "-- url of the page with the problem -- :   www.ginmacher.de  -- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : Custom Field on Checkout  Hello Team,  on my checkout page I have a custom section below (marked red) with three custom fields in the view order. I want to add another field (marked green) with a dropdown, that the user can should select where does he know my shop from.  Regarding this field I have two questions: 1.) I want this field to be in a seperate section, not in the one with the three fields and with a seperate header caption (best would be above the current section with the three fields.. How is that possible? If Imake new custom fields they only go (if I put them in the order form) in the section where the other three fields are. 2.) The field itself should contain 4 values to select, but in the chart itself if should be empty from start on (field is mandaroty in the background settings). Currently when I setup the field I can only select a value as standard value which is already there, that also makes the setting (field mandatory) obsolete, because there's already a value in. How can I setup the field in a way, that the user has to select one entry but the field itself shows no value when the user entered the shopping cart website? Means - if the user miss to fill the field and want to do the checkout the error message appears (from Background setting) that the field has to be filled with a value from the dropdown.  Thanks for your support.")*

Hello Nicolas,

thank you for the answer, but the solution only works 50%. I can add a new view in the workflow (see screenshot) and select per view the fields I want to have on the view:

[ ![2019-09-1310&#95;59&#95;45-Ginmacher-MnchnerDryGin-Administration-Configuration.png](/forum/attachment/47686) ](/forum/attachment/47686 "...figuration.png")

But when it comes to the cart itself, the view will not be displayed with this setting.

[ ![2019-09-1310&#95;58&#95;51-Kasse.png](/forum/attachment/47687) ](/forum/attachment/47687 "...8&#95;51-Kasse.png")

Also, the view has the same header, I assume it's because it's the same view but doubled. When, for example, I setup the view in the admin area like that: view 1: no selection of field, view 2 only selection of 1 field, it shows all fields in view 1 and only the specific field in view 2.

[ ![2019-09-1311&#95;04&#95;39-Ginmacher-MnchnerDryGin-Administration-Configuration.png](/forum/attachment/47688) ](/forum/attachment/47688 "...figuration.png")

I want to have it that way, that the specific field from view 2 to is only available in view 2 and the other three fields from view one (like the selection above) are available in view 1, but also with a different heading. How is that possible?

Thank you
Alexander

- [ ![2019-09-1310&#95;59&#95;45-Ginmacher-MnchnerDryGin-Administration-Configuration.png](/forum/attachment/47686) ](/forum/attachment/47686 "...figuration.png") [ ](/forum/attachment/47686?download=1 "...figuration.png")
- [ ![2019-09-1310&#95;58&#95;51-Kasse.png](/forum/attachment/47687) ](/forum/attachment/47687 "...8&#95;51-Kasse.png") [ ](/forum/attachment/47687?download=1 "...8&#95;51-Kasse.png")
- [ ![2019-09-1311&#95;04&#95;39-Ginmacher-MnchnerDryGin-Administration-Configuration.png](/forum/attachment/47688) ](/forum/attachment/47688 "...figuration.png") [ ](/forum/attachment/47688?download=1 "...figuration.png")

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

7 years 2 months ago [\#310859](#310859) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Additional Category for custom fields in checkout](/forum/27-checkout/898268-additional-category-for-custom-fields-in-checkout#310859 "-- url of the page with the problem -- :   www.ginmacher.de  -- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : Custom Field on Checkout  Hello Team,  on my checkout page I have a custom section below (marked red) with three custom fields in the view order. I want to add another field (marked green) with a dropdown, that the user can should select where does he know my shop from.  Regarding this field I have two questions: 1.) I want this field to be in a seperate section, not in the one with the three fields and with a seperate header caption (best would be above the current section with the three fields.. How is that possible? If Imake new custom fields they only go (if I put them in the order form) in the section where the other three fields are. 2.) The field itself should contain 4 values to select, but in the chart itself if should be empty from start on (field is mandaroty in the background settings). Currently when I setup the field I can only select a value as standard value which is already there, that also makes the setting (field mandatory) obsolete, because there's already a value in. How can I setup the field in a way, that the user has to select one entry but the field itself shows no value when the user entered the shopping cart website? Means - if the user miss to fill the field and want to do the checkout the error message appears (from Background setting) that the field has to be filled with a value from the dropdown.  Thanks for your support.")*

Hi,

Regarding the title, it's easy to do. Disable the "show title" option of the second Fields view, and add a "Text" view just before it with the HTML of the title you want to appear before it.

Regarding the fields display not happening when the field is not selected in the first view, that's a bug.
I was able to reproduce it on my end and added a patch for that. Download again the install package of the latest version of HikaShop on our wesite and install it on your website and you'll get the patch.

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

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

Less More

- Posts: 65
- Thank you received: 3
-
-

7 years 2 months ago [\#310885](#310885) by [ginmacher](/forum/user/55208-ginmacher "View ginmacher's Profile")  Replied by *[ginmacher](/forum/user/55208-ginmacher "View ginmacher's Profile")* on topic *[Additional Category for custom fields in checkout](/forum/27-checkout/898268-additional-category-for-custom-fields-in-checkout#310885 "-- url of the page with the problem -- :   www.ginmacher.de  -- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : Custom Field on Checkout  Hello Team,  on my checkout page I have a custom section below (marked red) with three custom fields in the view order. I want to add another field (marked green) with a dropdown, that the user can should select where does he know my shop from.  Regarding this field I have two questions: 1.) I want this field to be in a seperate section, not in the one with the three fields and with a seperate header caption (best would be above the current section with the three fields.. How is that possible? If Imake new custom fields they only go (if I put them in the order form) in the section where the other three fields are. 2.) The field itself should contain 4 values to select, but in the chart itself if should be empty from start on (field is mandaroty in the background settings). Currently when I setup the field I can only select a value as standard value which is already there, that also makes the setting (field mandatory) obsolete, because there's already a value in. How can I setup the field in a way, that the user has to select one entry but the field itself shows no value when the user entered the shopping cart website? Means - if the user miss to fill the field and want to do the checkout the error message appears (from Background setting) that the field has to be filled with a value from the dropdown.  Thanks for your support.")*

Hi Nicolas,

thnak you for the fast reply. I have the latest Hika Shop only on my test system, on the live system I have a lower Hika Shop version on live system because if I upgrade the new version will mess up with my responsive css on the mobile version. Currently I do not have time to fix this and for the customer it looks not good so I stick a while with the old version in the live system. So I first need time to fix all the minor css issue before I install the latest version to live system.

Could you please provide me the bugfix for my current version or just tell me where do you have added which code in which file, so I can adjust it manually in the live version of the website.

Thanks a lot!

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

7 years 2 months ago [\#310940](#310940) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Additional Category for custom fields in checkout](/forum/27-checkout/898268-additional-category-for-custom-fields-in-checkout#310940 "-- url of the page with the problem -- :   www.ginmacher.de  -- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : Custom Field on Checkout  Hello Team,  on my checkout page I have a custom section below (marked red) with three custom fields in the view order. I want to add another field (marked green) with a dropdown, that the user can should select where does he know my shop from.  Regarding this field I have two questions: 1.) I want this field to be in a seperate section, not in the one with the three fields and with a seperate header caption (best would be above the current section with the three fields.. How is that possible? If Imake new custom fields they only go (if I put them in the order form) in the section where the other three fields are. 2.) The field itself should contain 4 values to select, but in the chart itself if should be empty from start on (field is mandaroty in the background settings). Currently when I setup the field I can only select a value as standard value which is already there, that also makes the setting (field mandatory) obsolete, because there's already a value in. How can I setup the field in a way, that the user has to select one entry but the field itself shows no value when the user entered the shopping cart website? Means - if the user miss to fill the field and want to do the checkout the error message appears (from Background setting) that the field has to be filled with a value from the dropdown.  Thanks for your support.")*

Hi,

You need to edit the file "show_block_fields.php" via the menu Display&gt;Views and apply these patchs:
[ monosnap.com/file/Iagj1zMwPFyg4u0HCFWmaCaH7QM7IJ](https://monosnap.com/file/Iagj1zMwPFyg4u0HCFWmaCaH7QM7IJ)
Remove the red lines and add the green lines in the view file. The lines without color are just there to help you find the code in the view file to do the replacing.

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

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

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

Less More

- Posts: 65
- Thank you received: 3
-
-

7 years 2 months ago [\#311042](#311042) by [ginmacher](/forum/user/55208-ginmacher "View ginmacher's Profile")  Replied by *[ginmacher](/forum/user/55208-ginmacher "View ginmacher's Profile")* on topic *[Additional Category for custom fields in checkout](/forum/27-checkout/898268-additional-category-for-custom-fields-in-checkout#311042 "-- url of the page with the problem -- :   www.ginmacher.de  -- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : Custom Field on Checkout  Hello Team,  on my checkout page I have a custom section below (marked red) with three custom fields in the view order. I want to add another field (marked green) with a dropdown, that the user can should select where does he know my shop from.  Regarding this field I have two questions: 1.) I want this field to be in a seperate section, not in the one with the three fields and with a seperate header caption (best would be above the current section with the three fields.. How is that possible? If Imake new custom fields they only go (if I put them in the order form) in the section where the other three fields are. 2.) The field itself should contain 4 values to select, but in the chart itself if should be empty from start on (field is mandaroty in the background settings). Currently when I setup the field I can only select a value as standard value which is already there, that also makes the setting (field mandatory) obsolete, because there's already a value in. How can I setup the field in a way, that the user has to select one entry but the field itself shows no value when the user entered the shopping cart website? Means - if the user miss to fill the field and want to do the checkout the error message appears (from Background setting) that the field has to be filled with a value from the dropdown.  Thanks for your support.")*

Thanks Nicolas. Works as expected!

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

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