own fields

  • Posts: 3
  • Thank you received: 0
10 years 5 months ago #189675

-- url of the page with the problem -- : www.dedico.nl/index.php/ct-menu-item-11/...-security-verlenging
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.36
-- Browser(s) name and version -- : Firefox 35.0.1

It's not an errormessage but when I have a product with 'own fields' and they are mandatory they can not be empty when added to the product. I don't want text in those fields. Is somebody presses submit it accepts the data I put in and not what the customer should put in.

Makes sense? On the example webpage the EAV fields are mandatory but I have to put something in them.

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

  • Posts: 26255
  • Thank you received: 4041
  • MODERATOR
10 years 5 months ago #189683

Hi,

You should not define a default value for the required fields.
(I made an improvement for the next HikaShop release to let users configure a required custom field without default value ; without displaying a warning message).

The best will be to use a placeholder instead of a default text if you want to do in the same way you are doing now. But it will require some modifications in the custom field system.
It could be an interesting idea for an improvement.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 63
  • Thank you received: 1
  • Hikashop Business
8 years 3 months ago #266751

Was there any updates to this, I've been hard coding in my placeholders. But now I am on the customfields this would mean a check for each custom field in an override file.

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

  • Posts: 84046
  • Thank you received: 13621
  • MODERATOR
8 years 3 months ago #266755

Hi,

I don't understand what you mean.
You sure can have placeholders in custom fields. There is a specific placeholder setting for that in the custom fields edition interface.
And you sure can have an empty value if necessary.
It shouldn't require any code modification.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum
loading