Sitefinity 6.1 Ecommerce API changes
Telerik.Sitefinity.Modules.Ecommerce.Orders.Web.UI.ShoppingCart.cs
Two obsolete properties are removed since they create issues when pages are duplicated. The IDs which link between pages are correctly copied however the specific JSON Data object still contains old data that you don’t need.
[Obsolete(
"Use CheckoutPageId instead"
)]
public
string
CheckoutData {
get
;
set
; }
[Obsolete(
"Use ContinueShoppingPageId instead"
)]
public
string
ContinueShoppingData {
get
;
set
; }
Telerik.Sitefinity.Modules.Ecommerce.Catalog.Web.UI.Args.ProductVariationChangedEventArgs.cs
The SelectedProductVariationDetails property is marked as obsolete and the setter is removed. Use the SelectedProductVariation property instead.
public
List<ProductVariationDetail> SelectedProductVariationDetails {
get
;
set
;}
Telerik.Sitefinity.Ecommerce.Catalog.Model.OptionsDetails.cs
The ProductVariationDetails property is marked as obsolete and the setter is removed. Please use OptionsDetails.ProductVariation and OptionsDetails.ProductAttributeValues instead.
public
List<ProductVariationDetail> ProductVariationDetails {
get
;
set
;}
Single Product Details Template
A new control for “additional charge” is added and the additional charge for a variation is no longer shown in the dropdown. Because of that each client should upgrade his custom templates to contain the following in the template:
<
sf:ProductAdditionalChargeControl
id
=
"productAdditionalChargeControl"
ProductItem='<%# Page.GetDataItem() %>' runat="server" />
Telerik.Sitefinity.Modules.Ecommerce.Catalog.Model.ProductVariation.cs
The property Variant before was holding a JSON serialized AttributeValuePair object and now it holds a list of AttributeValuePair objects so any custom code that is using this Variant field should be updated.
[DataMember]
public
string
Variant {
get
;
set
;}
Images on Product Variations
Since Sitefinity CMS 6.2 product variations can have dedicated images. The images back-end functionality works and looks exactly like the images feature for products. On the front-end the variation images are shown on the product detail page after selection of attributes where the possible variations list may contains variations with custom images. The variation images are shown on the product detail page in front of the default product images.
Example :
Before selecting an attribute/variation:

After selecting attribute/variation:

Product Detail Page changes
Related to variations change the product detail page Add to Cart functionality was slightly changed as follows:
- Products without variations
- The add to cart is enabled when you can buy the product
- The add to cart is disabled when the product is out of stock
- You can still make the button “hidden” instead of “disabled” by setting the advanced property on the product list widget called “HideAddToCartWhenOutOfStock” to true.
- Product with variations
- Add to cart is enabled initially or when you can buy the product. If you hit the button without a variation is selected an error message saying “Please select from available product options”
- Add to cart button is disabled when the selected variation is out of stock
- Additional price is shown next to the availability ones a variation is selected instead of being shown in the drop-down.
- You can still make the button “hidden” instead of “disabled” by setting the advanced property on the product list widget called “HideAddToCartWhenOutOfStock” to true.