This tutorial will provide step by step instructions to display a list of available catalogs in your Hybris Commerce implementation. Step by Step Instructions 1. Goto to HAC in your Web browser. (If Hybris is running on your local machine, type https://localhost:9002/ in your Web browser URL) 2. Type your user name and password once HAC is displayed. (The following screenshot displays the HAC login page with username and password provided) 3. Once you've logged in successfully, click on Console -> Scripting Languages 4. Copy and paste the following code into the Console window: import de.hybris.platform.catalog.CatalogService; import de.hybris.platform.core.Registry; import de.hybris.platform.catalog.model.CatalogModel; CatalogService …
Author: Marc Raygoza
How Do You Decide Whether a Product Attribute Should Use the Classification System Instead of the Type System?
Here are few helpful pointers: The product attribute is not used in the business logic The product attribute is used only in a limited or select number of products The product attribute’s longevity is unknown, and it may become unnecessary in a matter of a few months or less The product attribute will be added dynamically at run-time The product attribute is a display property and does not have any reporting requirements
How Do You Import Hybris Commerce Into Eclipse? (Video)
Hi Everyone, This is quick video demonstrating how to import SAP Hybris Commerce into Eclipse. Marc Raygoza HybrisArchitect.com
HybrisArchitect.com Video Tutorial Format Overview
Hi Everyone, Just a quick announcement, HybrisArchitect.com is planning to release a series of Hybris Commerce training videos. I thought it would be a good idea to describe the presentation format used throughout these videos. Please watch this short video to learn how these upcoming video tutorials will be presented. Regards, Marc Raygoza HybrisArchitect.com
How Do I Set Foreign Exchange Rates Using an Impex Script?
# Currencies $usaCurrency=USD $ukCurrency=GBP $audCurrency=AUD $europeCurrency=EUR $chinaCurrency=CNY $canadaCurrency=CAD $norwayCurrency=NOK $swedenCurrency=SEK # Currencies INSERT_UPDATE Currency ;isocode[unique=true] ;conversion ;$usaCurrency ;1 ;$ukCurrency ;0.75 ;$audCurrency ;1.26 ;$europeCurrency ;0.85 ;$chinaCurrency ;6.59 ;$canadaCurrency ;1.25 ;$norwayCurrency ;7.89 ;$swedenCurrency ;8.10 The foreign exchange rates are stored in the Currency item type Conversion attribute. In practice, you would create a Cron Job to update the foreign exchange rates in Hybris Commerce as often as required to effectively run your business.
How Can I Study for the Hybris Business Analyst Certification While Commuting to Work?
I listen to Podcasts everyday while commuting to the office. Podcasts are a great learning resource, but I have't seen any podcasts dedicated to Hybris. I created this quick audio study guide to help those who are studying for the SAP Hybris Commerce Business Analyst 6.0 Certification. Click on the audio link below to listen to the study guide. Please let me know what you think. Your comments and feedback are very important.
How Do You Setup Custom Error Pages in the web.xml File?
Prior to go-live, it's important to establish custom error pages to prevent unexpected behavior from those pesky 500 HTTP status codes. Although you could perform a similar implementation using the Apache Web Server, you may also configure custom error pages using Hybris Commerce's web.xml file using the following XML snippet: <error-page> <error-code>500</error-code> <location>/WEB-INF/views/mobile/pages/error/ServerError.jsp</location> </error-page> <error-page> <error-code>503</error-code> <location>/WEB-INF/views/mobile/pages/error/ServerError.jsp</location> </error-page> <error-page> <exception-type>java.lang.Throwable</exception-type> <location>/WEB-INF/views/mobile/pages/error/ServerError.jsp</location> </error-page>
How Do You Create a New Content Page With an ImpEx File?
ImpEx files may create new content pages in Hybris Commerce. In this tutorial, we will create the ImpEx for creating a new “Contact Us” page. Here's the ImpEx for creating a new "Contact Us" Page: $contentCatalog=yourContentCatalog $contentCV=catalogVersion(CatalogVersion.catalog (Catalog.id[default=$contentCatalog]), CatalogVersion.version[default=Staged]) [default=$contentCatalog:Staged] INSERT_UPDATE ContentPage;$contentCV[unique=true];uid[unique=true]; name;masterTemplate(uid,$contentCV);label; defaultPage[default='true']; approvalStatus(code)[default='approved']; homepage[default='false'];previewImage(code, $contentCV)[default='ContentPageModel__function_preview'];; contact;Contact Us;ContentPage2Template;/contact ImpEx Review: $contentCatalog: The variable name that contains the name of the desired content catalog the "Contact Us" page should belong to. $contentCV: The variable name that contains the name of the desired catalog version. Hybris best practice is to set the catalog version to Staged when writing your ImpEx files/scripts. uid: The …
How Do You Verify Password Encoding for Users and Customers in Hybris Commerce?
Hybris Commerce's default encoding strategy is plain text. Obviously, this encoding strategy is not safe, and must be changed before going live with your Hybris implementation. To verify the encoding strategy has been changed from plain text, you should run the following FlexibleSearch query in HAC or backoffice: select {uid},{password},{encodedPassword}, {passwordEncoding} from {user} where {passwordEncoding} != 'md5' or {passwordEncoding} != 'sha256' or {passwordEncoding} != 'sha512' or {passwordEncoding} != 'pbkdf2'
Is There a Recommended Formula For Establishing The Number of Hybris Catalog Synchronization Threads?
A reliable rule-of-thumb formula is the total number of Hybris cores multiplied by 1.5. If you have 4 Hybris cores running, your formula would be: 4 * 1.5 = 6 In your local.properties, you would then set the following: catalog.sync.workers = 6