Jump to content

Prevent to save customized data when attribute is selected


IndianW

Recommended Posts

Hi!

 

I'm new using prestashop and I'm having some troubles to make some changes.

 

I'm working in a glasses store that need to save the prescription info when the user wants prescription glasses. I've created two windows that changes with javascript. The first one is to buy non prescription glasses and the second that contains a customized area to save the values of the prescription glasses.

 

It works great, but when I save the info of the prescription glasses and I go back to the window of non-prescription glasses and I buy it keeps the info of the customized fields.

 

I've found the function postProcess in CartController. I guess that I have to work with this function and remove customized fields when I have non-prescription glasses, but I don't know how to do it.

 

This is the site and the glasses that I'm working with: http://oyamstudio.com/inicio/9-gafas-9.html

 

Thank you!

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...