Jump to content

How to configure Product Attributes / Combinations based on weight?


Recommended Posts

The following scenario:

 

We buy a product based on weight in 25 kg bags, which is repacked and sold by us in quantities of 100 g, 500 g and 1000 g.

 

We are using Prestashop's advanced stock management, and the plan is to put the product in stock with it's total weight on delivery (let's say we receive 500 kg and add it to our stock as such), the repacking is done on each sale, which means the product is not listed in stock in its individual repacked quantities.

 

I have added the product attribute "Quantity" with three values (100 g, 500 g and 1000 g), but now I'm stuck, because I don't want to have to put the product in the three repacked sizes on stock, but only the total amount of the product, and on a sale of one of the two sizes the proper amount has to be subtracted from the total amount in stock.

 

So for example product in stock: 500 kg

 

Customer buys three pieces of the 1000 g bag -> 3 kg have to be subtracted from stock

Customer buys one piece of 500 g bag -> 0.5 kg has to be subtracted from stock

 

Now I am confused on how to properly implement that behavior.

 

Any ideas?

Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...

Any further updates?

 

I tried this and it works

 

  • Go to Catalog > Attributes and Values
  • Create a new Attribute (e.g. Metal type)
  • Create new values for that attribute: Gold, Silver
  • Now go to Catalog > Products and choose your product
  • Choose the Combination tab and from there, you can use the Product combinations generator and specify everything you need: price, reference, weight.

Scratch that, it doesn't allow variable weights with single stock option.

Edited by MrPandaPants (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

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