Conditional Custom Field Display

  • Posts: 21
  • Thank you received: 0
7 years 10 months ago #272648

-- Joomla version -- : 3.4.3
-- PHP version -- : 5.6

I have Ring Engraving Options Yes-No, and Engraving Text field.

Is it possible to make it so shoppers have to select Engraving "Yes" before the Engraving Text field is displayed?

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

  • Posts: 21
  • Thank you received: 0
7 years 10 months ago #272649

PS: Engraving Yes/No is a product valiant and not custom field as they have engraving prices associated with them.

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

  • Posts: 83799
  • Thank you received: 13571
  • MODERATOR
7 years 10 months ago #272653

Hi,

There is no option for that.
That would require to add a bit of javascript in the file "option" of the view "product" via the menu Display>Views so that when the option is changed the field can be hidden/displayed.
A developer should be able to do that easily for you.

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

  • Posts: 21
  • Thank you received: 0
7 years 10 months ago #272678

Based on the info from this thread: www.hikashop.com/support/forum/product-c...on-custom-field.html

I added a new Custom Field "Engraving Text?" (Yes/No) that triggers the Engraving Text (text field) display.

However when "Engraving Text?" Yes is selected and the Engraving Text is entered, the Engraving text is not carried over to the cart.

Am I missing some more steps for this to work as intended?

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

  • Posts: 26233
  • Thank you received: 4036
  • MODERATOR
7 years 10 months ago #272696

Hello,

Which HikaShop version number are you using ?
What type of custom field are you using (product, item, order) ?

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: 21
  • Thank you received: 0
7 years 10 months ago #272713

Hikashop: 2.6.0

Custom fields for "Engraving Text" are both text field type in Item table.

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

  • Posts: 83799
  • Thank you received: 13571
  • MODERATOR
7 years 10 months ago #272719

Hi,

That's hard to say. It's probably a bug with the handling of the custom item fields. We've added many fixes since then to handle them properly.
I would recommend updating your HikaShop, then setting the new display options of the custom item fields like you want and it should work better.
Note however that updating to HikaShop 3.x is a big step so I recommend first making a copy of the website and testing the update on that copy.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum