IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
This article contains changes in backward compatibility in the Sitefinity CMS 5.3 release. Here you can find the following:
Read the whole article for detailed information about each of the changes.
New inventory features are added to the product. A couple of methods that were previously marked as obsolete in Sitefinity CMS 5.1 have been removed. The methods are the following:
A new feature has been added to the discounts. It allows you to track the usage of discounts. In the upgrade process all existing discounts will be converted to be used as unlimited. If you have any discounts that were not upgraded, you can use the following code snippet to upgrade them:
var discounts = ordersManager.GetDiscounts().Where(d => d.IsActive);
foreach
(var discount
in
discounts)
{
if
(discount.Usage == 0 && discount.DiscountUsed == 0)
discount.Usage = -1;
//Set usage to maximum
}
ordersManager.SaveChanges();
For more information about discounts, read the For developers: Discounts.
The following methods have been removed from the OrderCheckout class:
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important