Skip to main content

Custom Field - Checkbox hidden

More
7 years 3 weeks ago #310430 by spytech
-- 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.

More
7 years 3 weeks ago #310444 by nicolas
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.

More
7 years 1 week ago #311084 by spytech
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.

More
7 years 1 week ago #311085 by spytech
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.

More
7 years 1 week ago #311120 by spytech
See screen shot of field

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

More
7 years 1 week ago #311121 by nicolas
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.

More
7 years 1 week ago #311146 by spytech
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.

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

More
7 years 6 days ago #311170 by nicolas
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.

More
7 years 5 days ago #311195 by spytech
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.

More
7 years 4 days ago #311201 by nicolas
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.207 seconds
Powered by Kunena Forum