How to implement a custom checkbox on select products?

How to implement the trigger checkbox on some products, not on all products. And how to insert the code.

Hello @HansObena

I suggest trying this code to add into your product form:


I hope the above is useful to you.
Best regards,
GemPages Support Team

This code disabled the add to cart and “buy now” button?

Hello @HansObena

Greetings from SynapseIndia, and we are glad to help you today.

Kindly replace the code with below :-

<input type="checkbox" class="custom_checkbox" name="properties[agree]" />

Happy to answer any other queries you may have.

If you find my solution helpful, please do hit Like and Mark as Solution

Best Regards,

Animesh Sharma

Thank you.

Hello @HansObena

We are glad to help you today.

It seems the code worked for you. Please mark our comment “accept as solution”.

Best Regards,

Animesh Sharma