Posts

Creating Custom Interactive Dialog to execute Sitecore PowerShell Script

Image
Hello everyone, we will try to learn how we can create a interactive dialog in Sitecore to execute powershell script. In this article we will see how we can convert a view rendering or controller rendering to JSON rendering via powershell interactive dialog. We will also check that how we will be adding the button to Ribbon in Sitecore. We will divide the blog into 3 section. Creating a Execute Button in Ribbon PowerShell Script to create interactive Dialog Demo of Script Step 1: Navigate to Script Library under PowerShell under Modules. Path : /sitecore/system/Modules/PowerShell/Script Library. Step 2: Right click Script Library --> Insert --> PowerShell Script Module --> Give A Name(CustomPowershell2) --> Ok Step 3: Right Powershell Script Module which is created --> Insert --> PowerShell Script Library --> Give A Name(Content Editor) --> Ok Step 4: Now create the content tree structure which...

Creating Product Variants and reading it using .NET OrderCloud SDK in Sitecore OrderCloud

Image
Hello everyone, in this blog we will see, how we can create product variant in Sitecore OrderCloud. Let's understand what is product variant. I will explain you in terms of example. Consider we are having TShirt. TShirt can be of different color and size. Lets consider there are two colors(Blue and Green) and there are 3 sizes(small,medium and large). So for TShirt, if we calculate the variants for the TShirt, variants is calculated as 1*2*3 = 6 different variants. Now let's concentrate on how we can create a product variant. Follow the below steps: Step 1: Create a Spec (In the context of OrderCloud, a "spec" typically refers to a specification or a set of specifications related to a particular entity or feature within the platform).We will be creating Size Spec.Follow below screenshot for your reference. Step 2: Create a Spec Option . Lets create two Spec option for size. Large and Small.Follow below screenshot for refernce. Verify your Spec Options for the ...

Understanding Products And Fetching The Products in Console Application in Sitecore OrderCloud

Image
Hello everyone, In this blog we will see how we can create a product in Sitecore OrderCloud. Additionally, we will see how to fetch that product in console application. This usecase will be using Buyer User. To start, lets quickly navigate OrderCloud Portal. To create a product and assign that product to the user, we need to follow some steps listed below: 1) Creating a product: Navigate to Product section in OrderCloud portal. See the below screenshot for your reference.You can directly copy the JSON payload as shown and can submit it rather than filling individual fields. 2) Assigning Product to Catalog: Once product is created assign that product to Catalog by navigating to Catalog section. Note : Now Check, whether product is assigned properly to Catalog. Your Catalog should be in active state or else your product will not be shown to buyer user. Also your Catalog should be assigned to your Buyer Organization where that user is present. 3) Verify Product visible for that ...

Understanding Security Profile Group in Sitecore OrderCloud

Image
Hello everyone, In this blog we will try to understand, what is Security Profile in Sitecore OrderCloud. How we can Security Profile in Sitecore OrderCloud. Let's first understand what is Security Profile. According to Sitecore OrderCloud definition "Security profiles are groups of roles (permissions), each of which grant users access to specific API endpoints and functionality. This lets you have permission based API calling from applications. If a request is made by a user without sufficient roles, they will receive a 403 Forbidden response" This come very handy in Ecommerce application where you have role based functionalities. The best example is Buyer User who will having different roles(Ex.MeAddress,Shopper,MeCreditCardAdmin etc.) and Seller User(Ex. FullAccess, OrderAdmin,BuyerAdmin,CatalogAdmin etc.).There are multiple roles in Sitecore OrderCloud which we will see in different blog. Let's create our first Security Profile in Sitecore OrderCloud Navigate ...

Understanding Different Authentication Grant Type WorkFlows in Sitecore OrderCloud

Image
Hello everyone,In my previous blog regarding OrderCloud, we have seen what is Buyer organization, Buyer User group, Buyer User and how they are related to each other. In this blog we will try to understand the Authentication mechanism used by Sitecore OrderCloud. What different grant types it support and how we can connect to a third party OpenID(basically for implementing Single Sign On) for implementing the same. Sitecore OrderCloud mechanism is built on OAuth 2.0 to support both Authentication and Authorization.If you want to understand Authentication and Authroization you can refer my blog on the same Here .I have tried to explain using Sitecore and how it implement the same. So lets get started. In Sitecore OrderCloud there are basically 6 GrantType Workflows which is listed below Password Grant Type Workflow Client Credential Workflow Refresh Workflow Elevated Password Workflow Anonnymous Shopping Workflow SSO Workflow Password Grant Type Workflow : The most common grant type...