Hints for "custom fields" needed

  • Posts: 73
  • Thank you received: 0
9 years 5 months ago #204506

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.38

Hello

1. Is there a way to alphabetically sort Simple dropdown lists?

2. If user will "use" default values (custom fields), I need to generate message "Please enter a value for the ... field". Please give me one hint which View must be edited...
This for Text or Simple Drop down.

Thank you.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
9 years 5 months ago #204534

Hi,

1. No. You would have to delete the values and add them again in the correct order.
Next version of HikaShop will introduce a drag & drop feature for the custom field values so that you'll be able to easily reorder them.

2. There is no need to edit any code. This is already possible by default. Simply don't enter any "value" for your default choice and turn on the "required" option of the field and that's it.

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

  • Posts: 73
  • Thank you received: 0
9 years 5 months ago #204561

1. OK, I live with it. Get it now enter in the order.

2. Dropdown:
In my case there is no default value, the customer must choose an option. So the default is "Please select".

2. Text:
Your suggestion works when default is empty and the field is configured as "reguired". But when I there configure an example input I can not do it.

2. Probably another option in the configuration should be implemented "Use default Yes/No".

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
9 years 5 months ago #204574

Hi,

2. When you add a choice to a custom field, you have two fields:value and title.
Value is what is checked by the system, title is what is displayed to the user.
So simply keep empty the value and enter "please select" in the title (as I was trying to explain in my previous message) and it will work exactly like you want, without any extra code, on any extra option.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum