Thursday, 1 September 2022

Sitecore order cloud certification strategy and planning

Last week I just completed my Sitecore order cloud Certification. 




Objective of this article is about to share learning order cloud and information, pre-planning and strategy for Sitecore order cloud Certification Exam.

Preparation I personally did not felt difficulty regarding content, topics and practice platform to learn Sitecore order cloud or for exam material.

I just went though Sitecore Order Cloud e-learning course and Order Cloud Portal and that's enough for both learning and exam.

For me it took approx. 3 days to learn and practice with API. 

Topics 

  • I would suggest to first understand order cloud terminologies
  • About Sandbox Base API URL, Region and other properties.
  • About User Context: Shared, API Client
  • About Buyer organization and Buyer mapping with API practice
  • About Buyer, Seller, Supplier and order Flow
  • About Product and Price schedule mapping with API practice
  • About B2B and B2C scenario from e-learning Portal
  • Data flow on Sandbox during development
  • Get User list, Buyers list and Product List using API.
  • Add/Remove/Update products from Catalog or categories or from User group.
  • Workflow: Password, Client, Refresh and Elevated with example from API call.
  • Refresh workflow benefits and example.
  • Marketplace scenario, how can work with Parallel marketplace.
  • Reseller scenario and flow.
  • In which scenarios, Product not used to visible.
  • How actually webbook works. example and scenarios.
Strategy
  • Few questions will be scenarios based - like discount calculations or products on live Site - that I felt after course completion and with practice easily answerable.
  • Noticed not many multi-choice questions - so less complex as compare to previous exam.
  • Questions are very related and if practiced or worked - easily can answer.
  • All content, official documentations and API details, possible API parameters - properly mentioned and shared.

I would highly recommend to at-least learn order cloud, if not planning for Certification or Exam. Best to have.

Good luck for yours...

Wednesday, 3 August 2022

How to remove a rendering from page list using Sitecore PowerShell script ?

 There might be scenario, where 

  • remove a rendering from list of pages/Tree
  • remove broken rendering from Tree

Above we can achieve using Sitecore PowerShell script

$pageTemplateId = "{4A990Q43-71FD-4DAC-8865-5ABAAA13R911}"
$startPath = "master:/sitecore/content/YourSiteNode/Home/"
$useFinalLayout = $True
$useSharedLayout = $True
$rootItem = Get-ChildItem -Path $startPath -recurse | Where-Object { $_."TemplateID" -eq $pageTemplateId };
if($rootItem -ne $null) {
foreach($item in $rootItem) {
$renderings =  Get-Rendering -Item $item -Placeholder "/header/primary-menu" -Device (Get-LayoutDevice "Default") -FinalLayout:$useFinalLayout
foreach($rendering in $renderings) {
    $renderingItem = Get-Item -Path $rendering.ItemID
if($renderingItem.Name -eq "YourRenderingName") {
    Remove-Rendering -Item $item -Instance $rendering -Device (Get-LayoutDevice "Default") -FinalLayout:$useFinalLayout
    Write-Host $item.Name
}
}
}
}

Saturday, 26 February 2022

HTTP Error 500.19 - Internal Server Error Sitecore identity server

  



If you are facing the below issue with Sitecore 9, 10, or 10.1. Then it is recommended to install the below dependency to resolve this issue.

https://dotnet.microsoft.com/download/dotnet-core/2.2

But before installation, I would suggest verifying existing .netcore in your system
by running dotnet --info on PowerShell (as admin)


Hope this will resolve your issue.



There is also another possibility for this issue that from 
Turn Windows feature on or off - choose below options


You may also face still face the same issue with Sitecore 10.2 
in that case you must be required to install as this is recommended by Sitecore https://doc.sitecore.com/xp/en/developers/102/sitecore-experience-commerce/system-requirements.html

Please go to this link to download https://dotnet.microsoft.com/download/dotnet-core/3.1

Hope the above options will help you to fix this issue.

Monday, 24 January 2022

How to start with Sitecore JSS using react framework ?

Hope you are already aware of the basics of Sitecore JSS and react as well. Here in this article, we are going to 

  • Setup Sitecore JSS app with React framework
  • Connect/Map JSS app with Existing Sitecore Instance
  • Deploy JSS App to Existing Sitecore Instance

NOTE: I did a setup with Sitecore 10.2, but you can choose as per your need.

The steps are as below

  • Sitecore 10.2 setup - without SXA [ex: sc.dev.local]
  • Sitecore PowerShell extension 6.3
  • install Sitecore package by clicking JSS compatible module 
  • create JSS key in masterdb /sitecore/system/Settings/Services/API Keys/
  • goto Repo location (where wanted to create Sitecore JSS Application)
  • install jss cli by cmd/powershell as admin and run below command
  • >npm install -g @sitecore-jss/sitecore-jss-cli
  • To create Sitecore JSS app using react framework run below command
  • >jss create jssapp react
  • >jss start [to check it's working]
  • add new site binding dev.local instance as jssapp (HTTP) and make host entry in C:\Windows\System32\drivers\etc
  • run and check http://jssapp/
  • run command >"jss setup" and add details as requested
  • please verify hostname from JSSAppLocation/sitecore/config/jssapp.config
  • run command >"jss deploy config" [To deploy Sitecore JSS Application config to Sitecore instance]
  • run command >"jss deploy app -c -d" [To deploy everything from Sitecore JSS Application to Sitecore instance]
  • verify again "http://jssapp" [To verify JSS application changes on hosted Sitecore instance]

Hope this will help you to set up quick with the Existing Sitecore instance.

Thursday, 13 January 2022

How to fix HTTP Error 502.5 Sitecore Horizon Issue ?

 

You may face the below issue while setting up Horizon on your machine.


And to resolve this issue, it is must verify is .net core 3.1 and 2.1 are on your machine. Please use the below command to verify
dotnet --info (PowerShell as admin)

If not then please install from below

https://dotnet.microsoft.com/en-us/download/dotnet/2.1
https://dotnet.microsoft.com/en-us/download/dotnet/3.1
Once installed, run horizon instance again. 



The above same issue you may also face with Sitecore Identity server and solution will be same.

Wednesday, 12 January 2022

How to uninstall Horizon from existing Sitecore instance ?

There may be a scenario, where we would need to uninstall the horizon instance. For that, we would require the same tool can be downloaded from https://dev.sitecore.net/Downloads/Sitecore_Horizon.aspx


We have chosen for our instance as 


please download and unzip, if not have. And now open InstallHorizon.ps1 script file.

Please add the below variables in the same file 



[string]$InstanceName = $horizonInstanceName,

[string]$PhysicalPath = $horizonPhysicalPath,



now please comment InstallHorizonHost method calling and add below as per screenshot




Import-Module "$PSScriptRoot\InstallerModules.psm1" -Force

Uninstall-HorizonHost `

  -InstanceName $InstanceName `

  -PhysicalPath $PhysicalPath



Once done, run the PowerShell script. Horizon instance will be uninstalled.