Hybris E-Commerce Platform Hybris Setup Tutorials #1

3
hybris E-Commerce Platform hybris E-Commerce Platform Monday, 5 August 2013 hybris Setup : Tutorials #1 "hybris" a multichannel e-commerce platform. Some useful linkes Release 5 Documentation Home Download Page hybris e-Commerce Trail Home Page: hybris v5.0 Developer Training Trails - Part I Core Email configuration: Some useful CMD commands to building up hybris server: 1) Navigate to hybris>>bin>> platform directory setantenv.bat : to setting up environment run - ant clean : to clean all the classes & jalo files. ant build / ant all / ant : to compile(build) all java classes. ctrl + c : to shutdown hybris server - ant clean all initialize -Dtanent = master : to initialize Hybris from cmd ant clean all updatesystem -Dtanent = master :to update from cmd talnet Id: master ant extgen // To create a single extension. ant modulegen // To Generate a module (5 extensions) build.parallel=true (local.properties) // to make build fast. ------------------------------------------------- ant clean all - Fresh Hybris Platform Version Contain only "bin" directory - but after running this command "log" "temp" and "data" direcotry created. Path to the Ant version that hybris is using : D:\hybris\bin\platform\apache-ant-1.8.2 ant updatesystem or initialize target ----------------------------------------------------------------- HyBris Services 1. localhost:9001 -> hyBris Admin Console (HAC) : 2. localhost:9001/admincockpit -> Admin Cockpit 3. localhost:9001/mcc -> MCC, where you can access all the hybris perspectives. --------------------------------------------------------------- 1) Initialization 2) Synchronization (HmC --> Catalog >> Catalogs >> SkinitContentCatalog (expand) >> skinitContentCatalog(staged) >> synchronization) 3) Indexing (HmC --> System>>Indexex Operation wizard >> solr config: masterindex>> next >> done) For every new Java Class put an entry into their corresponding extension-spring.xml files. i.e. facade classes entries goes into "skinitacceleratorfacades-spring.xml" ------------------------------------------------------------------------------------------------------------------ <spring:theme /> // used to replace hard coding from JSP pages <spring:theme code="img.homepage.backToTop"> img.homepage.backToTop's entry should be define in base.properties ------------------------------------------------------------------------------------------------------------------ ${request.contextPath}/_ui/desktop/common/images/us_fl_sm.gif $(".change_flag_cntry").attr("src","second.jpg"); spring-mvc-config.xml : where request maps to the url Junit Test Class: 1) write your Junit Test Class & to run go to localhost:9001/hac >> Console >> Test >> Click on the Image NOTE: we can run our Junit Test class by Starting the server(above process) or not(Right click >> Debug as >> jUnit Test) Each Product has Prices, Stock Levels. So Any changes in products.impex cause reflect on product-prices.impex product-stocklevels.impex All About Solr : It's just like a temporary place, like cache memory, where we put all our product data, so at run time we fetch all product details, Solr.impex Runs on 2 different mode 1) embedded(development) - hybris server and solr server runs on the same machine, like our local machinel 2) standalone(production) - hybris & solr servers both runs on two different machines, to utilize resources. # Create the solr server configuration INSERT_UPDATE SolrServerConfig;name[unique=true];mode(code);embeddedMaster;$serverConfigName;embedded;true How to Access: /solrfacetsearch/ click Search. 2013 (2) August (2) Sending Email hybris Setup : Tutorials #1 Blog Archive Sumit Tehanguriya View my complete profile About Me hybris E-Commerce Platform: hybris Setup : Tutorials #1 29/09/2014 http://hybrishelpcentre.blogspot.fr/2013/08/hybris-notes.html 1 / 3

Transcript of Hybris E-Commerce Platform Hybris Setup Tutorials #1

Page 1: Hybris E-Commerce Platform Hybris Setup Tutorials #1

hybris E-Commerce Platformhybris E-Commerce Platform

Monday, 5 August 2013

