Posts

Showing posts with the label helphybris

SAP Hybris Installation and Deployment Architecture - [Part2]

If you not gone through Part1 , then please read it first. Centralized logging Hybris OOTB there is  centralized_logging  recipes, which can be used if you have  Docker  base setup. Anyway, you can set up your own  ELK Stack  (Elasticsearch-Logstash-Kibana), which is a good combination as Log Management Solution (Open Source). You can use Redis for the large enterprise solution to decouple the Log Server & Log Shipper. Tools: Logstash: As a log shipper and a log indexer Redis: As a broker – used as a queuing system ElasticSearch: As a log indexer – store and index logs Kibana: As a front-end viewer – a nice UI with useful extra features Install & configured  above stack to get consolidated logs from all application servers. Advanced Application Monitoring SAP Hybris Commerce Advanced Application Monitoring is a tool for analyzing network traffic within the Hybris system. Advanced Application Monitoring is vital for administrating and monitoring the he

How to set fix toAdress in Hybris for all email?

If you want to send all emails to some fix  toAddress , in that case, you need to override  email  and  displayName  in respective  *EmailContext  of  renderer template . Let's just assume you want to override  toAddress  in customer registration flow. So here you need to find context class name form Impex. Below are the renderer template for customer registration subject & body and  CustomerEmailContext  is the class name which will feed all data to this renderer. # Email velocity templates INSERT_UPDATE RendererTemplate ; code[unique=true] ; contextClass ; rendererType(code)[default='velocity'] ; powertools_Email_Customer_Registration_Body ; $emailPackageName.CustomerEmailContext ; powertools_Email_Customer_Regist

How to support multiple toAddress CC BCC and attachments in hybris email?

Scenario We want to send email to multiple addresses, also want to support the email attachments. Unfortunately, it's not happening in OOTB action. Background Hybris OOTB  EmailService  which is responsible to send email is supporting every field like attachments, BCC, etc. But  EmailGenerationService  is not populating those fields into  EmailMessageModel . So good news is we only need to override generation service to feed all require data to  EmailMessageModel Solution We have to define our custom attributes in BusinessProcess itemType to stores the values and access it in the later process. Also, we have to override generate method of  DefaultEmailGenerationService  which responsible to generate  EmailMessageModel . Let's see it step by step. 1) Define custom attribute in BusinessProcessModel To do so, you have to define attributes like below in your  *-items.xml  file. Now build your server( ant clean all ), which will generate  BusinessProcessModel