Jump to content

Test sur valeur des champs de personalisation (Prestashop 1.5)


Recommended Posts

Hello to all,


For a prestashop 1.5, all my products have 2 mandatory personalization fields.

on these fields, I am trying to put:

- either to limit the customers entries to: numbers only (1 number after the coma), limited to min and max fixed values

- either to check the entries on these fields before showing the cart to the customer, once he has clic on the "add to cart" button. If the fields do not fit the requirement (ie: numbers only, limited to min and max fixed values); If the values do not fit, then an error message will appear instead of the summary of the cart (just like is working the "cartcontroler.php" check on the mandatory fields of customization.


Being a newbee in coding (both php and js) if anyone could help.


Thank you in advance

Best regards

Edited by PJ7 (see edit history)
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...