hybris Setup : Tutorials #1"hybris" a multichannel e-commerce platform.

Some useful linkes

Release 5 Documentation HomeDownload Pagehybris e-Commerce Trail Home Page:hybris v5.0 Developer Training Trails - Part I Core Email configuration:

Some useful CMD commands to building up hybris server:1) Navigate to hybris>>bin>> platform directory

setantenv.bat : to setting up environment run -ant clean : to clean all the classes & jalo files.ant build / ant all / ant : to compile(build) all java classes.ctrl + c : to shutdown hybris server -ant clean all initialize -Dtanent = master : to initialize Hybris from cmdant clean all updatesystem -Dtanent = master :to update from cmdtalnet Id: masterant extgen // To create a single extension.ant modulegen // To Generate a module (5 extensions)

build.parallel=true (local.properties) // to make build fast.-------------------------------------------------ant clean all -Fresh Hybris Platform Version Contain only "bin" directory - but after running this command "log" "temp" and "data" direcotry created.

Path to the Ant version that hybris is using :D:\hybris\bin\platform\apache-ant-1.8.2

ant updatesystem orinitialize target-----------------------------------------------------------------HyBris Services

1. localhost:9001 -> hyBris Admin Console (HAC) :2. localhost:9001/admincockpit -> Admin Cockpit3. localhost:9001/mcc -> MCC, where you can access all the hybris perspectives.

---------------------------------------------------------------1) Initialization2) Synchronization (HmC --> Catalog >> Catalogs >> SkinitContentCatalog (expand) >> skinitContentCatalog(staged) >>synchronization)3) Indexing (HmC --> System>>Indexex Operation wizard >> solr config: masterindex>> next >> done)

For every new Java Classput an entry into their corresponding extension-spring.xml files.i.e. facade classes entries goes into "skinitacceleratorfacades-spring.xml"------------------------------------------------------------------------------------------------------------------<spring:theme /> // used to replace hard coding from JSP pages<spring:theme code="img.homepage.backToTop"> img.homepage.backToTop's entry should be define in base.properties------------------------------------------------------------------------------------------------------------------${request.contextPath}/_ui/desktop/common/images/us_fl_sm.gif$(".change_flag_cntry").attr("src","second.jpg");

spring-mvc-config.xml :where request maps to the url

Junit Test Class:

1) write your Junit Test Class & to run go tolocalhost:9001/hac >> Console >> Test >> Click on the Image

NOTE: we can run our Junit Test class by Starting the server(above process) or not(Right click >> Debug as >> jUnit Test)

Each Product has Prices, Stock Levels. So Any changes in products.impex cause reflect on

product-prices.impex

product-stocklevels.impex

All About Solr :

It's just like a temporary place, like cache memory, where we put all our product data, so at run time we fetch all product details, Solr.impex

Runs on 2 different mode

1) embedded(development)- hybris server and solr server runs on the same machine, like our local machinel

2) standalone(production)- hybris & solr servers both runs on two different machines, to utilize resources.

# Create the solr server configurationINSERT_UPDATE SolrServerConfig;name[unique=true];mode(code);embeddedMaster;$serverConfigName;embedded;true

How to Access:/solrfacetsearch/

click Search.

▼ ▼ 2013 (2)▼ ▼ August (2)

Sending Email

hybris Setup : Tutorials #1

Blog Archive

SumitTehanguriya

View my completeprofile

About Me

hybris E-Commerce Platform: hybris Setup : Tutorials #1 29/09/2014

http://hybrishelpcentre.blogspot.fr/2013/08/hybris-notes.html 1 / 3

Page 2: Hybris E-Commerce Platform Hybris Setup Tutorials #1

Posted by Sumit Tehanguriya at 22:58

<doc><arr name="spellcheck_fr"><str>SMT819</str></arr></doc>

pk:8796102787073

use logical operator inside search field.Sorting:

approved Flag<freeTextSearch>:<>:brand:sony:price:[10-15]Solr Debugging:

