Login  Register

Re: Users - Virtual/Variant Product

Posted by Bsmithson on Mar 01, 2006; 8:19pm
URL: http://ofbiz.116.s1.nabble.com/Users-Virtual-Variant-Product-tp137707p137708.html

Virtual/Variant Product
I think this might help here is an example of one of my products.
I took out the "extra" options and just listed two(there are 9 different Sizes and almost 42 different colors so it is quite long other size).

<Product productId="whi-14000" productTypeId="FINISHED_GOOD" primaryProductCategoryId="FTops" productName="Unisex V-Neck Top" brandName="White Swan" internalName="whi-14000" description="Fabric: 65/35 Poplin with Soil Release" longDescription="To view the colors that are offered in this style click the image above." taxable="Y" chargeShipping="Y" autoCreateKeywords="Y" isVirtual="Y" isVariant="N" weight="0.25" weightUomId="WT_lb" requireInventory="N" salesDiscontinuationDate="" introductionDate="2006-02-03 12:00:00.1" createdDate="2001-05-13 12:00:00.1" createdByUserLogin="admin" lastModifiedDate="2006-02-05 12:00:00.1" lastModifiedByUserLogin="admin" />
<Product productId="whi-14000-S" productTypeId="FINISHED_GOOD" primaryProductCategoryId="FTops" productName="Unisex V-Neck Top - S" brandName="White Swan" internalName="whi-14000-S" description="Fabric: 65/35 Poplin with Soil Release" longDescription="To view the colors that are offered in this style click the image above." taxable="Y" chargeShipping="Y" autoCreateKeywords="Y" isVirtual="N" isVariant="Y" weight="0.25" weightUomId="WT_lb" requireInventory="N" salesDiscontinuationDate="" introductionDate="2006-02-03 12:00:00.1" createdDate="2001-05-13 12:00:00.1" createdByUserLogin="admin" lastModifiedDate="2006-02-05 12:00:00.1" lastModifiedByUserLogin="admin" />

<ProductPrice productId="whi-14000" productPricePurposeId="PURCHASE" productPriceTypeId="DEFAULT_PRICE" currencyUomId="USD" productStoreGroupId="_NA_" fromDate="2005-01-01 00:00:00.000" price="6.8" createdDate="2005-01-01 00:00:00.000" createdByUserLogin="admin" lastModifiedDate="2005-01-01 00:00:00.000" lastModifiedByUserLogin="admin" />

<ProductFeatureCategory productFeatureCategoryId="11000" description="Apparel" />

<ProductFeatureCategoryAppl productFeatureCategoryId="11000" productCategoryId="D301-2ndAllProducts" fromDate="2001-05-13 12:00:00.0 " />

<ProductFeature productFeatureId="11001" productFeatureCategoryId="11000" productFeatureTypeId="SIZE" description="Small" defaultSequenceNum="2" defaultAmount="" idCode="S" abbrev="S" />
<ProductFeature productFeatureId="11009" productFeatureCategoryId="11000" productFeatureTypeId="COLOR" description="Black - 15" defaultSequenceNum="2" defaultAmount="" idCode="15" abbrev="15" />

<ProductFeatureAppl productId="whi-14000" productFeatureId="11001" productFeatureApplTypeId="SELECTABLE_FEATURE" fromDate="2006-02-2 12:00:00.1" sequenceNum="1" />
<ProductFeatureAppl productId="whi-14000-S" productFeatureId="11001" productFeatureApplTypeId="STANDARD_FEATURE" fromDate="2006-02-2 12:00:00.1" sequenceNum="1" />
<ProductFeatureAppl productId="whi-14000-S" productFeatureId="11009" productFeatureApplTypeId="STANDARD_FEATURE" fromDate="2006-02-2 12:00:00.1" sequenceNum="2" />

<ProductAssoc fromDate="2006-02-2 12:00:00.1" productAssocTypeId="PRODUCT_VARIANT" productId="whi-14000" productIdTo="whi-14000-S" quantity="1.0" reason="" />

Note: I did not include ProductCategoryMember, ProductCategoryRollup or ProductCategory in this e-mail but they are present in the product file.

---
Brent


From: [hidden email] [mailto:[hidden email]] On Behalf Of Vinay Agarwal
Sent: Wednesday, March 01, 2006 10:59 AM
To: 'OFBiz Users / Usage Discussion'
Subject: Re: [OFBiz] Users - Virtual/Variant Product

The only thing I can think of is ProductAssoc.

 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Brent Smithson
Sent: Wednesday, March 01, 2006 9:46 AM
To: [hidden email]
Subject: [OFBiz] Users - Virtual/Variant Product

 

I am having an issue with setting up a Virtual/Variant Product

I have group of products that have the following options:
Size and Color (Size determines Color).

I setup:
Virtual product  "X" & Variant product "X-S"
All the Features and Colors have been setup already

ProductFeatureAppl is set to
Virtual Product  X to "SELECTABLE_FEATURE"  Small (11000)
Variant Product X-S to "STANDARD_FEATURE"  Small (11000)
Variant Product X-S to "STANDARD_FEATURE"  Color  (11001)

It looks like very thing works right EXCEPT when I add the product (after Selecting Size and Color) to the cart it doesn't carry over the "Color" just the Size. I looked through the demo data (WG-9943) and it looks like everything "matches up"… did I miss something?

Any help would be appreciated.
-Brent

 


 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users