11 Hybris Personalization
11 Hybris Personalization
11 Hybris Personalization
classify him/her into different groups or segments. This segmentation can be used for further marketing
actions. Use segmentation for personalizing the content.
Q: What are the required extensions = (1) btg & (2) btgcockpit
Let’s say – you just arrived at Amazon. Website don’t know what you are. So, it displays all products.
Assume that, website knows what you are (Male / Female), then it can display items / products related to you.
That means, website takes you to finalize the product fast (With less steps). So, we can customize the website
based on customers.
For 1 customer, we can show 1 set of products & for another customer we can show another set of products.
Example: - Assume you were in Amazon & bought Electronic items last 5 times. Now when you go to Amazon
6th time, it will show most of electronic items.
Q: In Amazon, sometimes, you may see like: - “1 product / 1 customer” (or) 5 product / 1 customer”.
We have 4 Rules (Called Personalization / Customer Segment Rules (or) BTG (Bridge To Gap) Rules): -
1 – Cart Rule = It gives information of the current shopping cart in the session.
2 – Order Rule = It gives information about previous orders details / history.
Note: - This rule always returns false for anonymous users.
3 – Customer Rule = It gives customer information in the current session (1st name, last name, DOB…)
Note: - This rule always returns false for anonymous users.
4 – Website Rule = It gives analytics (How much time you are in site, what products you visited…)
This way we will come to know what are your favorite & can display those related promotions.
To do this we also have something called “Customer Segments”.
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Note: - In any eCommerce site, we see products & also some other non-products (like banners /…).
If we click on banner, it will target another set of products.
Anything which is not specific to your product is called “Content” (Banner/…).
So, in eCommerce site, both product & content are important.
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Step 2 = -- mcc – WCMS (Web Content Management System) Cockpit with Advanced Personalization (User =
cmsmanager & pwd = 1234) – Websites
WCMS has 4 perspectives = WCMS Page View, Live Edit, Navigation & Customer Segments.
Q: We don’t see our EleContentCatalog in WCMS why? = Access missing (Personalization).
→ hMC → User → Emps, Search for cmsmanager – Personalization
Writeable catalog versions = Add EleContentCatalog (Both Online & Staged)
Readable catalog versions = Add EleContentCatalog (Both Online & Staged) → Save
Note: - Even after doing above steps, we don’t see expected results, because without website we can’t see
the content catalogs. For now, follow Step 3.
Step 3 = -- hMC – WCMS – Websites (RMB) – Create Website, ID = EleFry & Name = EleFry
Note: - For every website, there should be “Product Catalog & Content Catalog”.
Default Catalog = ElectronicsProductCatalog
So add “Content Catalogs” (RMB – Add Content Catalog), Select “EleContentCatalog”.
Note: - Now go to WCMS & You can see your website Called “EleFry”.
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Q: Just you arrived into Flipkart. Will you have Cart? If yes, what will be there in cart. If you won’t have
cart, explain why?
1st Point = You will not have any cart when you arrived (Anonymous user / customer) into flipkart. When
you add 1st item to cart that time cart will be created.
2nd Point = Cart created when u add 1st time. Assume you deleted item from cart, still cart will be there
with empty.
Example: - Go to default site = http://localhost:9001/yacceleratorstorefront/?site=apparel-uk Now you are
anonymous user / customer in this site. – hMC – User – Customer, Search for anonymous customer –
Orders (We will not see any cart created for this anonymous customer). (4 Default Sites are there).
Now → default site & add one item. Come back the anonymous customer orders, you will see created cart.
Note: - If you having Hybris 6.XXX version, then you also need to add below: -
<extension name="b2cbtgaddon" /> <extension name="addonsupport" />
<extension name="acceleratorstorefrontcommons" />
-- WCMS → Customer Segments → Create a new customer segment (+), Name = EleCusSeg
Is Active = Yes, Catalog Version = Electronic Content Catalog / Staged → Next
Now select the Website = EleFry → Next, Result Scope = Session Scope → N
Evolution Method = Optimized Processing → Done.
Q: What are the Customer Segment Result Scope? = Session Scope / Persistent Scope.
Note: - Generally, we won’t create New Rules, but we will add options in drop down.
Output Actions = Specify what is required when customer segment rule is true. Example: - If Customer
Segment rule finds gender = M then in output actions display men related banner.
Output Actions (+) → Show/How WCMS Item → WCMS Page, now select required one.
(OR) Create User Group (→User→UserGroups→Create→UserGroup), Name = menPrevGroup
Output Actions (+) → Add user to Group, User Group = menPrevGroup → N → Done.
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Note: - What is advantage of adding menPrevGroup in Output Actions. Example: - We will write one
“Cron Job”, which sends promotional e-mail for all user in menPrevGroup on every Sunday @ 8AM IST.
Personalization & Cart Rules Exercise Input & Output Results Screens: -
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Output Action =
Results = When you go back to site, you won’t see Logo. Also check the Reports. Note: - Make sure you clear
the cache.
Enter Details ... Enter Name = abcd, Surname = abcd, Email = abcd@abcd.com, PWD = abcd1234 --> click on
Register
-- hMC -- User -- User Groups -- Create -- User Group (ID = menPrevilageGroup) – Create
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Step 3 = Assign the created group to created customer (abcd).
--hMC -- User -- Customers -- Search for customer (abcd) & open it. In Group add menPrevilageGroup – Save
Note: - As we don’t have Website ready, so let's have already available one = apparel site.
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Name = hideLogo
Catalog Version = Apparel UK Content Catalog / Online --> Next
Website = Apparel Site UK --> Next → Session Scope --> Next
Optimized Processing --> Next --> Done
Step 5 = Double click on the hideLogo segment (created in the above screen shot step6) & add the rules
(Member of Usergroups is in menPrevilageGroup).
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Create output actions
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Step 6 = Go to Website & Clear Cache & See the results. U will not see the Logo.
http://localhost:9001/yacceleratorstorefront/?site=apparel-uk&clear=true
Note: - To clear the cache, you can use "&clear=true" at the end of the URL.
Requirement 2 = Hide breadcrumb also for the logged in user. Add the output action for breadcrumb
(Customer Rule is same)
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Step 7= Go to Website & Clear Cache & See the results. U will not see the logo and breadcrumb
http://localhost:9001/yacceleratorstorefront/?site=apparel-uk&clear=true
Step 8 = Now see the Report (Which explain, how many rule conditions are passed & How many rule
conditions are failed)
-- WCMS -- Customer Segments -- Go to your created segment = hideLogo & --> Reports (ICON)
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Requirement 3 = Lets add Cart rule along with Customer rule. If the cart total >=100 euros then hide the
Search Component.
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Now create output action
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Go to Website, Clear Cache & See the results. U will not see the logo, breadcrumb and search box if the cart
total >=100 euros
http://localhost:9001/yacceleratorstorefront/?site=apparel-uk&clear=true
Output after adding items to the cart and its value >= 100 euros
Requirement 4 = Create Website Rule. If the product “Skull 80 SS youth white XS” (ID = 300738208) is
viewed then hide the footer navigation component.
Step1 = create a segment called “ProductViewSegment” → Select Apparel Site UK → Select Session Scope →
Select Optimized Processing → Done
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Step2= Double click on the “ProductViewSegment” and create input criteria “Has view products” contains
“Skull 80 youth white XS” (ID= 300738208) using website rule
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Step3 = Create output action “Hide footer component” when the product “Skull 80 youth white XS” has
viewed
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Step4 = Go to Website, Clear Cache & See the results. Result = The footer should not display when the
product “Skull 80 SS youth white XS | ID300738208” has viewed
http://localhost:9001/yacceleratorstorefront/?site=apparel-uk&clear=true
Output before the product viewed ( you can see the footer is not hiddent)
Contact Us = ChennaReddyTraining@RRRS.CO.IN
Output after viewing the product “Skull 80 youth white XS” (The footer is hidden)
Note: - How to find what Components are there inside the Page?
Here you can see list of all available components (Content Slots).
SiteLogo is the Content Slot... So you can see about this more as: -
Contact Us = ChennaReddyTraining@RRRS.CO.IN