Filter your commerce campaigns for access

A customer wanted to have access rights on the campaigns in Commerce, so marketing managers for one market could not make changes to the campaigns for other markets. As this is not possible out of the box, I tried to find another way. I remembered a post by David Knipe about restricting access to markets … Continue reading Filter your commerce campaigns for access

Advertisements

Designing your Commerce catalog

I had the pleasure of giving a talk at Ascend UK and Ascend Benelux about designing your Commerce catalog. For those who attended, and for those who didn't and would like a quick primer, you can download the slides of the presentation here.

Use the new tracking integration packages of Episerver

Since update 187 there are two new integration packages for tracking user data. One for CMS and one for Commerce You can use these packages to send tracking data to your own systems: to application insights e.g. or to the Azure Recommendations API. For Commerce you can add an attribute [CommerceTracking] to a method or … Continue reading Use the new tracking integration packages of Episerver

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

Fixing “tax total” differences

Sometimes you will need / want to display the price including tax on the line items of your cart. When you do this, you may see differences in the totals, using the calculators in Commerce, between the sum of the prices in your cart as they are displayed and the sum from the calculator. This … Continue reading Fixing “tax total” differences

Smart recommendations for Commerce PT2

A little while ago I wrote a post about how you could use the  Recommendations API from Microsoft Cognitive Services to give your visitors smart recommendations. This time, as promised, I will go into the details of my implementation a bit. I must say that I am quite content with the results of the recommendations … Continue reading Smart recommendations for Commerce PT2