koening Posted April 27, 2017 Share Posted April 27, 2017 (edited) HI I set file upload field in product page as required. How can I change required to non-required when user select a checkbox on product page? P.S I have one more question. In which variable is stored information that a file is uploaded. Edited April 27, 2017 by koening (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 27, 2017 Share Posted April 27, 2017 it requires core changes, fact that file is required and whole engine to check if there are files is a part of prestashop core, so it is necessary to alter the core. whole modification depends on how and what checkbox you added, this checkbox must be stored somewhere (information if it is selected or not) only then it will be possible to build feature like this. 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