Jump to content

Product Combination with 2200 options, prestashop timeout/stop loading

Recommended Posts


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


php 7.2.22

Share this post

Link to post
Share on other sites

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.

  • Confused 1

Share this post

Link to post
Share on other sites

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.

  • Thanks 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More