add please select to custom field drop down

  • Posts: 490
  • Thank you received: 2
7 years 10 months ago #258919

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

how do i make my custom field single drop down to throw an error if the user does not make any changes to the drop down.

i have the following

0 = please select
1 = important
2= very important
3 = emergency

if buyer saves his product and custom field is on = please select, he wont save it.

somthing like error " you need to select importance"

thanks

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 10 months ago #258923

Hi,

Keep the value empty for the please select title and turn on the "required" setting of your custom field and it will work like that.

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

  • Posts: 490
  • Thank you received: 2
7 years 10 months ago #258952

hi

when i did the instructions the form did not save and an error informing me to complete the field appear.

But i got lots of errors as seen below

Warning: Creating default object from empty value in
/home.../administrator/components/com_hikamarket/classes/product.php on line 92

Warning: Attempt to assign property of non-object in /home.../components/com_hikamarket/views/productmarket/tmpl/form_image.php on line 43

Warning: Attempt to assign property of non-object in /home...components/com_hikamarket/views/productmarket/tmpl/form_image.php on line 42.

thanks

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 10 months ago #258976

Hi,

Can you provide a screenshot of the settings of your custom field ?

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

  • Posts: 490
  • Thank you received: 2
7 years 10 months ago #259192

here it is,


thanks

Attachments:
Last edit: 7 years 7 months ago by ronron.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 10 months ago #259194

Hi,

I see you mentioned warning in HikaMarket ; which mean that you're saving the product in the HikaMarket front-end and not in the HikaShop backend.
If you're asking a question here, in the HikaShop section of the forum, please make a message only regarding HikaShop and the HikaShop context (so, the backend product edition).

Otherwise, there is the HikaMarket section of the forum for the HikaMarket questions.
Right now, I can only recommend you to perform a product save in the HikaShop backend and be sure that it is working (or not).

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.

Time to create page: 0.063 seconds
Powered by Kunena Forum