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

#   option product with variants

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

14 years 8 months ago [\#41110](#41110) by [magnum](/forum/user/6307-magnum "View magnum's Profile")  *[option product with variants](/forum/4-how-to/41110-option-product-with-variants#41110 "hi all, first let me say that i am very pleased with hikashop, really an awesome software. as a newbie to hikashop i am in the process of checking it out.  now this is my problem: i define a product that will be used as an option. this option product has 2 characteristics with 2 values each ( also tried only one characteristic, same problem). (by the way, i have noticed that hikashop sets up the matrix of variants only correctly if i add both characteristics at once. if i add one characteristic, save the product and add the second later on, i only see two variants in the &quot;managed variants&quot; list and have to set up the others manually. this is uncomfortable, but not a real problem.)  however, if i add that product to another as an option, the system provides the 4 variants of the option, but does not offer the choice not to have the option at all as it does with options products w/o variants. since it does in the demo with the desktop tower (keyboard and mouse) i am obviously doing something wrong. but what? B)")* was created by *[magnum](/forum/user/6307-magnum "View magnum's Profile")*

hi all,
first let me say that i am very pleased with hikashop, really an awesome software.
as a newbie to hikashop i am in the process of checking it out.

now this is my problem:
i define a product that will be used as an option. this option product has 2 characteristics with 2 values each ( also tried only one characteristic, same problem).
(by the way, i have noticed that hikashop sets up the matrix of variants only correctly if i add both characteristics at once. if i add one characteristic, save the product and add the second later on, i only see two variants in the "managed variants" list and have to set up the others manually. this is uncomfortable, but not a real problem.)

however, if i add that product to another as an option, the system provides the 4 variants of the option, but does not offer the choice not to have the option at all as it does with options products w/o variants.
since it does in the demo with the desktop tower (keyboard and mouse) i am obviously doing something wrong. but what? ![B)](/media/kunena/emoticons/1.png "B)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQxMTEwLW9wdGlvbi1wcm9kdWN0LXdpdGgtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) 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: 86292
- Thank you received: 14270
-
-

14 years 8 months ago [\#41224](#41224) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: option product with variants](/forum/4-how-to/41110-option-product-with-variants#41224 "hi all, first let me say that i am very pleased with hikashop, really an awesome software. as a newbie to hikashop i am in the process of checking it out.  now this is my problem: i define a product that will be used as an option. this option product has 2 characteristics with 2 values each ( also tried only one characteristic, same problem). (by the way, i have noticed that hikashop sets up the matrix of variants only correctly if i add both characteristics at once. if i add one characteristic, save the product and add the second later on, i only see two variants in the &quot;managed variants&quot; list and have to set up the others manually. this is uncomfortable, but not a real problem.)  however, if i add that product to another as an option, the system provides the 4 variants of the option, but does not offer the choice not to have the option at all as it does with options products w/o variants. since it does in the demo with the desktop tower (keyboard and mouse) i am obviously doing something wrong. but what? B)")*

Hi,

You're not doing anything wrong.
On our demo website, all the product options of the desktop tower product have a characteristic with variants. So we have a specific variant for the "no" choice.
So that's the way you should do it too.

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

14 years 8 months ago [\#41276](#41276) by [magnum](/forum/user/6307-magnum "View magnum's Profile")  Replied by *[magnum](/forum/user/6307-magnum "View magnum's Profile")* on topic *[Re: option product with variants](/forum/4-how-to/41110-option-product-with-variants#41276 "hi all, first let me say that i am very pleased with hikashop, really an awesome software. as a newbie to hikashop i am in the process of checking it out.  now this is my problem: i define a product that will be used as an option. this option product has 2 characteristics with 2 values each ( also tried only one characteristic, same problem). (by the way, i have noticed that hikashop sets up the matrix of variants only correctly if i add both characteristics at once. if i add one characteristic, save the product and add the second later on, i only see two variants in the &quot;managed variants&quot; list and have to set up the others manually. this is uncomfortable, but not a real problem.)  however, if i add that product to another as an option, the system provides the 4 variants of the option, but does not offer the choice not to have the option at all as it does with options products w/o variants. since it does in the demo with the desktop tower (keyboard and mouse) i am obviously doing something wrong. but what? B)")*

thx for your answer, but that way seems quite cumbersome to me.

(for example: i have a topcase that comes in 2 sizes and several colors. i want to sell that topbox separately and as an option (with the variants) to several bikes. so i would have to define the characteristics and a second set for the topbox as a product, because for that case the variant 'without' doesn't make any sense. and most of all i would have redundant data.)

but i found a simple workaround by patching the view product/option.php ![B)](/media/kunena/emoticons/1.png "B)")

after line 50 ( }else{ ) i inserted a copy of line 28 : Code:

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

and (quick and dirty) to make the system offer 'without' as the default (line 99ff) : Code:

if($default){ // $value = $variant-&gt;product_id; $value=0; }

now (at least on the product detail page and in the cart) it does exactly what i want.

however: do i have to expect any problems, e.g. with billing?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQxMTEwLW9wdGlvbi1wcm9kdWN0LXdpdGgtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) 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: 86292
- Thank you received: 14270
-
-

14 years 7 months ago [\#41442](#41442) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: option product with variants](/forum/4-how-to/41110-option-product-with-variants#41442 "hi all, first let me say that i am very pleased with hikashop, really an awesome software. as a newbie to hikashop i am in the process of checking it out.  now this is my problem: i define a product that will be used as an option. this option product has 2 characteristics with 2 values each ( also tried only one characteristic, same problem). (by the way, i have noticed that hikashop sets up the matrix of variants only correctly if i add both characteristics at once. if i add one characteristic, save the product and add the second later on, i only see two variants in the &quot;managed variants&quot; list and have to set up the others manually. this is uncomfortable, but not a real problem.)  however, if i add that product to another as an option, the system provides the 4 variants of the option, but does not offer the choice not to have the option at all as it does with options products w/o variants. since it does in the demo with the desktop tower (keyboard and mouse) i am obviously doing something wrong. but what? B)")*

Ah yes, you can do that with that kind of change in the view file.
No problem to expect.

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

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

[](#top)
