Forms and WebForms pt2

The POC continues. As you may have noticed the solution I wrote about yesterday only worked sever side, no client side validation e.g. This can be fixed as well. First I added another method to my util class, to get the fake ControllerContext and refactored it, so you won’t need the Dummy controller. I just … Continue reading Forms and WebForms pt2

Forms and WebForms

So you have upgraded your WebForms site to EPiServer 9 because your customer would love to use the new Forms module. Of course you can’t as the new Forms module does not support WebForms, which yo may have overlooked, as I did. I personally don’t understand why it's not supported, as the CMS still supports … Continue reading Forms and WebForms

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

Using the new EPiServernotification API

As from EPiServer 9.4 you can make use of the notification api. It’s mainly used within the projects feature as far as I can tell, but I found another use for it. NOTE: It's still in beta. Imagine you have a scheduled job e.g. It does some important processing, e.g. sending order information to SAP … Continue reading Using the new EPiServernotification API

EPiCommerce in ReadOnly mode : Note to self

As of update 108, EPiServer Commerce can be “used” in readonly mode as well. Arild Henrichsen wrote a post while back about the how, what and why of readonly mode for the CMS part, and those things apply to Commerce as well I guess. Though with a shop in readonly mode … you will still … Continue reading EPiCommerce in ReadOnly mode : Note to self

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?

Use ENUM MetaField as property on your product/variation

Sometimes you may want to use an enum from Business Foundation on your product/variation. In my case the “Organization Customer Group” that can be set on an Organization. For this you need a custom “SelectManyAttribute” and a “SelectionFactory”. This attribute doe not do more than set the selection factory and the name of the enum … Continue reading Use ENUM MetaField as property on your product/variation

Remember me, (re)store visited pages and categories

I'm looking forward to the Profile Store in EPiServer, but in the mean time I want some information to be remembered. You can, of course, create your own persistent visitor groups, but who knows what will change when the Profile Store arrives. I just wanted the Visited Pages to be remembered, and perhaps the Visited … Continue reading Remember me, (re)store visited pages and categories

Schedule exchange rate updates in Commerce

I was poking around n Quicksilver and I found an interesting piece of code for adding exchange rates to your site. In Quicksilver it is done once, during initialization, so I decided to create a scheduled job for it as rates tend to change 🙂 Pluggable, so you can add your own provider. The scheduled … Continue reading Schedule exchange rate updates in Commerce