This article explains how to create a copy of the product or content catalog. For example, you may want to create a second store taking the existing as a starting point, or you may want to have a new country version of the existing e-shop. You can use this approach to create your own custom data exporter, with data transformation rules or special data handling.
In this article, I share a bunch of the scripts I use in my work. All these scripts are used as templates for something special. The first script is used to convert FlexibleSearch queries into raw SQL. The second script shows all hybris types that use the particular type. The third one will help you with executing DDL queries on the database server remotely (such as ALTER TABLE, for example). I also provide the script for printing the database table structure and the indexes defined for it.
I updated the upgrade map for SAP hybris Commerce.
Using this reference you’ll be able to find a list of the capabilities you get if you upgrade your hybris from a version X to a version Y, grouped by a topic.
The script I present today is designed for finding the references for any particular item in hybris. It can be useful if you want to figure out if the product or image or any other hybris object is used somewhere in the system.
Today I present a groovy script for creating a Flexible Search query for any hybris type. You can use the generated query as a template for troubleshooting or data reconciliation. It automatically resolves the RelationType and ComposedType attributes to make the result set human readable.
In this article, I share my scripts for hybris logging subsystem (changing a log level for any class on the fly) and intercontext bean manipulation. For the second topic, I introduce the scripts for printing a list of all beans of the particular context (such as storefront), executing a method from the any bean, including RequestMapping-defined page controllers, and printing all URLs these controllers are associated with. These manipulations help with troubleshooting and early identifying of misconfiguration issues.
The Groovy console is a very handy tool to develop and run scripts inside hybris without touching the source code. It is a very powerful tool for debugging purposes, especially if you need to troubleshoot the remote system. In this article, I collected some of the scripts I use regularly in my work.