modified option

  • Posts: 75
  • Thank you received: 1
12 years 11 months ago #40021

Hello Hika-Team

first at all, thank you for your great support. Hikashop is a powerful tool for webshop.
I am sure, again you can give me a solution for this question:

As you know, my product have different options. The options have different characteristics.
Once the option have more than one characteristics, the line "no" disappear and only the selectable options stay.
This do not happens if there is only one option.

My question, is there a possiblity to have eg. a option with three characteristics which shown 4 selectabel options with "no", "xx", "xx", ....

I have already try to add a fourth characteristic as "without" with 0€, but it appear in the cart with "free of charge".

How can I add the "No" to my option so that this item do not show in my cart?

Best Regards.






Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #40221

Hi,

That's indeed the case.
Usually, people will use options with the option "group options with products" activated in the configuration so that the options don't have their own line on the checkout. Then, you don't really have that problem.
Would that be a solution for you ?
Otherwise, you add a "no" option to the option, you would have to edit the file "option" of the view "product" via the menu Display->Views and add the line:

$this->values[] = JHTML::_('select.option', 0,JText::_('HIKASHOP_NO'));
before the line
foreach($optionElement->variants as $variant){

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 1
12 years 11 months ago #40315

Thank you Nicolas

is it also possible to set "No" as default?

Please Log in or Create an account to join the conversation.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 10 months ago #40495

Yes. Just remove the line:

$value = $variant->product_id;

Please Log in or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum