GTM snippet

Showing posts with label SAP CX. Show all posts
Showing posts with label SAP CX. Show all posts

Monday, August 30, 2021

Setup Installation Guide for SAP CX 2011 with Spartacus

 Step 1: Download the latest SAP Commerce Cloud suite (in our case its 2011 version).

SAP CX suite

Step 2: Extract it in a folder.

Extracted

Step 3: Download spartacussampledata zip file.

Step 4: Move the file custom.properties from spartacussampledata/resources/installer/customconfig to hybris-commerce-suite-2011/installer/customconfig, set build.parallel= false.



Step 5: Create a custom folder inside bin (hybris/bin), copy spartacussampledata inside custom.

Spartacus Sample Data

Step 6: Go to installer/recipes, duplicate cx folder, rename duplicate folder as cx-for-spa.


Receipe

Step 7: Inside cx-for-spa open build.gradle uncomment extName 'spartacussampledata' save and close.



Step 8: Open cmd inside installer

Step 9: Install the recipe run cmd “install.bat –r cx-for-spa”

Step 10: Initialize the system run cmd  “install.bat -r cx-for-spa initialize” (this will take a while)


Init

Step 11: Strat the server run cmd “install.bat -r cx-for-spa start”


Sap Server Start

 

Step 12: Verify if things are working as expected or not hit the following urls

·       Display the Admin Console: https://localhost:9002


HAC

·       Display Backoffice: https://localhost:9002/backoffice


Backoffice

·       Display the Accelerator Electronics storefront: https://apparel-uk.local:9002/yacceleratorstorefront/


Storefront

 

Step 13: Import the below impex  for Auth client to accept OCC

INSERT_UPDATE OAuthClientDetails;clientId[unique=true]    ;resourceIds       ;scope        ;authorizedGrantTypes                                            ;authorities             ;clientSecret    ;registeredRedirectUri

                                ;client-side              ;hybris            ;basic        ;implicit,client_credentials                                  ;ROLE_CLIENT             ;secret          ;http://localhost:9001/authorizationserver/oauth2_implicit_callback;

                                ;mobile_android           ;hybris            ;basic        ;authorization_code,refresh_token,password,client_credentials    ;ROLE_CLIENT             ;secret          ;http://localhost:9001/authorizationserver/oauth2_callback;

 

######################### NOW WE NEED TO START SPARTACUS ###################

Front End Development Requirement:

·       Angular CLI: V 12.0.5 or later

·       Node js: V 12.x

·       Yarn: 1.15 or later

Assuming you have all requirements installed to check angular version run command “ng  - -version”

Angular CLI

Step 1: Create a new angular project, go to the location where you want to create open cmd and run this cmd “ng new <storename> --style=scss” (in our case storename is “electronicsspa”).



Step 2: Check whether you are able to see the sample store or not, go to the folder created above (in our case its electronicsspa) to do that run cmd “cd <foldername>”



Step 3: Start the server, run cmd “yarn start”






Step 4: After server is started hit “localhost:4200”, you see a sample angular site running

Step 5: To set Spartacus you must be in same folder i.e electronicsspa, run cmd “ng add @spartacus/schematics - -baseSite electronics-spa”, after running this command it will ask for several moduels just press enter or you can select your desired modules and press enter.

 

After above steps start you’re both servers

·       SAP Commerce suite (run command inside platform hybrisserver.bat)



·       Angular (ng serve inside your folder in our case it is electronicsspa)



Hit localhost:4200 and you will see something like this


Spartacus Storefront

 

 

 

 

 

 

 

 







Monday, June 24, 2019

Hybris Architecture



Hybris Commerce suite is highly flexible. It is divided into several packages. These packages are nothing but individual Modules.  All of these packages rely on more basic functionality provided by the hybris Platform.
·       Platfrom
·       PCM
·       Commerce
·       Channel

These packages are bundles of functionality assembled for a certain range of business functionality

Hybris has two architecture
1.       Basic Architecture
2.       Layer Architecture

Basic Architecture

Platform

  • Consists of  standard set of extensions
  • Hybris server
  • Build Framework
  • Extension: technical structure of a module, can contain business logic type definition , other database application
  • Configuration files
  • Platform is the base for every extension.

PCM(Product Cockpit Module )

  • One source for all product data
  • Sync with external systems well
  • Production data publication into different catalog
  • Easy to define work flows
  • All kind of Import and Export related to data
  • Media Management

Commerce

  • Sales and  merchandizing for companies (pricing, multi-brand, multi-store, tax management, etc )
  • Marketing (Promotions, coupons , etc )
  • Multi channel publishing
  • E-commerce services(order, customer support, warehousing)

Channel
  • Mobile
              Mobile web store integration
              Store Locator
              WCMS integration

  • Customer service
              Call center application
              Pre and Post order process at finger tips
              Compartible with low end machines
  • Print
              Supports all means of automation publications
  • WCMS
              Multi-Store scenarios
              User interface for static and dynamic web site content

Overview diagram of basic architecture

Layer Architecture



The hybris Commerce Suite contains several layers, each of which has a different function and data abstraction level.

  • Cockpits, hmc, WebServices:

Layer which interacts with front user, where objects are represented for interaction like: add to cart, product description, passwords for user account this layer basically lets user to play with an object in hybris platform via graphical user interface

This enables organizations to manage about structure information and catalogs in high-volume and collaborative environments.

  • ServiceLayer Framework  and Infrastructure Services:

Provides the Java Application Programmer's Interface (API) for objects in the hybris Commerce Suite, the hybris API. The hybris ServiceLayer relies on so-called models, which are pojo objects. Business logic is written is this layer with other functionality such as Pricing, Classifications, Security, Transactions, Sessions


  • Type layer:

Definitions of Business objects and their attributes are made on this layer in the form of item.xml file.    


  • Persistence Layer:

Deals with the abstraction of Data from database, caching, clustering. We generally do not get in contact with this layer as it is transparent and does not require any interaction from our side.


  • Database:

Database is an important component in hybris as it makes the data held in hybris commerce suite .
We can configure any database. By default hybris follows hsql as a database.

Note: Hybris uses layer architecture to keep the data segregated.  Specific layer for specific data to work upon.

Saturday, June 15, 2019

Why Hybris?





Hybris is one of the leaders in the Market for E-Commerce development projects. Being used by big brands ruling the market.

Key Points :

  • Provides accelerators for B2B (Business to Business), B2C (Business to Consumer), B2B2C(Business to Business to Consumer)
  • Supports Multi language, Multi-channel functionality
  • Provides Telco (product with a service or subscription)
  • Provides highly effective cockpits (WCMS, PCM, Back office)
  • Highly customized and flexible
  • Provides Contextual support
  • Advance Catalog Management 
  • Speeds ups the Development process


Introduction to Hybris


Hybris is a German company that sells enterprise Omnichannel and product content management software. It is a subsidiary of SAP SE. Hybris was founded in 1997, in Zug, Switzerland by “Carsten Thoma, Moritz Zimmermann, Klaas Hermanns, Christian Flaccus, Andreas Bucksteeg, and Heiko Stoermer”.
In 2011 private equity firm “HGGC” acquired a majority stake in hybris and merged Canadian software company iCongo into hybris.
SAP SE acquired hybris on August 1 2013. In 2018, Hybris was integrated into the SAP Customer Experience division.
SAP Hybris Commerce provides e-commerce solution with storefront templates and tools to provide exemplary experience.


Product Family

Hybris is not a tool neither a framework, then the question comes what is Hybris?
Hybris is a platform which helps in providing E-commerce Solution End-to-End.

It is built on Spring framework more over leverages all java crucial concepts. (AOP,Tansaction Management,JDBC…)