Jump to content

Mix Your Own Tobacco - Complex Attribute Structuring


Recommended Posts

Hi everyone, I'm developing a site for a local tobacconist shop and one criteria is that there is a 'Mix your own tobacco' option.

Initially I though no problemo! I'll set up a product that as you add different flavours in the list, the price and weight goes up. Simple!

I'm familiar with importing CSV's & attributes and wouldn't think I would have had a problem; although PS uses the attributes in a 'down to single product' way where if attribute a is 1, b is 2, c is 3 - that is Product 123 and not the product with 1, 2 and 3 added to it.

I'ts hard to explain, but in other shops ive got T-shirts in different colours and sizes.

To get this to work successfully I have a large list that looks like this:

Colour: Red#Size S
Colour: Red#Size M
Colour: Red#Size L
Colour: Blue#Size S
Colour: Blue#Size M
Colour: Blue#Size L
Colour: Green#Size S
Colour: Green#Size M
Colour: Green#Size L

This then enables me to have a stock value against each item and it works great!

What i need to do for this project is have the initial item, starting at £0 and as users change attributes the price and weight goes up (as they add ingredients and flavors to the tobacco mix)

I'd do it the same as the t-shirts, if there were only 2 variables like size and colour as the 'option mesh' is not that large (Option A x Option B = Option Mesh / 3 Colours & 3 Sizes = 9 Options in the mesh - the above scenario)

Add 2 prints into this and you get a dramatically different option mesh...
3 Colours x 3 Sizes X 2 Prints = 18 products in the mesh and 18 lines in the CSV that look like this:
Colour: Blue#Size S#Print A

But i have 3 main selections (base tobaccos), each with 7 weight options
then
17 different flavor options, each with 8 different weight options
then
the option of adding an extra dark to the mix to make it stronger, again with 8 weight options.

I cant even work out the math to find out how many options i would need but i know it will be a LOT!
Something like: 3x7x17x8x8 = 22848 products in the mesh

This brings me to my conclusion....

Is there any way I can get prestashop to not need an end attribute product, and just take the different values and add them up as it goes along.

Any input would be greatly appreciated as I'm stumped on this one

Thanks Prestashoppers & Prestacoders!

Dan

Link to comment
Share on other sites

You cannot do it with the current prestashop attributes, having that many combinations will cause memory errors much sooner (sometimesbas low as a couple of thousands).

You really have 2 options (3 if you include not using Prestashop)

1) customize your code to bypass the prestashop attributes.

2) use this http://www.prestashop.com/forums/viewthread/47363/

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