How to Clear Redis Cache Keys In Code for Sitecore Commerce Entities

How to Clear Redis Cache Keys In Code for Sitecore Commerce Entities

A couple of weeks ago Sitecore Experience Commerce 10.2 has been released adding support for new commands in code to clear keys in cache stores managed with the Redis cache provider. Unfortunately the commerce website of one of my clients is on a previous version of the platform, Sitecore Experience Commerce 9.3, and these new commands are not available. In this blog post I describe how to implement a custom solution using the StackExchange.Redis library to clear commerce Redis cache keys via code.

CONTINUE READING

How to Adjust the SameSite Attribute of the Authentication Cookie in a Sitecore Commerce Solution with a Federated Payment Provider

How to Adjust the SameSite Attribute of the Authentication Cookie in a Sitecore Commerce Solution with a Federated Payment Provider

Few weeks ago Google Chrome has started to gradually enforce a new behavior for the SameSite attribute of cookies on its latest stable version of the browser, Chrome version 80. This is also when the checkout process in the Sitecore Commerce 9.1 solution of one of my clients started to fail.

In this blog post I will describe the steps taken to troubleshoot and reproduce this issue, the requirements to manage the SameSite attribute in a .NET solution and its compatibility with Sitecore, and finally the implemented solution to adjust the SameSite attribute value of the authentication cookie.

CONTINUE READING

The Sitecore Commerce 9.3 On-Premises Installation Has Never Been So Fast

The Sitecore Commerce 9.3 On-Premises Installation Has Never Been So Fast

The Sitecore Hackathon 2020 starts in less than 48 hours and I am getting ready to participate for my second consecutive year with my team, The Prod Squad. One important recommended task to execute before the contest starts is to setup a local development environment, installing the required version of the Sitecore platform. This year the implemented module should be based on Sitecore XP 9.3 and, if you are considering commerce, it should be based on Sitecore Experience Commerce 9.3.

I don’t know yet if we are going to develop a module on Sitecore Commerce this year, but last night I decided to get ready for it and try to install it on my laptop. I have done a good number of Sitecore Commerce 9.1 on-premises installations in the last few months and a lot of manual steps, hacks and fixes were involved to make the installation successful.

Last night I installed Sitecore Commerce 9.3 on my laptop and I managed the entire installation process, including prerequisites installation and parameters configuration, in less than 2 hours! I have encountered only a couple of issues during the installation process and I will describe them in this blog post, starting with some tips that will make your installation process smoother.

CONTINUE READING

Troubleshooting No Results in Sitecore Commerce Business Tools Searches

Troubleshooting No Results in Sitecore Commerce Business Tools Searches

All searches in the Sitecore Commerce Business Tools application of one of my clients were not working and no results were returned at all. In my first blog post about Sitecore Commerce, I am going to share some knowledge that I learned about the search functionality available in Business Tools and the troubleshooting steps that I took to identify the root cause of this issue.

CONTINUE READING