Custom Field - Checkbox hidden

  • Posts: 16
  • Thank you received: 0
  • Hikashop Business
2 weeks 4 days ago #310430

-- HikaShop version -- : 4.2.1
-- Joomla version -- : Latest
-- PHP version -- : Latest
-- Browser(s) name and version -- : Firefox68.0.2
-- Error-message(debug-mod must be tuned on) -- : *

Hi, please can you let me know why the checkbox that I added, shows up but is hidden?

Thanks.

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

  • Posts: 66849
  • Thank you received: 9881
  • MODERATOR
2 weeks 4 days ago #310444

Hi,

I'm not sure. Could you provide a screenshot of the settings of your custom field ?

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

  • Posts: 16
  • Thank you received: 0
  • Hikashop Business
1 day 11 hours ago #311084

Hi, sorry for the late reply!

The page is here: arpeggio-publishing.com/hikashop-menu-fo...k_leather_eo_10month

Code is:

<span id="hikashop_product_custom_item_value_20" class="hikashop_product_custom_item_value"><input type="hidden" name="data[item][monthly_accept_40]" value=" "> <span class="hikashop_field_required">*</span></span>

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

  • Posts: 16
  • Thank you received: 0
  • Hikashop Business
1 day 11 hours ago #311085

Even the preview of the custom field in the setup shows it as hidden..

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

  • Posts: 16
  • Thank you received: 0
  • Hikashop Business
1 day 2 hours ago #311120

See screen shot of field

Attachments:

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

  • Posts: 66849
  • Thank you received: 9881
  • MODERATOR
23 hours 21 minutes ago #311121

Hi,

You need to enter a "title" and a "value" in the "values" area of the settings page of your custom field.

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

  • Posts: 16
  • Thank you received: 0
  • Hikashop Business
9 hours 26 minutes ago #311146

Great that worked, the only issue is the field is not required to add the product. How do I make it so that if I do not check the accept checkbox, the add to cart button is not enabled? I only want them to be able to add the product to cart if they check the box.

Thanks
Paul.

Attachments:

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

  • Posts: 66849
  • Thank you received: 9881
  • MODERATOR
1 hour 3 minutes ago #311170

Hi,

Well, I created a custom field similar to what you did and I did get the error message when trying to add to the cart the product with that checkbox unchecked.
So I went and checked on your website, and it works fine too as far as I can see:
monosnap.com/file/qKaSGv8YEhZGdJcTF7OdnlO6DaJTAH
So please double check.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum