Hybris - B2C and B2B as different modules in the same project

安稳与你 提交于 2019-12-11 07:45:54

问题


I need to have 2 accelerators, B2C and B2B, in the same project, both working like a separate module with different webroot. Is that possible ?

I have already working B2C accelerator with custom extensions in one module. What I'm trying to achieve is to create another module (used for B2B) that will have same capabilities to use custom extensions and have different storefront on different URL. I tried creating new customized B2B accelerator following this SAP tutorial and I got the correct structure of extensions generated, but then I got some error when using ant clean all, with duplicate attributes for fulfilmentprocess extension.

I tried to use b2b_acc recipe as well, but there it failed during ant modulegen and the structure was not correctly generated.

What are my options here, is it possible to have 2 different modules for B2C and B2B, or I can have only B2B addon for B2C ? How to handle different storefronts on different URLs and some specific overrides for B2C and B2B ? Thanks for any advice.


回答1:


is it possible to have 2 different modules for B2C and B2B?

Yes, you can have B2B & B2C running together. Use Hybris recipe to add that flavor to your site.

How to handle different storefronts on different URLs and some specific overrides for B2C and B2B?

Generate another storefront using extgen and install B2B addons on it. You can maintain different URLs by setting the differnt webroot context.


1) Install the recipe b2c_b2b_acc or which has both B2C & B2B. This helps you to configure the localextensions.xml with the require the extensions.

2) Run the modulegen with accelerator template to generate a custom module. Here you will have a custom storefront extension which you can treat for B2C changes

3) Configure the generated custom storefront extension (Let's say B2CStorefront) as a template. Refer to this answer for the details steps.

4) Generate another storefront extension by using extgen. You can see your custom storefront extension in the template options, choose it and you will have another clone storefront extension. Let me say B2BStorefront.

5) Now install B2B addons as per your requirements. Like b2bacceleratoraddon, commerceorgaddon.

6) Configure website & media URL in both storefront extensions as per your requirements

7) Build & Initialize the system



来源:https://stackoverflow.com/questions/56947577/hybris-b2c-and-b2b-as-different-modules-in-the-same-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!