Y
Y
Yura Khlyan2016-02-22 17:29:04
Django
Yura Khlyan, 2016-02-22 17:29:04

How to implement different volumes for 1 product?

Good day.
I am making a store and I need to implement different volumes for one product. Eg. 100 ml, 500 ml, 1 liter, etc. The product page should have a drop-down menu to select the desired option.
There is an idea to make a separate product for each size. But how then on the product page, in this selection menu, to show the rest of the variations of this product?
========UPD========
All product information is stored in the Product model. And all prices are in the StockRecord model. One product can have several StockRecords. This is due to the fact that there are 5 sites that are on the same database. And on different sites there may be different prices (StockRecords)
Thank you in advance for your help.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Rsa97, 2016-02-22
@Rsa97

Related packaging table

E
entermix, 2016-02-22
@entermix

Something like this:

products
id, name, description, ...

product_types
id, product_id, name, price, ...

S
sim3x, 2016-02-22
@sim3x

Here it is better to agree with the customer, as he may have his own experience and thoughts about keeping sales statistics and other things that you did not immediately ask or did not specify

Shop
  name

Product:
  name

StockUnit
  name
  size

StockUnitInShop
  sku
  count_in_shop
  product = FK(Product)
  shop = FK(Shop)

O
Oscar Django, 2016-02-22
@winordie

You already have it implemented in Oscar.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question