The forum is a free service supported by community members. Please consider opening a support ticket if you need timely help.
Prev Go to previous topic
Next Go to next topic
Extensions
2 Replies
|
Sort:
|
|
You are not authorized to post a reply.
|
|
New Member
Posts:
27 Oct 2010 03:14 PM |
|
Hi,
Using the extensions sounds like a usefull feature, except I can't find an example of how they show up in the xml data model for both the product and product varient. I have tried a few guesses and failed, can you provide an example of if you add somethgin to the extention area how it shows up in the xml? (or point me to where we can see the xml after we add info the the extensions area. (FYI, not super high priority, just need for a modification I'm envisioning in a few weeks)
Thanks!
Rob
|
|
0 |
|
Veteran Member
Posts:2956
28 Oct 2010 05:01 PM |
|
Hi,
There's a few ways to make use of extension data in products and product variants. In the simplest form, you can use it just to hold extra attributes about a product specific to your business. The other way is to use it in your XSL transform. Currently, in the 1.2 version, the extension data is published for sales promotion rules.
Suppose your business sells a seasonal product and you had the following extension data:
<data>
<seasonal>true</seasonal>
</data>
Then on runtime, the extension data shows up in the XML for your promotion transform rule. Your promotion rule can in turn make use of this information to offer the discount only for seasonal products.
<in>
<product>
<name>Product1</name>
<categories>
<categoryID>2</categoryID>
<categoryPath>2</categoryPath>
</categories>
<productVariant>
<productID>1</productID>
<productVariantID>8</productVariantID>
<promotionPrice />
<name>Default</name>
<msrp />
<productCost />
<sku></sku>
<manufacturerID />
<distributorID />
<price>10.0000</price>
<requireShipping>true</requireShipping>
<recurringIntervalType>1</recurringIntervalType>
<recurringInterval>2</recurringInterval>
<extension>
<data>
<seasonal>true</seasonal>
</data>
</extension>
</productVariant>
</product>
</in>
|
|
0 |
|
New Member
Posts:
28 Oct 2010 05:11 PM |
|
Good info and example. If your prioritizing your future enhancements, it would be usefull for things like calculate shipping and handling (my 2 cents). Thanks as always.
|
|
0 |
|
You are not authorized to post a reply. |
|