Jump to content

Product Personalisation & Over 18 CheckBox


Recommended Posts

Hi all,

I have 2 things I need help with.

 

1. PRODUCT PERSONALISATION

My website has products which require text for personalisation.

However, I want these to be mandatory (the item can't be added to the cart until the user has entered their text) and limited to a certain number of characters. How can I achieve this?

 

2. OVER 18 CHECKBOX

I have several gifts that have alcohol and need a checkbox to confirm the user is over 18.

The product is not available unless the user ticks the box.

 

Have these been done before and is there a guide/tutorial in doing this?

 

 

Link to comment
Share on other sites

Hi,

 

when editing the customization settings, you can set the fields as required. And when the user tries to add the product to the cart without filling those fields the shop will ask.

 

Limiting the length would require some changes in the template, for example adding the maxlength attribute to customization textareas in product.tpl, but that will work for all of them and with one fixed value.

  • Like 1
Link to comment
Share on other sites

Hi,

 

when editing the customization settings, you can set the fields as required. And when the user tries to add the product to the cart without filling those fields the shop will ask.

 

Limiting the length would require some changes in the template, for example adding the maxlength attribute to customization textareas in product.tpl, but that will work for all of them and with one fixed value.

 

Thank you for your reply.

It works perfectly :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...