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

#   Custom Fields - My first attempt with them

##

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

Less More

- Posts: 37
- Thank you received: 0
-
-

9 years 7 months ago [\#266892](#266892) by [blbeta](/forum/user/8811-blbeta "View blbeta's Profile")  *[Custom Fields - My first attempt with them](/forum/27-checkout/889717-custom-fields-my-first-attempt-with-them#266892 "-- HikaShop version -- : 3.0.1 Business -- Joomla version -- : 3.6.5  I am moving a clients old site to a new responsive site with Hikashop for the store. Right now Hikashop will just be used as event registration and payment for these courses. When these courses are sold I am attempting to mimic an old form he had for registration. This will only apply to the course products. Course products in a &quot;Courses&quot; category and subcategories.  I was planning on make custom fields for category &quot;Courses&quot; as will as &quot;Including Sub Categories&quot;.  If I read the help information correctly I assume that would be the proper way to gather additional information need when a customer purchases a &quot;Course&quot; product? Later shirts and other items may be added and I do not need extra information for that.  This is a picture of the current form and information.  I am I going about it the proper way? If not, what would you consider best practices.")* was created by *[blbeta](/forum/user/8811-blbeta "View blbeta's Profile")*

-- HikaShop version -- : 3.0.1 Business
-- Joomla version -- : 3.6.5

I am moving a clients old site to a new responsive site with Hikashop for the store. Right now Hikashop will just be used as event registration and payment for these courses. When these courses are sold I am attempting to mimic an old form he had for registration. This will only apply to the course products. Course products in a "Courses" category and subcategories.

I was planning on make custom fields for category "Courses" as will as "Including Sub Categories".
[ ![hikacustomfieldcategory.PNG](/forum/attachment/37478) ](/forum/attachment/37478 "...ldcategory.PNG")

If I read the help information correctly I assume that would be the proper way to gather additional information need when a customer purchases a "Course" product? Later shirts and other items may be added and I do not need extra information for that.

This is a picture of the current form and information.
[ ![ptreg.PNG](/forum/attachment/37477) ](/forum/attachment/37477 "ptreg.PNG")

I am I going about it the proper way? If not, what would you consider best practices.

- [ ![ptreg.PNG](/forum/attachment/37477) ](/forum/attachment/37477 "ptreg.PNG") [ ](/forum/attachment/37477?download=1 "ptreg.PNG")
- [ ![hikacustomfieldcategory.PNG](/forum/attachment/37478) ](/forum/attachment/37478 "...ldcategory.PNG") [ ](/forum/attachment/37478?download=1 "...ldcategory.PNG")

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

9 years 7 months ago [\#266906](#266906) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom Fields - My first attempt with them](/forum/27-checkout/889717-custom-fields-my-first-attempt-with-them#266906 "-- HikaShop version -- : 3.0.1 Business -- Joomla version -- : 3.6.5  I am moving a clients old site to a new responsive site with Hikashop for the store. Right now Hikashop will just be used as event registration and payment for these courses. When these courses are sold I am attempting to mimic an old form he had for registration. This will only apply to the course products. Course products in a &quot;Courses&quot; category and subcategories.  I was planning on make custom fields for category &quot;Courses&quot; as will as &quot;Including Sub Categories&quot;.  If I read the help information correctly I assume that would be the proper way to gather additional information need when a customer purchases a &quot;Course&quot; product? Later shirts and other items may be added and I do not need extra information for that.  This is a picture of the current form and information.  I am I going about it the proper way? If not, what would you consider best practices.")*

Hi,

That's correct. Note however that you need to select the table "item" if you want these fields to be selectable/fillable by the customers on the product page when adding the products to the cart.
If you use the "category" table, then the fields will be selectable/fillable in the backend when you edit a category, which is not what you want.

You can read more about custom fields here:
[ www.hikashop.com/support/documentation/4...shop-field-form.html](https://www.hikashop.com/support/documentation/42-hikashop-field-form.html)

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

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

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

Less More

- Posts: 37
- Thank you received: 0
-
-

9 years 7 months ago [\#267128](#267128) by [blbeta](/forum/user/8811-blbeta "View blbeta's Profile")  Replied by *[blbeta](/forum/user/8811-blbeta "View blbeta's Profile")* on topic *[Custom Fields - My first attempt with them](/forum/27-checkout/889717-custom-fields-my-first-attempt-with-them#267128 "-- HikaShop version -- : 3.0.1 Business -- Joomla version -- : 3.6.5  I am moving a clients old site to a new responsive site with Hikashop for the store. Right now Hikashop will just be used as event registration and payment for these courses. When these courses are sold I am attempting to mimic an old form he had for registration. This will only apply to the course products. Course products in a &quot;Courses&quot; category and subcategories.  I was planning on make custom fields for category &quot;Courses&quot; as will as &quot;Including Sub Categories&quot;.  If I read the help information correctly I assume that would be the proper way to gather additional information need when a customer purchases a &quot;Course&quot; product? Later shirts and other items may be added and I do not need extra information for that.  This is a picture of the current form and information.  I am I going about it the proper way? If not, what would you consider best practices.")*

First off thank you for the item table information, as it saved me from having to redo it all.

Everything looks fine other than "State" zone custom field. I looked at it in the default address field and did same settings but it does not show up. The label does but not the dropdown for the states.

Current Frontend:
[ ![statefrontend.PNG](/forum/attachment/37552) ](/forum/attachment/37552 "statefrontend.PNG")

Backend Settings for my custom states zone field:
[ ![statebackend.PNG](/forum/attachment/37550) ](/forum/attachment/37550 "statebackend.PNG")

Default Address States zone field:
[ ![defaultstatezonefield.PNG](/forum/attachment/37551) ](/forum/attachment/37551 "...ezonefield.PNG")

So, what have I missed?

- [ ![statebackend.PNG](/forum/attachment/37550) ](/forum/attachment/37550 "statebackend.PNG") [ ](/forum/attachment/37550?download=1 "statebackend.PNG")
- [ ![defaultstatezonefield.PNG](/forum/attachment/37551) ](/forum/attachment/37551 "...ezonefield.PNG") [ ](/forum/attachment/37551?download=1 "...ezonefield.PNG")
- [ ![statefrontend.PNG](/forum/attachment/37552) ](/forum/attachment/37552 "statefrontend.PNG") [ ](/forum/attachment/37552?download=1 "statefrontend.PNG")

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

9 years 7 months ago [\#267136](#267136) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom Fields - My first attempt with them](/forum/27-checkout/889717-custom-fields-my-first-attempt-with-them#267136 "-- HikaShop version -- : 3.0.1 Business -- Joomla version -- : 3.6.5  I am moving a clients old site to a new responsive site with Hikashop for the store. Right now Hikashop will just be used as event registration and payment for these courses. When these courses are sold I am attempting to mimic an old form he had for registration. This will only apply to the course products. Course products in a &quot;Courses&quot; category and subcategories.  I was planning on make custom fields for category &quot;Courses&quot; as will as &quot;Including Sub Categories&quot;.  If I read the help information correctly I assume that would be the proper way to gather additional information need when a customer purchases a &quot;Course&quot; product? Later shirts and other items may be added and I do not need extra information for that.  This is a picture of the current form and information.  I am I going about it the proper way? If not, what would you consider best practices.")*

Hi,

The state zone field is tied to the country zone field because you only want it to display the states of one country. So you need to select the country you want as default country in a country zone field in the same table that you can leave enabled but deactivated for the frontend display settings and the state field should then work properly.

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

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

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

Less More

- Posts: 37
- Thank you received: 0
-
-

9 years 7 months ago [\#267210](#267210) by [blbeta](/forum/user/8811-blbeta "View blbeta's Profile")  Replied by *[blbeta](/forum/user/8811-blbeta "View blbeta's Profile")* on topic *[Custom Fields - My first attempt with them](/forum/27-checkout/889717-custom-fields-my-first-attempt-with-them#267210 "-- HikaShop version -- : 3.0.1 Business -- Joomla version -- : 3.6.5  I am moving a clients old site to a new responsive site with Hikashop for the store. Right now Hikashop will just be used as event registration and payment for these courses. When these courses are sold I am attempting to mimic an old form he had for registration. This will only apply to the course products. Course products in a &quot;Courses&quot; category and subcategories.  I was planning on make custom fields for category &quot;Courses&quot; as will as &quot;Including Sub Categories&quot;.  If I read the help information correctly I assume that would be the proper way to gather additional information need when a customer purchases a &quot;Course&quot; product? Later shirts and other items may be added and I do not need extra information for that.  This is a picture of the current form and information.  I am I going about it the proper way? If not, what would you consider best practices.")*

First off it is working now, but it has to be published on the "Front-End" or the States do not show. If you want access to figure it out let me know and I will provide it.

Now my process of getting there was not smooth.

I made a new field and changed the type to zone and saved so the countries would show up as an option.  [ ![newfieldzonecountrystudent.PNG](/forum/attachment/37615) ](/forum/attachment/37615 "...trystudent.PNG")

I was met with an error screen:
[ ![Error1054.PNG](/forum/attachment/37616) ](/forum/attachment/37616 "Error1054.PNG")

Navigating back to display custom fields shows that it was created, but I got the same error when attempting to edit it.
[ ![createdbuterror.PNG](/forum/attachment/37613) ](/forum/attachment/37613 "...edbuterror.PNG")

I was only able to get into it after unpublishing it. I thought all was well, but I would choose a default value for country and it would save, but default back to Afghanistan. This would happen no matter what country I chose.
[ ![defaultCountry.PNG](/forum/attachment/37617) ](/forum/attachment/37617 "...ultCountry.PNG")

Trying to pick USA while unpublished still.
[ ![trytosaveasUSAdefaultsback.PNG](/forum/attachment/37618) ](/forum/attachment/37618 "...faultsback.PNG")

Only after I published again was I able to also save the desired country.
[ ![OnlyafterPublishedwillsavestay.PNG](/forum/attachment/37614) ](/forum/attachment/37614 "...llsavestay.PNG")

Once all that was done the States do show up but only if it is also on the front-end of the site, which for me is fine. I was just attempting to make it like the registration and address page where I was able to unpublish country and the states still work.

Thank you for all the help. I am sure I will have more questions, but I will start new threads so others can search.

- [ ![createdbuterror.PNG](/forum/attachment/37613) ](/forum/attachment/37613 "...edbuterror.PNG") [ ](/forum/attachment/37613?download=1 "...edbuterror.PNG")
- [ ![OnlyafterPublishedwillsavestay.PNG](/forum/attachment/37614) ](/forum/attachment/37614 "...llsavestay.PNG") [ ](/forum/attachment/37614?download=1 "...llsavestay.PNG")
- [ ![newfieldzonecountrystudent.PNG](/forum/attachment/37615) ](/forum/attachment/37615 "...trystudent.PNG") [ ](/forum/attachment/37615?download=1 "...trystudent.PNG")
- [ ![Error1054.PNG](/forum/attachment/37616) ](/forum/attachment/37616 "Error1054.PNG") [ ](/forum/attachment/37616?download=1 "Error1054.PNG")
- [ ![defaultCountry.PNG](/forum/attachment/37617) ](/forum/attachment/37617 "...ultCountry.PNG") [ ](/forum/attachment/37617?download=1 "...ultCountry.PNG")
- [ ![trytosaveasUSAdefaultsback.PNG](/forum/attachment/37618) ](/forum/attachment/37618 "...faultsback.PNG") [ ](/forum/attachment/37618?download=1 "...faultsback.PNG")

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

9 years 7 months ago [\#267229](#267229) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom Fields - My first attempt with them](/forum/27-checkout/889717-custom-fields-my-first-attempt-with-them#267229 "-- HikaShop version -- : 3.0.1 Business -- Joomla version -- : 3.6.5  I am moving a clients old site to a new responsive site with Hikashop for the store. Right now Hikashop will just be used as event registration and payment for these courses. When these courses are sold I am attempting to mimic an old form he had for registration. This will only apply to the course products. Course products in a &quot;Courses&quot; category and subcategories.  I was planning on make custom fields for category &quot;Courses&quot; as will as &quot;Including Sub Categories&quot;.  If I read the help information correctly I assume that would be the proper way to gather additional information need when a customer purchases a &quot;Course&quot; product? Later shirts and other items may be added and I do not need extra information for that.  This is a picture of the current form and information.  I am I going about it the proper way? If not, what would you consider best practices.")*

Hi,

Thanks for your feedback. We'll add a patch regarding the MySQL query error.

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

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