point-of-service.impex (for state's zipcode)

To open Accelerator site:

http://localhost:9001/yacceleratorstorefront/?site=electronics

SKU - Dynamic Generated Id

Localization:

Possible in Two Ways:

1)Type System Localization.[in localization file]

2)Using the hMC's Localization Export Function to Create Type System Localization Files. Using the hMC's Localization Export Function to Create Type System Localization Files: Log into the hMC using an administrative account. Navigate to System -> Tools -> Type System Export.

host file changes:

------------------------------------------------

serverUrl=http://localhost:80/yacceleratorstorefrontwebsite.electronics.http=http://electronics.local:80/yacceleratorstorefrontwebsite.electronics.https=https://localhost:443/yacceleratorstorefront

209.202.184.165 prod.cyclegear.com10.230.20.15 cgh-p-web-0110.230.20.20 cgh-p-app-01

127.0.0.1 apparel-uk.local127.0.0.1 apparel-de.local127.0.0.1 electronics.local127.0.0.1 hybris.local

127.0.0.1 telco.local

To import an "impex" file open hAC Console >> ImpEx Import

8 comments:

Madhu 19 May 2014 21:07

Hi sumitI'm have deployed the accelerator in AWS and trying to access mcc.The problem is the storewebfront link has powertools.local,which is not configured in hosts file.I want to change the linkwith ip,the rest of the links are working fine in mcc(hmc,instore,all are getting populated with ip)can you help me in fixing this issue

Reply

Developer 25 May 2014 07:39

Reply

Developer 28 May 2014 18:06

For Hybris core certification practice model question and answer please contact on skype :bipins25 or mail to: [email protected]

Reply

deeru 16 June 2014 23:06

i have created login id but not got the confermation can any on provide me their mail is for thesoftware download...my mail id is [email protected]

Reply

Sumit Tehanguriya 24 August 2014 23:17

Hi Madhu,

Sorry for late,

It looks like some URL mapping configuration issue, make sure you have the correct mappingin you localhost file, because accessing directly though IP might not work often. Let me knowthe status of this issue.

Reply

Sumit Tehanguriya 24 August 2014 23:19

Hi Deeru,

If you are asking for the credentials for download hybris platform then Sorry, due to some security concerns we can't provide you that.

Reply

hybris E-Commerce Platform: hybris Setup : Tutorials #1 29/09/2014

http://hybrishelpcentre.blogspot.fr/2013/08/hybris-notes.html 2 / 3

Page 3: Hybris E-Commerce Platform Hybris Setup Tutorials #1

Newer Post Home

Subscribe to: Post Comments (Atom)

Plus Blog suivant»

Praveen Kumar 11 September 2014 06:29

Hi Sumit,

How to create a custom order promotions and How to apply our custom promotion to theProduct/Category.

Reply

Sandeep Bhupasamudram 11 September 2014 22:07

H. sumit,

am getting following error while installing hybis. kindly help me on this ..

LOGS:

BUILD FAILEDD:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\build.xml:25: The following error occurred while executing this line:D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.xml:47: The following error occurred while executing this line:D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.xml:66: The following error occurred while executing this line:D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\util.xml:24: The following error occurred while executing this line:D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.xml:68: The following error occurred while executing this line:D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.xml:208: The following error occurred while executing this line:D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.xml:220: The following error occurred while executing this line:D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.xml:241: The following error occurred while executing this line:D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\util.xml:86: Compile failed; see the compiler error output for details.

Total time: 34 seconds

D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform>hybrisserver.batUsed config: D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\tomcat-6/conf/wrapper.confFATAL | wrapper | Failed to load configuration.An error occurred in the process.D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform>

Reply

Simple template. Powered by Blogger.

hybris E-Commerce Platform: hybris Setup : Tutorials #1 29/09/2014

http://hybrishelpcentre.blogspot.fr/2013/08/hybris-notes.html 3 / 3