Jump to content

Products Combination Generator - timing out with lots of variables?


zzzmaillists

Recommended Posts

I am new here :-) and love PrestaShop which ive just found

 

Thought i would try building my first site, a pizza place for my friend

 

but with 5 attributes  (size, Base , extra toppings 1, extra toppings 2 and extra toppings 3 )  and lots of pizza toppings the site doesn't seem to be able to cope as if when I use too many variables it hangs and can't process them?

Am i going about the set up the wrong way?

 

If i do less variables its OK, but each topping has 25 vegetables

 

Many Thanks for any help !! :)

 

 

Link to comment
Share on other sites

zzz,

The problem indeed here is amount of variations. For each combination, Prestashop keeps some records, like quantity, the specifics of the variation etc. When having size*base*extra1*extra2*extra3 = 3*25*25*25*25  = 1171875 variations.

 

 

Some possible options:

1) Make each base a different product. This will already reduce the 1171875 back to 46,875 variations (Still a lot, though). This may make it (just barely) working for you.

2) There is a module Attribute Wizard pro from forum member tomerg3, which changes the way attributes are defined. This way, more attributes won't give problems with million-multiple variations. Not cheap, but most probably gives you a good solution to the problem. Maybe give it a look

 

3) Create some extra Product properties + DB fields and make some special purpose code that will let you choose the toppings. May take some time to develop though, so check if i the end option 2 is not cheaper...

 

My 2 cents,

pascal.

  • Like 2
Link to comment
Share on other sites

HI Pascal

Thankyou for your kind reply - I hope you are well  :)

 

Some good ideas in your reply, some people mention the php.ini file or does that not make a difference because of the size
min has :

  • max_execution_time = 30
  • max_input_time = 60
  • memory_limit = 128M
  • upload_max_filesize = 20M
  • post_max_size = 24M
  • max_input_vars = 4000
 
in it !

 

I will check out the module but it looks quite expensive, i did try woocommerce but ran into the same "timing out" issue

I thought a pizza place with:

 

Sizes: 9" 12" and 16

Bases: normal , garlic, peri peri , BBQ, Chilli

Toppings 1 : No Extra Toppings | White Onions | Red Onions | Peppers | Green Olives | Sweetcorn | Tomatoes | Jalapenos | Fresh Chillies | Spinach | Pineapple | Rocket | Coriander | Basil | Capers | Meatballs | Ham | Chicken | Tandoori Chicken | BBQ Chicken | Minced Beed | Tuna | Turkey Rashers | Cheese

Toppings 2 : No Extra Toppings | White Onions | Red Onions | Peppers | Green Olives | Sweetcorn | Tomatoes | Jalapenos | Fresh Chillies | Spinach | Pineapple | Rocket | Coriander | Basil | Capers | Meatballs | Ham | Chicken | Tandoori Chicken | BBQ Chicken | Minced Beed | Tuna | Turkey Rashers | Cheese

Toppings 3: No Extra Toppings | White Onions | Red Onions | Peppers | Green Olives | Sweetcorn | Tomatoes | Jalapenos | Fresh Chillies | Spinach | Pineapple | Rocket | Coriander | Basil | Capers | Meatballs | Ham | Chicken | Tandoori Chicken | BBQ Chicken | Minced Beed | Tuna | Turkey Rashers | Cheese 

 

options would be easier to make ! I was wanting it to look like this:

 

http://www.pizzaandcolonglands.co.uk/index.php?page=shop.browse&category_id=1&option=com_virtuemart&Itemid=1&vmcchk=1&Itemid=1

 

PrestaShop is really cool, looks really nice in its vanilla flavour,  i really want to invest in this and spend some money on premium options !

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