Temporarily disable the catalogitem change manager

When you run large imports you might run into the issue that the "Change log auto truncate job" will timeout because the tblActivityLog has become very large. When that happens you can manually run a stored procedure on the DB as described here. To prevent it from happening, as from EPiServer.Commerce 11.6.0, you can disable … Continue reading Temporarily disable the catalogitem change manager

Buy a bundle get a discount

When giving a talk at the Serbia meetup for Episerver last Thursday, about setting up / creating your catalog (models), I got the question if it was possible to give a discount on a bundle. This is not possible out of the box but can be easily done with a custom promotion. Nothing special going … Continue reading Buy a bundle get a discount

A custom coupon code provider

Imagine you have a huge mailing campaign with personalized coupon codes for each customer. You would have a hard time validating those coupon codes, as a promotion can hold only one coupon code. There is a way to do that though, with a custom coupon filter. First I created a base class to use for … Continue reading A custom coupon code provider

Add an order dropdown to Forms

I wanted an adjustable contact form with a dropdown containing the order numbers of the current user. With a custom data feed this is very easy accomplished within the forms module. See this post for more information about data feeds. For the LoadItems implementation you can use the following: Now you will be able to … Continue reading Add an order dropdown to Forms

Limit the total amount of discounts applied

Sometimes you're in need of some business rules when applying promotions. You can do this by overriding the calculation of the discounts, but that could be a lot of work. For a simple rule, like "the total amount of discounts can't be more than half of the order total" you could use a different approach. … Continue reading Limit the total amount of discounts applied

Buy products, get gift

In the "configuring promotions" lab at Ascend 2017 in Vegas, there was an exercise I created for a custom promotion. It's a fairly easy promotion: to be able to give a give a gift on an entry level, instead of on an order level. You can find the full code to the promotion in this … Continue reading Buy products, get gift

Smart recommendations for Commerce

Waiting for such things as the profile store? Don’t, want to, use Find? Related items in Commerce to basic and not smart enough? The Recommendations API from Microsoft Cognitive Services may help out if you want to show your visitors some smart recommendations. And the nice thing is that 10.000 transactions a month are free. … Continue reading Smart recommendations for Commerce

Getting all products a promotion applies to

If you want to create a landing page for your promotion, you might want to display all items your promotion applies to. This is one way you might do it: In a Promotion (PromotionData) you have a DiscountItems property. This contains ContentReferences to all items your Promotion applies to. This can be ProductContent, VariationContent or … Continue reading Getting all products a promotion applies to

New Promotions and their Banners

You may have noticed that the new promotion system within EPiServer Commerce is finally out of beta. Besides all the obvious advantages there is a little treasure in there as well. In the old days we used to create custom blocks for displaying a banner for a promotion. Or we used some other way. This … Continue reading New Promotions and their Banners

POC: Upgrade EPiCommerce without losing orders?

So you want to update your EPiServer Commerce site, but you don’t want to lose orders. That’s still not really possible, a little downtime is still needed, or I missed something. So I did a little POC. I created a “messaging” service. You can send a cart to it. The cart will be put into … Continue reading POC: Upgrade EPiCommerce without losing orders?