Discussion:
[Erp5-dev] how to use variations in products and sale supplies
Bartek Gorny
2006-06-20 20:24:14 UTC
Permalink
Hi

I need help - spend many hours trying to figure it out: how to
properly assign base categories to product and sales supply, so as to
be able to use variations?

When I create a product and a sale supply related to it, then "price
variation axes" boxes are empty. If I manually
setVariationBaseCategoryList on a product, then I can choose "price
variation axes" in both the product and its related sale supply, but
pricing matrixboxes do not show up, and the predicate subobjects are
not created. Whereas setting quantity step works as expected -
predicates are created and matrixboxes are in place.

Is it a bug, or is this feature turned off, or am I doing something wrong?

Thanks for help
Bartek
--
"Software is largely a service industry operating under the persistent
but unfounded delusion that it is a manufacturing industry."
Eric S.Raymond, "The Magic Cauldron"
Romain Courteaud
2006-06-21 11:28:55 UTC
Permalink
Post by Bartek Gorny
Hi
Hi Bartek,
Post by Bartek Gorny
I need help - spend many hours trying to figure it out: how to
properly assign base categories to product and sales supply, so as to
be able to use variations?
When I create a product and a sale supply related to it, then "price
variation axes" boxes are empty. If I manually
setVariationBaseCategoryList on a product, then I can choose "price
variation axes" in both the product and its related sale supply, but
pricing matrixboxes do not show up, and the predicate subobjects are
not created. Whereas setting quantity step works as expected -
predicates are created and matrixboxes are in place.
Is it a bug, or is this feature turned off, or am I doing something wrong?
If you want to use variations in the system, you have to:
- define the variations axes on the resource level, by using
setVariationBaseCategoryList on your product (example:
product.setVariationBaseCategoryList([colour]) )
- then, define the available variations on the resource level (example:
product.setSizeList(['blue', 'red'])
- finally, on sale supply line, the matrixbox will now display 'blue' and
'red' in its range if you select 'size' as a price variation axe.

Romain

Loading...