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

#   how to show 'none' as default for product option?

##

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

Less More

- Posts: 26
- Thank you received: 0
-
-

12 years 9 months ago [\#137923](#137923) by [valerun](/forum/user/25709-valerun "View valerun's Profile")  *[how to show 'none' as default for product option?](/forum/26-product-category-display/864582-how-to-show-none-as-default-for-product-option#137923 "Hi,  Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.  We have many products on our site - example:   emotorwerks.com/products/online-store/pr...-ev-charging-station . We need to add another product (  emotorwerks.com/products/online-store/pr...s/related&#95;product-44 ) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...  I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.  Stuck. Pls help.  thanks, Valery")* was created by *[valerun](/forum/user/25709-valerun "View valerun's Profile")*

Hi,

Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.

We have many products on our site - example: [ emotorwerks.com/products/online-store/pr...-ev-charging-station](http://emotorwerks.com/products/online-store/product/show/44-emw-juicebox-an-open-source-level-2-15kw-ev-charging-station). We need to add another product ([ emotorwerks.com/products/online-store/pr...s/related\_product-44](http://emotorwerks.com/products/online-store/product/show/38-j1772-cables-for-juicebox-or-emw-dc-charging-systems/related_product-44)) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...

I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.

Stuck. Pls help.

thanks,
Valery

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQ1ODItaG93LXRvLXNob3ctbm9uZS1hcy1kZWZhdWx0LWZvci1wcm9kdWN0LW9wdGlvbj90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

12 years 9 months ago [\#137959](#137959) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to show 'none' as default for product option?](/forum/26-product-category-display/864582-how-to-show-none-as-default-for-product-option#137959 "Hi,  Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.  We have many products on our site - example:   emotorwerks.com/products/online-store/pr...-ev-charging-station . We need to add another product (  emotorwerks.com/products/online-store/pr...s/related&#95;product-44 ) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...  I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.  Stuck. Pls help.  thanks, Valery")*

Hi,

That is indeed what I would have recommended. If you want to also sell the option as its own product and that you don't want the "none" variant there, then you would need two separate product. One for the option with that "none" value and one without it so that you can sell it on its own without that choice. Simply add the one with the "none" value to an unpublished category so that it is not purchasable on its own.

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

12 years 9 months ago -  12 years 9 months ago [\#138023](#138023) by [valerun](/forum/user/25709-valerun "View valerun's Profile")  Replied by *[valerun](/forum/user/25709-valerun "View valerun's Profile")* on topic *[how to show 'none' as default for product option?](/forum/26-product-category-display/864582-how-to-show-none-as-default-for-product-option#138023 "Hi,  Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.  We have many products on our site - example:   emotorwerks.com/products/online-store/pr...-ev-charging-station . We need to add another product (  emotorwerks.com/products/online-store/pr...s/related&#95;product-44 ) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...  I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.  Stuck. Pls help.  thanks, Valery")*

Thanks. So I have to duplicate all the product info for the option product twice?? But this is such a hack, no?

I am sure that what we are trying to do is actually the normal use case for options. That's the whole point of optional additions, no? Please consider this for one of your next releases.

Valery

Last edit: 12 years 9 months ago by [valerun](/forum/user/25709-valerun "View valerun's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQ1ODItaG93LXRvLXNob3ctbm9uZS1hcy1kZWZhdWx0LWZvci1wcm9kdWN0LW9wdGlvbj90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

12 years 9 months ago [\#138030](#138030) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to show 'none' as default for product option?](/forum/26-product-category-display/864582-how-to-show-none-as-default-for-product-option#138030 "Hi,  Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.  We have many products on our site - example:   emotorwerks.com/products/online-store/pr...-ev-charging-station . We need to add another product (  emotorwerks.com/products/online-store/pr...s/related&#95;product-44 ) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...  I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.  Stuck. Pls help.  thanks, Valery")*

It's not the whole point no. Most of the times, options are only options and aren't sold separately and when they are, most of the time they don't have characteristics. So your case is not common.

You sure can do it automatically with a small code modification by editing the file "option" of the view "product" via Display&gt;Views and changing the line: Code:

$this-&gt;values = array();

to: Code:

$this-&gt;values = array(JHTML::_('select.option', 0,JText::_('HIKASHOP_NO')));

and removing the line: Code:

$value = $variant-&gt;product_id;

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

12 years 9 months ago -  12 years 9 months ago [\#138037](#138037) by [valerun](/forum/user/25709-valerun "View valerun's Profile")  Replied by *[valerun](/forum/user/25709-valerun "View valerun's Profile")* on topic *[how to show 'none' as default for product option?](/forum/26-product-category-display/864582-how-to-show-none-as-default-for-product-option#138037 "Hi,  Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.  We have many products on our site - example:   emotorwerks.com/products/online-store/pr...-ev-charging-station . We need to add another product (  emotorwerks.com/products/online-store/pr...s/related&#95;product-44 ) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...  I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.  Stuck. Pls help.  thanks, Valery")*

Thanks Nicholas for code snippet - I will try it. Will it stay when we upgrade to next version of Hikashop?

And re our case not being common - this is how every good store that allows to configure hardware products operates. For example, see [ store.apple.com/us/buy-mac/macbook-pro?p...E865LL/A&amp;step=config](http://store.apple.com/us/buy-mac/macbook-pro?product=ME865LL/A&step=config). Dell, Lenovo, Samsung, etc. Wherever you need to configure your product with options, you need an ability to select 'none' for that second hard drive, or an add-on printer, etc.

Last edit: 12 years 9 months ago by [valerun](/forum/user/25709-valerun "View valerun's Profile").

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

12 years 9 months ago [\#138041](#138041) by [valerun](/forum/user/25709-valerun "View valerun's Profile")  Replied by *[valerun](/forum/user/25709-valerun "View valerun's Profile")* on topic *[how to show 'none' as default for product option?](/forum/26-product-category-display/864582-how-to-show-none-as-default-for-product-option#138041 "Hi,  Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.  We have many products on our site - example:   emotorwerks.com/products/online-store/pr...-ev-charging-station . We need to add another product (  emotorwerks.com/products/online-store/pr...s/related&#95;product-44 ) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...  I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.  Stuck. Pls help.  thanks, Valery")*

maybe I just don't understand how to use 'options' functionality in Hikashop and am missing something obvious? For example, from your explanation I can't understand how I would implement any of the options shown on my example at [ store.apple.com/us/buy-mac/macbook-pro?p...E865LL/A&amp;step=config](http://store.apple.com/us/buy-mac/macbook-pro?product=ME865LL/A&step=config). Even for the options without 'none' selection, the default option does not carry any incremental price increase. This seems impossible to create using Hikashop options, no? unless, of course, I set up that variant of an option product with zero price - which brings the issue I mentioned with a standalone display of such product...

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

12 years 9 months ago -  12 years 9 months ago [\#138046](#138046) by [valerun](/forum/user/25709-valerun "View valerun's Profile")  Replied by *[valerun](/forum/user/25709-valerun "View valerun's Profile")* on topic *[how to show 'none' as default for product option?](/forum/26-product-category-display/864582-how-to-show-none-as-default-for-product-option#138046 "Hi,  Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.  We have many products on our site - example:   emotorwerks.com/products/online-store/pr...-ev-charging-station . We need to add another product (  emotorwerks.com/products/online-store/pr...s/related&#95;product-44 ) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...  I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.  Stuck. Pls help.  thanks, Valery")*

from the options file:
----
if(empty($optionElement-&gt;variants)){
if(!$optionElement-&gt;product_published &#124;&#124; (!$this-&gt;config-&gt;get('show_out_of_stock',1) &amp;&amp; $optionElement-&gt;product_quantity==0)) continue;
$this-&gt;values[] = JHTML::_('select.option', 0,JText::_('HIKASHOP_NO'));

---

does this mean that I would have had a 'none' option if my option product did not have characteristics / variants??

Last edit: 12 years 9 months ago by [valerun](/forum/user/25709-valerun "View valerun's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQ1ODItaG93LXRvLXNob3ctbm9uZS1hcy1kZWZhdWx0LWZvci1wcm9kdWN0LW9wdGlvbj90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

12 years 9 months ago [\#138114](#138114) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to show 'none' as default for product option?](/forum/26-product-category-display/864582-how-to-show-none-as-default-for-product-option#138114 "Hi,  Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.  We have many products on our site - example:   emotorwerks.com/products/online-store/pr...-ev-charging-station . We need to add another product (  emotorwerks.com/products/online-store/pr...s/related&#95;product-44 ) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...  I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.  Stuck. Pls help.  thanks, Valery")*

Hi,

1. You won't loose your changes to that view file when you upgrade.

2. You name apple, but apple doesn't sell RAM and processor alone. They only sell the computer with the options, so you can do that with HikaShop options with characteristics and a none variant without the issue you mention of the none variant appearing on the product page of the option product on standalone since they don't sell it in standalone.
I'm not saying that options are not common, just that your needs are a bit specific compared to most shops.

3. Yes, if you don't have characteristics in a product that you use as an option, HikaShop automatically adds a "no" choice to the dropdown because of course there is no point in having an option dropdown where you only have one choice.

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

6 years 10 months ago [\#314030](#314030) by [Webdexter](/forum/user/47417-webdexter "View Webdexter's Profile")  Replied by *[Webdexter](/forum/user/47417-webdexter "View Webdexter's Profile")* on topic *[how to show 'none' as default for product option?](/forum/26-product-category-display/864582-how-to-show-none-as-default-for-product-option#314030 "Hi,  Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.  We have many products on our site - example:   emotorwerks.com/products/online-store/pr...-ev-charging-station . We need to add another product (  emotorwerks.com/products/online-store/pr...s/related&#95;product-44 ) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...  I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.  Stuck. Pls help.  thanks, Valery")*

Hello Nicolas,

Does the code presented in this thread still count for Hikashop Business v 4.2.2?

> You sure can do it automatically with a small code modification by editing the file "option" of the view "product" via Display&gt;Views and changing the line:
>
> Code:
>
> $this-&gt;values = array();
>
>
>
> to: Code:
>
> $this-&gt;values = array(JHTML::_('select.option', 0,JText::_('HIKASHOP_NO')));
>
>
>
> and removing the line: Code:
>
> $value = $variant-&gt;product_id;

With regards,
Webdexter

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQ1ODItaG93LXRvLXNob3ctbm9uZS1hcy1kZWZhdWx0LWZvci1wcm9kdWN0LW9wdGlvbj90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

6 years 10 months ago [\#314031](#314031) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to show 'none' as default for product option?](/forum/26-product-category-display/864582-how-to-show-none-as-default-for-product-option#314031 "Hi,  Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.  We have many products on our site - example:   emotorwerks.com/products/online-store/pr...-ev-charging-station . We need to add another product (  emotorwerks.com/products/online-store/pr...s/related&#95;product-44 ) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...  I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.  Stuck. Pls help.  thanks, Valery")*

Hi,

You actually don't need to change any code anymore.
You can add an entry with the namekey add_no_to_options and the value 1 in the table hikashop_config via your phpmyadmin to add the No value to the option dropdowns.
And you can add an entry with the namekey select_option_default_value and the value 0 in the table hikashop_config via your phpmyadmin if you want that "No" value to be selected by default.
It's better than having view overrides as you will still get the improvements and fixes we'll add in the future to the product / option.php view file.

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

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

Less More

- Posts: 39
- Thank you received: 4
-
-

6 years 6 months ago [\#317537](#317537) by [Robby](/forum/user/33621-robby "View Robby's Profile")  Replied by *[Robby](/forum/user/33621-robby "View Robby's Profile")* on topic *[how to show 'none' as default for product option?](/forum/26-product-category-display/864582-how-to-show-none-as-default-for-product-option#317537 "Hi,  Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.  We have many products on our site - example:   emotorwerks.com/products/online-store/pr...-ev-charging-station . We need to add another product (  emotorwerks.com/products/online-store/pr...s/related&#95;product-44 ) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...  I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.  Stuck. Pls help.  thanks, Valery")*

Tried this, but I keep on getting errors. Would be nice if there is a small explanation about this OR it will be added as an option.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQ1ODItaG93LXRvLXNob3ctbm9uZS1hcy1kZWZhdWx0LWZvci1wcm9kdWN0LW9wdGlvbj90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

6 years 6 months ago [\#317543](#317543) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to show 'none' as default for product option?](/forum/26-product-category-display/864582-how-to-show-none-as-default-for-product-option#317543 "Hi,  Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.  We have many products on our site - example:   emotorwerks.com/products/online-store/pr...-ev-charging-station . We need to add another product (  emotorwerks.com/products/online-store/pr...s/related&#95;product-44 ) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...  I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.  Stuck. Pls help.  thanks, Valery")*

Hi,

What did you try ? As I said in my last message here, no code modification is necessary anymore. You can just add the entries in the hikashop_config table.
If you get errors, then please explain precisely what you did and provide a link to a product page with the issue as well as the error messages you got so that we can better understand your situation in order to help you.

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

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

Less More

- Posts: 39
- Thank you received: 4
-
-

6 years 6 months ago -  6 years 6 months ago [\#317573](#317573) by [Robby](/forum/user/33621-robby "View Robby's Profile")  Replied by *[Robby](/forum/user/33621-robby "View Robby's Profile")* on topic *[how to show 'none' as default for product option?](/forum/26-product-category-display/864582-how-to-show-none-as-default-for-product-option#317573 "Hi,  Just purchased a Business edition in order to use Product Options and just can't figure it out. I have spent a requisite half-hour searching through this forum but could not find the answer.  We have many products on our site - example:   emotorwerks.com/products/online-store/pr...-ev-charging-station . We need to add another product (  emotorwerks.com/products/online-store/pr...s/related&#95;product-44 ) as option. However, when I do that, my main product page does not allow me to order a product without an option - i.e. without cables. I thought that's the whole point of options - people can decide to order another product as an option in addition to main product or they can decide to add none of the options. The current config seems to be forcing people to add one of the variants of the 'optional' product which is not the intent at all...  I know that the way to hack it would be to create a variant 'none' in the optional product and default to that but then that product page would open on 'none' itself - bad user experience.  Stuck. Pls help.  thanks, Valery")*

Nevermind, I got it. Seams the MYSQL command worked but an error showed up. When checking it again it IS working! (screenshot stated it was allready added... )

- [ ![ErrorAdding.PNG](/forum/attachment/49077) ](/forum/attachment/49077 "ErrorAdding.PNG") [ ](/forum/attachment/49077?download=1 "ErrorAdding.PNG")

Last edit: 6 years 6 months ago by [Robby](/forum/user/33621-robby "View Robby's Profile").

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

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

[](#top)
