cataleptic Posted December 2, 2009 Share Posted December 2, 2009 Hi all,I have been here once before, but this time I have a problem.I have a client who needs each attribute to have its own quantity, so when the attribute is ordered it will get deducted from the database.I made this in oscommerce for the customer but the quantity and shipping would not work at all.The final weight of the attribute plus quantity must be added to final total for payment.I do not know how prestashop works but I hope there is something out there or someone who can help me.Thanks in advance Link to comment Share on other sites More sharing options...
rocky Posted December 3, 2009 Share Posted December 3, 2009 I thought this is already how Prestashop works. When you go to the "3. Combinations" tab on the product editor, then go to the Product Combinations Generator, you can enter a default quantity, then after generating the attributes, you can modify the quantity of individual combinations. Were you wanting it so that when an attribute it purchased, it is automatically deducted from every combinations containing that attribute? Link to comment Share on other sites More sharing options...
cataleptic Posted December 3, 2009 Author Share Posted December 3, 2009 Hi,yes I want the attribute's quantity to be deducted.So a Product: Almondshas the following attributes -> 1kg qty = 10-> 5kg qty = 10-> 10kg qty = 10and someone buys a packet of 1kg I need the quantity as 9Thanks Link to comment Share on other sites More sharing options...
rocky Posted December 3, 2009 Share Posted December 3, 2009 I'm not sure if I'm understanding right, but I think Prestashop already does this. If you create a product Almond with attributes 1kg, 5kg, 10kg and give them all a quantity of 10 using the Product Combinations Generator, when someone orders 1kg of almonds, the quantities will become:1kg qty = 95kg qty = 1010kg qty = 10Is the way Prestashop currently does it not the way you want? Link to comment Share on other sites More sharing options...
cataleptic Posted December 4, 2009 Author Share Posted December 4, 2009 Hi,I have sent those instructions to my client and he has come back to me with this:This is not a adequate solution as this does not allow me to determine the stock I have in store. On the bases of the example that you have below, each size of almond box contains a different number of packets.100g qty = has 20 packets in a box400g qty = Has 10 in a box1kg qty = Has 6 in a box This does not allow for the correct stock in store solution. Link to comment Share on other sites More sharing options...
rocky Posted December 5, 2009 Share Posted December 5, 2009 I see what you are trying to do now. The attributes won't be deducted properly if you set it up that way. You would have to set it up so qty 1 = 1 packet, qty 2 = 2 packets, etc, then it will work properly. I had a look at the Pack option, but couldn't get it to work. You might have to modify product.tpl to change the quantity field into a dropdown box with text "100g" and value "20", text "400g" and value "10", etc. Link to comment Share on other sites More sharing options...
cataleptic Posted December 6, 2009 Author Share Posted December 6, 2009 would that work? as the quantity will not be removed or added correctly.Is there a modification that can buy to do this? Link to comment Share on other sites More sharing options...
rocky Posted December 6, 2009 Share Posted December 6, 2009 It should work if your product's quantity is specified as the number of packets left. I'm not aware of any modules that would be useful in this situation. Unless I've misunderstood your requirements, I don't think it is necessary to do any modification other than changing the quantity to a dropdown for the product. You don't need any attributes after doing that. Link to comment Share on other sites More sharing options...
cataleptic Posted December 6, 2009 Author Share Posted December 6, 2009 so I just add a dropdown with grams as the label, and the value to a quantity?The problem is not everything is sold as grams, kgs alot of products will just be packets Link to comment Share on other sites More sharing options...
rocky Posted December 7, 2009 Share Posted December 7, 2009 Sorry, I just realised that I misread one of your previous posts. I think it would be easiest if you just added the three almond sizes as different products. Otherwise, you will have to go through each of the generated attributes and re-enter the appropriate quantity for each one, which would be very time-consuming. Link to comment Share on other sites More sharing options...
cataleptic Posted December 7, 2009 Author Share Posted December 7, 2009 Hi, thanks for your help, the customer started to confuse me. It is working how you described.But now I need to know how to upload the product details from a excel document. :'( Link to comment Share on other sites More sharing options...
Mallee Boy Posted December 23, 2010 Share Posted December 23, 2010 I thought this is already how Prestashop works. When you go to the "3. Combinations" tab on the product editor, then go to the Product Combinations Generator, you can enter a default quantity, then after generating the attributes, you can modify the quantity of individual combinations. Were you wanting it so that when an attribute it purchased, it is automatically deducted from every combinations containing that attribute? Rocky - this is what I want. I have 10 chess boards which could be bought in combination with any number of chess pieces. If a customer buys a chess board with his pieces i need to see that the total number of chess boards available has gone down by one.Is this possible? Link to comment Share on other sites More sharing options...
rocky Posted December 23, 2010 Share Posted December 23, 2010 No, PrestaShop doesn't have this feature. It wouldn't be easy to do either. Link to comment Share on other sites More sharing options...
Mallee Boy Posted December 24, 2010 Share Posted December 24, 2010 Thanks, Rocky (and welcome back). Your module for attributes looked like it came close so i thought i would ask. You can ignore any other post of mine on this subject. I will have to live without that little piece of luxury. 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