- Posts: 3
- Thank you received: 0
option product with variants
14 years 7 months ago #41110
by magnum
option product with variants was created by magnum
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?
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?
Please Log in or Create an account to join the conversation.
14 years 7 months ago #41224
by nicolas
Replied by nicolas on topic Re: option product with variants
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.
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 or Create an account to join the conversation.
14 years 7 months ago #41276
by magnum
Replied by magnum on topic Re: option product with variants
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
after line 50 ( }else{ ) i inserted a copy of line 28 :
and (quick and dirty) to make the system offer 'without' as the default (line 99ff) :
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?
(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
after line 50 ( }else{ ) i inserted a copy of line 28 :
Code:
$this->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->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 or Create an account to join the conversation.
14 years 7 months ago #41442
by nicolas
Replied by nicolas on topic Re: option product with variants
Ah yes, you can do that with that kind of change in the view file.
No problem to expect.
No problem to expect.
Please Log in or Create an account to join the conversation.
Time to create page: 0.168 seconds