Episerver commerce is an Episerver add-on that helps you create, manage, measure and maintain an online store. In these lessons, you will learn the basics of using Episerver commerce. By the end, you will understand installation, general store settings, adding and editing products, order management.
We had a requirement on a project to pre-populate a commerce test customer for our dev environment. Whenever the website was first loaded, a test user should be pre-added. In our scenario, the customer had a number of extra properties like had signe[...]
Hey, folks. When we work with the basket in Episerver commerce, it is quite likely you may need to store some custom data against a line item. This might be the image of the product, the discount applied to it etc... In commerce manager you can do th[...]
When you use commerce after someone signs-up using the membership provider, you may want to create your own commerce user to store custom data. For example, on one project when you signed up, you had to supply your date of birth and a newsletter opt[...]
If you need to get the root catalogue node in Episerver commerce, you can use the ReferenceConverter API to get a link to the catalogues defined in your project, as follow.
var referenceConverter = ServiceLocator.Current.GetInstance<ReferenceConve[...]
A key aspect of many websites is building an on-line community. In today's guide, I'm going to quickly cover how to get your customer information from Episerver commerce.
Getting a user with the Membership User
The easiest way to get a user is to use[...]
I had a requirement in one of my Epi-Commerce projects that whenever a website visitor signed up to the website and created an account, that account was locked to the default currency for their current location. This could not be changed as it could[...]
Now that Episerver has pushed everything to use Nuget, installing Episerver commerce is extremely easy. First, you need to install the Episerver Visual Studio project extension. http://world.episerver.com/documentation/Items/Installation-Instruction[...]
I was recently doing some product content migration for a recent project and part of the import data also included the products metadata/SEO properties for the web page like title, description and keywords tags. I started my import job and, about hal[...]
When we recently upgraded to Episerver Commerce Manager to Commerce 8 and whenever we tried to view commerce manager, we kept getting a 'Virtual path to protected packages is invalid: ''.' error The fix was to remove all traces of EPiServer.Packagin[...]
NOTE: THIS POST WAS WRITTEN WHEN PROMOTIONS WAS IN BETA. THE CODE CHANGED SLIGHTLY WHEN IT WAS REALISED INTO PRODUCTION With the release of Episerver commerce 8.12.0 comes a new beta feature for managing promotions and orders. From my initial look, t[...]
In my previous post 'The New Order Repository In Commerce' I went through some of the benefits of using the new order repository that comes with Episerver commerce 8.12.0. NOTE: THIS POST WAS WRITTEN WHEN PROMOTIONS WAS IN BETA. THE CODE CHANGED SLIG[...]
I've blogged previously about Adding a custom field into the commerce customer object via code. After a recent upgrade to commerce, our DataContext.Current.MetaClasses always returned null in our Initialization module until the commerce migration sc[...]
In today's guide, we're going to cover how to get products and variants from Episerver commerce to use on your website.
Getting A Product/Variant Using The Code
If you want to simply get a reference to a product and you know the catalogue or product [...]
In today's guide, we will talk about the Episerver Commerce API, specifically, surrounding parent items. If you need to get the product or the node that a variant is associated with then this is for you. In this example, I'll be using this catalogu[...]
In previous articles, I've talked about Using The New Promotions Engine in Episerver Commerce and The New Order Repository In Commerce. Also, don't forget you need to read this as well How To Enable Beta Features In Episerver. That covers a lot of th[...]
When you start working with Episerver commerce, you might become overwhelmed with the number of API's available to you. Finding the right API to do the task at hand can be a frustrating and a time-consuming exercise at times. The Episerver SDK does[...]
This is another short and simple How To guide. In the latest version of Episerver commerce, we have a new interface available to us called the IOrderRepository, we get access to the order repository the standard way by using a Service Locator or the [...]
When we work with the basket in commerce, storing multiple custom objects against a line item can be tricky. We can extend line item to have as many custom single properties as you require, but we do not have the option to create new arrays or lists [...]
I have previously written about how to extend the LineItem class in this article Adding Custom MetaData to the LineItem Class in Episerver Commerce via Code
I had a question recently about how to do the same thing for the Cart. The code to add a cu[...]
When you are working with content within the PIM, you may want to create multiple associations from the products and variants to different types of node. Before we get into the code, I should probably mention that an association in Episerver commerc[...]
Trying to create, update and save objects in commerce can cause quite a lot of confusion. The confusion I generally see around the usage of Episerver commerce API is people using the wrong one and then wondering why it didn't work. In today's guide[...]
I've talked previously about Adding a custom field into the commerce customer object via code, Adding Custom MetaData to the LineItem Class in Episerver Commerce via Code and Adding Custom MetaData to the Cart Class in Episerver Commerce via Code.
When we work with Episerver and Episerver commerce, all the data we work with is stored within two back-end databases. When we build projects, you should never write any form of code that talks to the database directly. Everything should always go v[...]
In today's guide, I'm going to cover the build in Episerver purchase order object. For those new to commerce, the purchase order is the object where you save all the information about the order at the place of purchase. After the user has paid, all[...]
There are certain circumstances when working with Episerver or Episerver commerce when you need to come off the beaten track and interact with the HTTP context a bit more closely. For example, if you need to create a custom ActionFilterAttribute, or[...]
You might not have come across the term 'trust signal' before but you will have seen it used countless times on most major e-commerce websites. A trust signal is an area or feature on your website that helps builds trust with your website visitors. I[...]
Creating and planning your first e-commerce project can be a daunting thought. E-commerce websites are complex and in general, an e-commerce website will have a lot more moving parts and things to consider compared to a standard website. The primary [...]
A common requirement on an Episerver Commerce project, is to hook into the commerce pages events handler, for example, you may need to do things like:
Call an additional search index when a new game/variants is published
Call a third party servi[...]
If you want to import products/variants/catalog nodes into EPiserver commerce then one option that will be of interest to you will be the CatalogImportExport -> Import() method within the Mediachase.Commerce assembly.
A common example of when you [...]
In an Episerver e-commerce website, markets are the way you can split up your PIM to different demographics. Obviously, all companies are different and each has its own business process and its own unique sales funnels. This means that the exact cr[...]
If you look at the Episerver variant, you will see a MarketFilter property, however, if you look within the Properties collection on the object you'll also see a property associated with the variant called _ExcludedCatalogEntryMarkets. In today's po[...]