Posts

Unlocking the Future of SAP Commerce Cloud, the Accelerator-Free Era - SAP Spartacus

Image
  SAP's strategic roadmap emphasizes the   discontinuation of accelerator-based storefront   support, compelling SAP Hybris customers to   embrace the power of headless architecture . As SAP Commerce Cloud sets its sights on the future, we are here to help you navigate the transformative journey toward headless commerce. We offer a comprehensive solution that leverages the   SAP Spartacus and React JS storefront   to unlock the full potential of this paradigm shift. At   Rynex Solutions , we recognize the evolving needs of businesses in the digital commerce landscape. Transition to Headless Commerce: Unleash Agility and Flexibility The accelerated phase-out of accelerator-based storefronts presents an opportunity for businesses to reimagine their commerce architecture. Headless commerce, with its decoupled front end and backend, provides unparalleled flexibility and scalability, empowering you to deliver exceptional customer experiences. At  Rynex...

Hybris SAP Commerce Cloud - Log4j Vulnerability Solution

The Log4j vulnerability is the most high-profile security vulnerability on the internet right now and comes with a severity score of 10 out of 10. I hope by now you are already aware of  Log4j Vulnerability (CVE-2021-44228) . Hence, In this article, I'll not cover more about what log4j vulnerability is. Now let's talk about what is the quick solution or precautionary measures for the SAP Commerce Hybris. If your Hybris solution is  on-premise  or with  SAP Infrastructure (CCV1)  then you should take preventive measures either removing JNDI classes from existing log4j-core-*.jar or upgrading all log4j libs. As of now, let's go with the first option which looks like a quick and easy fix to me. 1) Create /hybris/config/customize/platform/ext/core/lib folder structure in your project 2) Copy  /hybris/bin/platform/ext/core/lib/log4j-core- .jar* file to  /hybris/config/customize/platform/ext/core/lib 3)  Go to   /hybris/config/customize/platform/ex...

How to build hybris storefront less file without server restart

Image
In the Hybris if you need to change the style you need to deal with .less files. .less file need to compile to .css then only you can see the changes applied to your storefront. Generally, hybris build (ant clean all) will take care of .less compilation. But if you are frequently dealing with .less files and you want to build it without restarting/building the platform. You can use the below ant command. 1) Open another CMD/Terminal at your platform directory (you don't need to stop your current running server) 2) Now set ant environment using  setantenv.bat 3) Compile your storefront ant <yourstorefrontextension>_compileuisrc     e.g. ant mystorefront_compileuisrc

How to find the Hybris SAP Commerce version?

  1) By navigating to folder/file You can check the hybris build information (Version) in  build.number  file located at hybris\bin\platform. You will find something like this below. #Ant properties #Tue Oct 06 14:59:00 CEST 2020 builddate=20201006 1444 releasedate=20201006 1444 vendor=hybris version=1811.28 version.api=1811 You can refer to  version  &  version.api  property for the Hybris version. 2) From HAC You can search the above version property from the HAC console. Go to HAC > Platform > Configuration. Now search with "verison"

What is default username and password for Hybris solr?

In Hybris, all authentication and authorization configuration is stored in the security.json file. A sample security.json file is provided which contains the following users: below are the default usernames and passwords for Solr User Password Description solradmin admin123 admin user can perform any operation solrserver server123 for communication between server nodes solrclient client123 can perform search queries Read more about Solr Security

What is the PartOf modifier in Hybris items.xml?

What is PartOf? PartOf modifier is used to define the aggregation relationship between Parent and Child objects. To explain it better I would say PartOf is used to defining cascade delete.  When we delete a Parent object then all its child objects(partOf) will be deleted automatically. Why or When to use PartOf? PartOf may make sense when the relationship involves "is part of" description. For example, an OrderEntry record(AbstractOrderEntry) is part of its parent Order(AbstractOrder), and older entries will never be shared between multiple orders. If the Order were to vanish, the OrderEntry should as well, and an order entry without an Order would be a problem. How to use PartOf? On the removal of an order, if we want to remove all associated order entries automatically, then we can define partOf in its relation like <relation code="AbstractOrder2AbstractOrderEntry" localized="false" generate="true" autocreate="true...

How to Integrate DCEVM code hot-swapping with Hybris Platform

Image
Are you tired of restarting Hybris Platform everytime you change some Java code? Don’t worry, it happens to everyone. The good news is, there are tools available in the market which allow hot-swapping Java code in runtime(No need to redeploy). Like  Jrebel ,  dcevm  etc. Well, Jrebel is very good tools, having many features, but everyone can't afford it(Not free!!). If you are an open sourcist (like me), go with open source DCEVM (Dynamic Code Evolution VM). Continue reading this post if you are looking for How to integrate DCEVM with Hybris Platform? JRebel alternatives for SAP Hybris Java code hot-swapping in Hybris Although, this is documented in  help.hybris , here I'm elaborating exact steps/commands, which I've followed to configure DCEVM in my windows system. 1. Download DCEVM Download the latest release of  DCEVM jar . There are two modes to install the DCEVM Enhanced Debugger (I'm going to configure this here) ...

How to create a Cronjob using Groovy script in SAP Hybris

You can skip  scenario  and  root cause  section below, if you only interested in the groovy script cronjob steps Scenario When we create the ProductReference inside the Product(for stage catalog) using Impex/API. The owning product is not getting sync when we do a catalog sync. Root Cause As per  wiki Modification time issues: Keep in mind that changing a part-of item does not mark its owning item modified automatically. To allow synchronization to schedule the owning item correctly you have to mark it modified manually, preferably inside the part-of item's business code. So here, we can write After Save Event or groovy script to update its owning item(Product) modification time. Now let's see, how can we handle this using groovy script in SAP Hybris. Solution To configure the groovy script as a cronjob, you have to create an instance of Script  - the item type where the script content is going to store. ScriptingJob ...