prestol Posted September 7, 2019 Share Posted September 7, 2019 Hello when creating a product with many selectable options, what php parameters should i set so the page does not timeout/stop loading max_execution_time = -1 max_input_time = -1 max_input_vars = -1 memory_limit = 6144 max_post_size = -1 max_file_uploads = -1 max_post_size = -1 anything else??? prestashop 1.7.6.1 php 7.2.22 Link to comment Share on other sites More sharing options...
musicmaster Posted September 10, 2019 Share Posted September 10, 2019 It is not that simple. Prestashop puts the information about the options in the webpage. So with many options it can become very big and slow. 1 Link to comment Share on other sites More sharing options...
prestol Posted September 26, 2019 Author Share Posted September 26, 2019 okay thans but how can solve it then Link to comment Share on other sites More sharing options...
musicmaster Posted September 26, 2019 Share Posted September 26, 2019 Normally there is javascript array in the product html that tells for each combination the price, the weight, etc. Not only is this array very big. It is also not indexed - so to find the right entry you may have to check hundreds or thousands of entries in the array. I know that some people solved this with Ajax. They replaced the code that looks into this array by some code that made an ajax call to some server side script that looks the info up in the database. I haven't seen code for this. So you need to develop it yourself. Maybe you can share so that other people can benefit. 1 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