Custom Field - Checkbox hidden

  • Posts: 60
  • Thank you received: 3
  • Hikashop Business
4 years 6 months 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: 81361
  • Thank you received: 13037
  • MODERATOR
4 years 6 months 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: 60
  • Thank you received: 3
  • Hikashop Business
4 years 6 months 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: 60
  • Thank you received: 3
  • Hikashop Business
4 years 6 months 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: 60
  • Thank you received: 3
  • Hikashop Business
4 years 6 months ago #311120

See screen shot of field

Attachments:

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
4 years 6 months 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: 60
  • Thank you received: 3
  • Hikashop Business
4 years 6 months 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: 81361
  • Thank you received: 13037
  • MODERATOR
4 years 6 months 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.

  • Posts: 60
  • Thank you received: 3
  • Hikashop Business
4 years 6 months ago #311195

Thank you, I did not notice the message being different at teh top, I thought it would show an error message next to the check box. I assume that is not possible?

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
4 years 6 months ago #311201

Hi,

That is possible.
You just need to configure the "HikaShop cart notify plugin" via the Joomla plugins manager to display the messages next to the add to cart button instead of displaying in the corner.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum