Reputation: 13
Current Scenario We have an implementation that has the following implemented
SAP to Hybris connector (datahub) (manage customers, products, prices, stock levels)
One storefront ( product, carts)
Integration with payment system
Everything works fine .
Is this functionality supported in Hybris? If yes, how is it achieved? What needs to be done? Any suggestions?
Upvotes: 1
Views: 2459
Reputation: 8437
You can create multiple storefronts in a project just the same way you create a new extension using extegen
. Select default template as yacceleratorstorefront
. If multiple controller methods have same URL and type (GET, POST, etc.) then add the annotation @RequestMappingOverride
on top of the method in your main storefront. You need to do this ONLY if you want to implement different business logic for same URL and type. To shutdown a storefront
you have to remove the storefront
entry from localextensions.xml
and run the build before starting server. There is no way to do this on the fly.
Product, prices and stock levels are saved in the databse. These values can be used by different CMSSite
and different storefronts
without any extra customization.
A popular way of doing this is creating a dedicated addon for each payment type using a common payment addon template. Eg- cybersourcepaymentaddon
, paypaladdon
, etc.
Each storefront will operate independently.
Upvotes: 1
Reputation: 5758
You can create multiple CMSSite without development, details are in this answer.
If there are static context/url exist in design or code, you need to make changes on code. For example payment callback url.
If you plan to split products by site, maybe you need changes on datahub for using separate product catalog.
Upvotes: 2