Kulik Design Posted May 17 Share Posted May 17 (edited) Hi all, I've run into a situation. I have products that may or may not have customization (personalization) and said customization includes an up charge. I want to include/not include the Customization section based on the customer choice. My thought was combo product with custom/no custom attribute with appropriate up-charge on custom. Then with a hook on the product page check $params do the logic and set is_customizable to either true or false. My assumption is the cart will handle the rest as far as showing or hiding the customization section, validation (is required) and storing the values. Using this code: $params["product"]->product["is_customizable"] = false; However when I try to set that value I get an error "Indirect modification of overloaded property". My question, I may be down a rabbit hole here; How would it be best to go about this? I hope to keep the solution contained in a custom module I wrote. Edit: I'm working in ver 8 Edited May 17 by Kulik Design add prestashop version (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now