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

#   Combining custom fields with product options

##

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

Less More

- Posts: 47
- Thank you received: 0
-
-

15 years 7 months ago -  15 years 7 months ago [\#13914](#13914) by [woes](/forum/user/1954-woes "View woes's Profile")  *[Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#13914 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")* was created by *[woes](/forum/user/1954-woes "View woes's Profile")*

Hi Nicolas (and community members),

I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers.
When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.

I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected.
I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text.
The question with this solution is, can we send the custom text to the order confirmation?

However, that is not a really neat solution since we want to preferably display the cards and ribbons as "Featured products". Although we might try to use that if there's no better solution.

If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this?
Maybe we can use the "additional information" field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.

We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?

We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.

Kind regards,
Woes

Last edit: 15 years 7 months ago by [woes](/forum/user/1954-woes "View woes's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzOTE0LWNvbWJpbmluZy1jdXN0b20tZmllbGRzLXdpdGgtcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) 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 [\#13918](#13918) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#13918 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

Hi,

There is no option to display the custom fields of the table order only when certain products are in the cart. However, that's something which can be added without too much trouble by changing a bit the code of the view. You can go in the menu Display-&gt;Views and edit the file fields of the view checkout. There, change the line:
if(hikashop::level(2) &amp;&amp; !empty($this-&gt;extraFields)){
for:
$display = false;
foreach($this-&gt;rows as $i =&gt; $row){
if(in_array($row-&gt;product_code,array('product_which_need_fields_1','product_which_need_fields_2'))){ $display=true;}
}
if($display &amp;&amp; hikashop::level(2) &amp;&amp; !empty($this-&gt;extraFields)){

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

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

Less More

- Posts: 47
- Thank you received: 0
-
-

15 years 7 months ago [\#13920](#13920) by [woes](/forum/user/1954-woes "View woes's Profile")  Replied by *[woes](/forum/user/1954-woes "View woes's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#13920 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

Hi Nicolas,

Thanks for your quick reply, i've tried to find the checkout view, but cannot find your suggested line to be replaced, i've also tried to "grep" trough them but without result.

In the meantime i found some information about the tables "order" and "item" available in the business version.
It seems these will be of great help to our project.
So i'm guessing also this checkout view is available in the business version only, since i noticed you say "custom fields of the table order".

About my other question, is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?

We need this because we need a lot of extra custom fields for the shipping address (for delivery at events), and this will usually differ from the customer address.

Thanks again!

Kind regards,
Woes

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzOTE0LWNvbWJpbmluZy1jdXN0b20tZmllbGRzLXdpdGgtcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) 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 [\#13930](#13930) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#13930 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

Yes, that view is only in the Business edition, that's why you didn't find it.

It could be possible to hide some fields in the billing address, but that will require that you modify a bit the code of both the address_view file of the view checkout and the form file of the view address. In the first one, you will have to add in the edit URL the variable $this-&gt;type so that on the second view, you can know whether you're displaying a shipping or a billing address.

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

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

Less More

- Posts: 47
- Thank you received: 0
-
-

15 years 6 months ago [\#15614](#15614) by [woes](/forum/user/1954-woes "View woes's Profile")  Replied by *[woes](/forum/user/1954-woes "View woes's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#15614 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

Hi Nicolas,

So far the business edition works out great, now i've come to the point of actually implementing the changes as stated here, the issue with the table "order" works flawless, but i can not seem to get the specific shipping address fields to work only there..

I'm not sure where to add $this-&gt;type, and also not sure how to display the specific address fields only on the shipping address in the form file of the view address..

Any help would be greatly appreciated.

Kind regards,
Woes

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzOTE0LWNvbWJpbmluZy1jdXN0b20tZmllbGRzLXdpdGgtcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) 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 [\#15623](#15623) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#15623 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

Hi,

In several (two) place of the address_view file, you have the code:
echo hikashop::completeLink('address&amp;redirect=checkout&amp;....
which displays the link of the popup of creation/edition of an address.
There, you need to add a parameter with the $this-&gt;type variable. For example:
echo hikashop::completeLink('address&amp;redirect=checkout&amp;address_type='.$this-&gt;type.'&amp;....

Then, in the address form, after the line:
foreach($this-&gt;extraFields as $fieldName =&gt; $oneExtraField) {

you can do something like that for example :
if(fieldName=="address_state" &amp;&amp; JRequest::getVar('address_type')=='billing'){
continue; //skip the address_state field for the billing address
}

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

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

Less More

- Posts: 47
- Thank you received: 0
-
-

15 years 6 months ago -  15 years 6 months ago [\#15673](#15673) by [woes](/forum/user/1954-woes "View woes's Profile")  Replied by *[woes](/forum/user/1954-woes "View woes's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#15673 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

I've implemented the changes and the fields still display on the register form.. i've added my changes below:

*Added the following fields:*
*Table* - *column name* - *Label*
address naamoverledene Naam (overledene)
address address_overledene Naam2 (overledene)

*Changes in address / form.php*

foreach($this-&gt;extraFields as $fieldName =&gt; $oneExtraField) {
if(fieldName=="address_overledene" &amp;&amp; JRequest::getVar('address_type')=='billing'){
continue; //skip the address_state field for the billing address
if(fieldName=="naamoverledene" &amp;&amp; JRequest::getVar('address_type')=='billing'){
continue; //skip the address_state field for the billing address
if(fieldName=="address_naamoverledene" &amp;&amp; JRequest::getVar('address_type')=='billing'){
continue; //skip the address_state field for the billing address
}
?&gt;
&lt;tr&gt;

*Changes in checkout - adddress\_view (bottom code, changes highlighted in bold text)*

&lt;span class="hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_buttons"&gt;
&lt;a title="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;" class="hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_delete" href="&lt;?php echo hikashop::completeLink('checkout&amp;step='.$this-&gt;step.'&amp;redirect=checkout&amp;task=deleteaddress&amp;address_id='.$address-&gt;address_id.'&amp;'.JUtility::getToken().'=1');?&gt;"&gt;&lt;img alt="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;" src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;delete.png" border="0" /&gt;&lt;/a&gt;
&lt;a title="&lt;?php echo JText::_('HIKA_EDIT'); ?&gt;" class="modal hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_edit" rel="{handler: 'iframe', size: {x: 450, y: 480}}" href="&lt;?php echo hikashop::completeLink('address&amp;task=edit**&amp;address\_type='.$this-&gt;type.'**&amp;redirect=checkout&amp;address_id='.$address-&gt;address_id.'&amp;step='.$this-&gt;step,true);?&gt;" onclick="SqueezeBox.fromElement(this,{parse: 'rel'});return false;"&gt;&lt;img alt="&lt;?php echo JText::_('HIKA_EDIT'); ?&gt;" src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;edit.png" border="0" /&gt;&lt;/a&gt;
&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php
}
?&gt;
&lt;/table&gt;
&lt;?php
}
?&gt;
&lt;span id="hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_new" class="hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_new"&gt;
&lt;a id="hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_new_link" rel="{handler: 'iframe', size: {x: 450, y: 480}}" href="&lt;?php echo hikashop::completeLink('address&amp;redirect=checkout**&amp;address\_type='.$this-&gt;type.'**&amp;task=add&amp;step='.$this-&gt;step,true);?&gt;" onclick="SqueezeBox.fromElement(this,{parse: 'rel'});return false;"&gt;
&lt;?php echo $this-&gt;cart-&gt;displayButton(JText::_('HIKA_NEW'),'new',$this-&gt;params,'','var link = document.getElementById(\'hikashop_checkout_'. $this-&gt;type.'_address_new_link\'); if(link) SqueezeBox.fromElement(link,{parse: \'rel\'});return false;'); ?&gt;
&lt;/a&gt;
&lt;/span&gt;

Last edit: 15 years 6 months ago by [woes](/forum/user/1954-woes "View woes's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzOTE0LWNvbWJpbmluZy1jdXN0b20tZmllbGRzLXdpdGgtcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) 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 [\#15745](#15745) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#15745 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

Ah, it's for the registration view ? These changes where for the address edition popup.
For the registration view, you can just add the code:
if(fieldName=="address_naamoverledene") continue;

after the line:
foreach($this-&gt;extraFields[$type] as $fieldName =&gt; $oneExtraField) {

in the file custom_fields of the view user.

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

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

Less More

- Posts: 47
- Thank you received: 0
-
-

15 years 6 months ago -  15 years 6 months ago [\#15779](#15779) by [woes](/forum/user/1954-woes "View woes's Profile")  Replied by *[woes](/forum/user/1954-woes "View woes's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#15779 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

Hi Nicolas,

Thanks for your reply, I've changed the below code to user / custom/fields.php, but the field still displays on the register form.

&lt;?php
$type = $this-&gt;type;
foreach($this-&gt;extraFields[$type] as $fieldName =&gt; $oneExtraField) {
if(fieldName=="address_naamoverledene") {
continue;
}
?&gt;
&lt;tr

Also i got an error on the edition popup with the previous changes (unexpected $end), tried to add a } to end the IF, and the error is gone, but it still displays the custom field on the popup..

&lt;?php
foreach($this-&gt;extraFields as $fieldName =&gt; $oneExtraField) {

if(fieldName=="address_naamoverledene" &amp;&amp; JRequest::getVar('address_type')=='billing'){
continue; //skip the address_state field for the billing address
}
?&gt;

I really wonder what i'm doing wrong here..

Last edit: 15 years 6 months ago by [woes](/forum/user/1954-woes "View woes's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzOTE0LWNvbWJpbmluZy1jdXN0b20tZmllbGRzLXdpdGgtcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) 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 [\#15794](#15794) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#15794 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

I suppose that you means user / custom_fields.php, right ?
Are you sure that the column name of your field is address_naamoverledene and not naamoverledene ? Because I've seen both in your code snippets...

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

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

Less More

- Posts: 47
- Thank you received: 0
-
-

15 years 6 months ago [\#15805](#15805) by [woes](/forum/user/1954-woes "View woes's Profile")  Replied by *[woes](/forum/user/1954-woes "View woes's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#15805 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

Yes, i made a typo there, i have tried to add both, the column name is indeed just "naamoverledene", i have tried to do it like:

foreach($this-&gt;extraFields[$type] as $fieldName =&gt; $oneExtraField) {
if(fieldName=="address_naamoverledene") {
continue;
}
if(fieldName=="naamoverledene") {
continue;
}
?&gt;

and also like:

foreach($this-&gt;extraFields[$type] as $fieldName =&gt; $oneExtraField) {
if(fieldName=="address_naamoverledene") continue;
if(fieldName=="naamoverledene") continue;
?&gt;

but with both, the field still displays..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzOTE0LWNvbWJpbmluZy1jdXN0b20tZmllbGRzLXdpdGgtcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) 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 [\#15815](#15815) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#15815 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

So either you're not doing the modification in the good template (if you have several templates you need to do the view modification in the template which is used on the checkout), or the column names are not good.

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

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

Less More

- Posts: 47
- Thank you received: 0
-
-

15 years 6 months ago [\#15816](#15816) by [woes](/forum/user/1954-woes "View woes's Profile")  Replied by *[woes](/forum/user/1954-woes "View woes's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#15816 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

I've tried about everything, i'm only using one template, i've also tried the changes on checkout / custom_fields.php just to be sure.

I will mail you my joomla admin login so you can check if anything is wrong, perhaps i'm really overlooking something..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzOTE0LWNvbWJpbmluZy1jdXN0b20tZmllbGRzLXdpdGgtcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) 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 [\#15819](#15819) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#15819 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

It should be $fieldName and not fieldName as I wrote earlier.

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

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

Less More

- Posts: 47
- Thank you received: 0
-
-

15 years 6 months ago [\#15995](#15995) by [woes](/forum/user/1954-woes "View woes's Profile")  Replied by *[woes](/forum/user/1954-woes "View woes's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#15995 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

Great, such a minor detail can be so important, the fields are now hidden on the register form!

Unfortunately, after registering a new account and clicking the activiation link, the address turns out not to be saved, (both billing and shipping address are empty) then when i add a shipping address, it adds as a billing address.. (probably because none exist yet, also tried to check via the backend if user data is perhaps saved there, but it's all blank).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzOTE0LWNvbWJpbmluZy1jdXN0b20tZmllbGRzLXdpdGgtcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) 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 [\#15997](#15997) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Combining custom fields with product options](/forum/4-how-to/13914-combining-custom-fields-with-product-options#15997 "Hi Nicolas (and community members),  I'm building a webshop for flowers, optionally the customer can order a card or a ribbon to go with the flowers. When a user selects a card or ribbon, they must be able to enter the text for the card or ribbon in an extra field.  I've looked at the business version demo, and found the entries functionality that displays some dropdowns only when others are selected. I'm thinking we could use the flowers as entries, and let the customer select if they want a card or ribbon with it, and then upon selecting on of these display a text area where they can enter their desired text. The question with this solution is, can we send the custom text to the order confirmation?  However, that is not a really neat solution since we want to preferably display the cards and ribbons as &quot;Featured products&quot;. Although we might try to use that if there's no better solution.  If done the regular way, maybe it is possible to show the custom fields on the registration page only when a certain product is in the cart, or do you have any other suggestions about how i can accomplish this? Maybe we can use the &quot;additional information&quot; field (as seen in the demo) at the end of the checkout process to display only when a card or ribbon is in the cart? This way the registration form would also be cleaner, and less complicated when dealing with existing customers.  We also have another question; is there a possibility to show custom fields ONLY on the shipping address form but not on the regular customer address form?  We are thinking of upgrading to the business version, but of course we would like know if it will/can meet our requirements.  Kind regards, Woes")*

That's a known issue for people who downloaded hikashop 1.4.9 just after the release. You can fix it by following that post: [ www.hikashop.com/en/support/forum/4-how-...to-paypal.html#14348](http://www.hikashop.com/en/support/forum/4-how-to/14268-cart-redirect-to-paypal.html#14348)

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

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