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

#   Custom fields by product in checkout

##

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 7 months ago [\#14363](#14363) by [momentis](/forum/user/364-momentis "View momentis's Profile")  *[Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14363 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")* was created by *[momentis](/forum/user/364-momentis "View momentis's Profile")*

Okay, nicolas, here's a tough one!!

When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).

Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.

Is this possible at all in the shop or checkout process?

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 7 months ago [\#14365](#14365) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14365 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

If these fields could display right on the product page, like the Characteristics do, that would be the best!!

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

15 years 7 months ago [\#14371](#14371) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14371 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

You can create custom item (not product) fields. These are displayed on the product page.
The fields are displayed on all the product pages. If you want to only display some fields on some pages, you will have to edit the views' code:
[ www.hikashop.com/en/support/forum/4-how-...teristics-limit.html](http://www.hikashop.com/en/support/forum/4-how-to/11369-characteristics-limit.html)

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 6 months ago [\#14495](#14495) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14495 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

Man, nicolas, I have yet to ask a question you can't answer! ![B)](/media/kunena/emoticons/9.png "B)")

Thank you for the reference to the views settings for display of the fields. If I create a custom product field called, say, "Display Extra Fields", can I use the value of this field to determine, in the product view, whether or not to show the Item fields? The "Display Extra Fields" would most likely be a "Yes/No" or "0/1" field. I could just populate this field when I do a mass product upload, so it would not be difficult to maintain.

Thanks!!

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

15 years 6 months ago [\#14497](#14497) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14497 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

Yes, of course.

You will find the value of your custom product field in the variable $this-&gt;element-&gt;FIELD_COLUMN_NAME on the product view

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 6 months ago [\#14498](#14498) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14498 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

WOW!!! Awesome! Nicolas - I must tell you that I am thoroughly impressed with this product. I wish I could write another review on the JED!!! Great, great job! ![:)](/media/kunena/emoticons/3.png ":)")

You're probably tired of hearing that!

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

15 years 6 months ago [\#14499](#14499) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14499 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

Thank you. We're never tired of that. That's what keeps us working hard ![:)](/media/kunena/emoticons/3.png ":)")

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 6 months ago [\#14509](#14509) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14509 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

I am editing the front-end view Product-&gt;Show. I have commented out the line:

if(!empty($this-&gt;itemFields)){

and replaced it with the following:

if($this-&gt;element-&gt;prod_display_fields==1){

with "prod_display_fields" being my custom Product field. The Item fields are still showing on the front end for every product. Cannot figure out what I am missing.

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 6 months ago [\#14511](#14511) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14511 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

And this time I made sure I was working in the right template ![:)](/media/kunena/emoticons/3.png ":)")

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

15 years 6 months ago [\#14514](#14514) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14514 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

That should do it though.
The template would indeed have been my next question...
I don't see any other problem possible.

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 6 months ago [\#14515](#14515) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14515 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

I do not have the field "prod_display_fields" showing on the front end. Would that make a difference?

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 6 months ago [\#14516](#14516) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14516 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

Weird - when I display the field on the front end, they are all showing as "1", even though the back-end shows them as set to "0". Let me play around with the custom field definition a bit...

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 6 months ago [\#14517](#14517) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14517 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

nicolas,

I set up the custom Product field "prod_display_fields" as a single drop-down, with options of YES or NO. Initially I had it storing the value as 1 (YES) or 0 (NO). I have changed it to save the value simply as YES or NO. I also set the default to YES. I updated the field in the database to reflect this change (updated all 0s to NO and all 1s to YES).

When I view the product in the back end list, the field is set as it should be. When I open a product to edit it, the field is showing the default YES, even if the list shows NO. On the site's front-end, when displaying the field, it shows as YES for every product, even if the back-end product list shows NO.

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

15 years 6 months ago [\#14518](#14518) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14518 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

No. All the custom products fields are loaded in the $this-&gt;element object.

But if you put the code:
if($this-&gt;element-&gt;prod_display_fields==1){
and that the fields are still displaying, that means one of the two things:
1. All your products have the value 1 in the custom field.
2. You didn't modify the good file and thus your check wasn't applied.

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

15 years 6 months ago [\#14519](#14519) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14519 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

In PHP YES==1 and NO==1. In fact, any string will be the same.
You need to change your check:
if($this-&gt;element-&gt;prod_display_fields=='YES'){

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 6 months ago [\#14520](#14520) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14520 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

Our posts crossed. See my last...

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 6 months ago [\#14523](#14523) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14523 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

Perhaps this is a bug, I don't know, but here's what I have done and what I am seeing:

1) Deleted the original YES/No dropdown field I had created;
2) Created a new Product field called "show_fields", set to type TEXT, size 1. Set to display on front and back end;
3) Populated the field "show_fields" with a Y or N as appropriate;
4) Added the following code to the front-end Product-&gt;Show view:
if($this-&gt;element-&gt;show_fields == "Y") in place of if(!empty($this-&gt;itemFields))

The fields are showing on every product on the front end, regardless of the setting in the "show_fields" column. The weird thing is that, on the front end product page, the value of the field "show_fields" on EVERY product is displaying as a "Y". I know this should crazy, but I am attaching an image to show what I am seeing. I am confused!!  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/custom_product_field.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/custom_product_field.jpg "&#91;img")

- [ ![custom&#95;product&#95;field.jpg](/forum/attachment/973) ](/forum/attachment/973 "...duct&#95;field.jpg") [ ](/forum/attachment/973?download=1 "...duct&#95;field.jpg")

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

15 years 6 months ago [\#14524](#14524) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14524 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

I've just done the same on our demo website and it works properly: [ www.demo.hikashop.com/index.php?option=c...ry\_pathway=0&amp;lang=en](http://www.demo.hikashop.com/index.php?option=com_hikashop&ctrl=product&task=show&cid=50&name=test&Itemid=58&category_pathway=0&lang=en)

It must be something else. What is the configuration of your custom field ? Could you do a full screenshot of your product edition page ?

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 6 months ago [\#14525](#14525) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14525 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

Here is a shot of the custom field config...  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/custom_field_setup.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/custom_field_setup.jpg "&#91;img")

- [ ![custom&#95;field&#95;setup.jpg](/forum/attachment/974) ](/forum/attachment/974 "...ield&#95;setup.jpg") [ ](/forum/attachment/974?download=1 "...ield&#95;setup.jpg")

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 6 months ago [\#14526](#14526) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Custom fields by product in checkout](/forum/4-how-to/14363-custom-fields-by-product-in-checkout#14526 "Okay, nicolas, here's a tough one!!  When users add a product into the shopping cart, I want to be able to give them 4 fields to enter in data, pertaining to that product, and submit with the order. To clarify, a user enters ProductA, ProductB and ProductC into the cart. I would like them to be able to enter, should they wish, information in four fields (FieldA, FieldB, FieldC, FieldD).  Is this possible? I can create custom product fields, but these are used for entry in the back-end. These fields would just be textboxes for my purposes. I cannot use the Characteristics, because this forces a drop-down, and I need free-entry textboxes.  Is this possible at all in the shop or checkout process?")*

What is the product edition page? Sorry!!!

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

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