sgtbash Posted March 17, 2010 Share Posted March 17, 2010 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 SColour: Red#Size MColour: Red#Size LColour: Blue#Size SColour: Blue#Size MColour: Blue#Size LColour: Green#Size SColour: Green#Size MColour: Green#Size LThis 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 ABut i have 3 main selections (base tobaccos), each with 7 weight optionsthen17 different flavor options, each with 8 different weight optionsthenthe 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 meshThis 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 oneThanks Prestashoppers & Prestacoders!Dan Link to comment Share on other sites More sharing options...
sgtbash Posted March 18, 2010 Author Share Posted March 18, 2010 Bump....No one have any ideas?Surely there must be a section of code somewhere that stops PS from checking for an indevidual item...Dan Link to comment Share on other sites More sharing options...
AffordableFiberOptics Posted March 18, 2010 Share Posted March 18, 2010 I'd like to see an answer to that one as well.Thanks.Patrick Link to comment Share on other sites More sharing options...
tomerg3 Posted March 18, 2010 Share Posted March 18, 2010 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 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