Options with Characteristics

  • Posts: 24
  • Thank you received: 1
6 years 7 months ago #296007

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.5
-- PHP version -- : 7.0.30
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : None

Is there a way to have the software allow options (with characteristics) have an option and default to 'No' before adding?

Explanation:

1) Adding "Embossed Leather Belt" works great. It's an item with no characteristics. So the user is NOT forced to add it. It defaults "No".

2) Adding a "Santa Shirt Cotton" has characteristics. The user may NOT want to add this, but doesn't have a chance to select "No". It only shows available sizes.

Furthermore, I can't 'add' a characteristic called "No" for the item, because that would (a) not allow a $0 price, and (b) look funny when the user is buying that item independently.

Please help. Thanks in advance.

Attachments:

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

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
6 years 7 months ago #296027

Hi,

Having a "no" variant, as you say in your message, is what most people do.
If you want to add a "no" default choice to your options without having to add a "non" variant, then you can add an entry with the namekey "add_no_to_options" and the value "1" in the table "hikashop_config" via your phpmyadmin.
That will add the no to all the options.
If you want to add it to only some options, then you would have to edit the file "option" of the view "product" via the menu Display>Views and change the line:

if($this->config->get('add_no_to_options', 0) && $selectionMethod != 'check') {
for your own custom condition (based for example on the value of a custom product field set in each option).

The following user(s) said Thank You: rwestpga

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

  • Posts: 24
  • Thank you received: 1
6 years 7 months ago #296048

Thanks Nicolas! I changed the Display/Views/Option for my template, and I now have the 'No' option showing up!

However, "No" is not the 'default' selection. Can you please tell me how to do that? I don't know what to add to the code (I'm not a programmer).

Here is the item link i'm working with:
costumesforsanta.rwmbeta.com/shop/produc...-majestic-santa-suit

I'd like to have a way for the first 3 options all default "No", just like the last 3.

Thanks again, in advance.

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

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
6 years 7 months ago #296051

Hi,

Then you can also add an entry with the namekey "select_option_default_value" and the value "0" in the hikashop_config table via your phpmyadmin.

Similarily to before, if you don't want that for all the options, you can modify that line:

if($this->config->get('select_option_default_value', 1) && $selectionMethod != 'check') {
in the file "option" of the view "product" via the menu Display>Views.

The following user(s) said Thank You: rwestpga

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

  • Posts: 24
  • Thank you received: 1
6 years 7 months ago #296085

This is Awesome!!! Thank you so much Nicolas! So far, your software is the most amazing extension for Joomla I've ever seen!

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

  • Posts: 24
  • Thank you received: 1
6 years 7 months ago #296086

Not sure if i need to do anything to close tickets since this was my first post. Let me know please if I need to do anything else. Thanks again!

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

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
6 years 7 months ago #296094

Hi,

Thanks !
If you want, you can post a review of HikaShop on the JED:
extensions.joomla.org/extensions/extensi...pping-cart/hikashop/
It helps a lot.

There is nothing particular to do to close a thread.
We handle the opening/closing on our end, for us to see, with a system that you don't have access to.

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

  • Posts: 24
  • Thank you received: 1
6 years 7 months ago #296109

Review DONE! Thanks again!

The following user(s) said Thank You: Mohamed Thelji

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

  • Posts: 42
  • Thank you received: 0
  • Hikashop Business
4 years 10 months ago #318012

Hi,

I cannot find that line in the option file of the product view. Is it changed between then and now?

regards,
Rachel

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

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 10 months ago #318014

Hi,

These lines are both still there:
monosnap.com/file/WzGuBOpn4RTavvLibVxcK2RZEgTvFa
Please check again.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum