cancel
Showing results for 
Search instead for 
Did you mean: 

Could you please tell me what is step to created b2b module in hybris 6.0.0?

Former Member
0 Kudos

Hi,

Could someone tell me what are the steps to be followed for the creation of b2b module in hybris 6.0.0.0?

I have tried using b2c_acc recipe and created modules,only 2 modules are getting generated for me i.e.,[cockpits and fulfillment process]

Kindly guide me for the creation of 7 modules using b2b accelerator.

Regards Sahitya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Sahitya,

Actually i meant to use "ant modulegen" instead of "recipe installer". (mentioned in the link)

Because using recipe is kind of a quick installation, just including some "yTemplate" extensions.
Like using "b2b_acc" recipe to install b2b accelerator, is working at the end.
But it does not generate your own accelerator extensions, which should be what you wanted.

So using "ant modulegen" to generate the 7 core accelerator extenions,
then you need to use the new generated 7 accelerator extensions to replace the "yacceleratorXXXX" extension, you may modify it based on the "localextensions.xml" which is created by "b2b_acc" recipe:

     <extension name='mcc' />
     <extension name='backoffice' />
     <extension name='commercesearchbackoffice' />
     <extension name='b2bcommercebackoffice' />
     <extension name='commerceservicesbackoffice' />
     <extension name='solrfacetsearchbackoffice' />
     <extension name='b2badmincockpit' />
     <extension name='yacceleratorcockpits' />
     <extension name='yacceleratorinitialdata' />
     <extension name='yacceleratorfulfilmentprocess' />
     <extension name='yaddon' />
     <extension name='ycommercewebservices' />
     <extension name='powertoolsstore' />
     <extension name='solrserver' />
     <extension name='acceleratorwebservicesaddon' />
     <extension name='b2bacceleratoraddon' />
     <extension name='commerceorgaddon' />
     <extension name='customersupportbackoffice' />
     <extension name='rulebuilderbackoffice' />
     <extension name='promotionenginebackoffice' />
     <extension name='droolsruleengineservices' />
     <extension name='promotionenginesamplesaddon' />
     <extension name='yb2bacceleratorstorefront' />


As in hybris 6.0, there is no such "yb2baccelerator" templates anymore, both B2B and B2C accelerators are based on the same core accelerator template extensions. And even "yb2bacceleratorstorefront" which is generated by "b2b_acc" recipe, is the same as the "yacceleratorstorefront" (only name is different) However, for B2B it has b2b addon extension, which has difference from B2C.

Hopefully it is clear for you.
Thanks a million.
Kind Regards,
Hongxian

Answers (3)

Answers (3)

bikrambsinha
Participant
0 Kudos

Hi Vipin,

Once I run b2b_acc recipe, it is creating "yb2bacceleratorstorefront" extension under custom folder. After that if I run modulegen, the process is failing saying that not extgen.properties file exists under "yb2bacceleratorstorefront" which is true. I then manually deleted this generated extension and ran modulegen again. It worked this time and all 7 extensions were generated.

Have you faced the same issue ? Is it fine to delete that custom folder before running modulegen ant target ?

I had followed the first option from this link.

https://wiki.hybris.com/display/accdoc/Creating+a+Customized+B2B+Accelerator+with+Modulegen (Simple Setup)

Former Member
0 Kudos

Hello Sahitya

Please follow the steps for B2B modulegen custom in Hybris 6.0

Step 1: Navigate to the /installer directory. install.bat -r b2c_acc for b2b custom

step 2- Navigate to the /platform directory.

Step 3 - Set your ant environment by entering the following command: setantenv.bat

Step 4 - Run the ant modulegen command ant modulegen -Dinput.module=accelerator -Dinput.name=training -Dinput.package=de.hybris.training -Dinput.template=develop if you want to change training name then change the extgen/project.properties in plateform folder

Step - 5 After running the ant modulegen command, open the localextensions.xml file, which is located in /hybris/config.

remove or comment these extensions -yacceleratorcockpits,yacceleratorinitialdata, yacceleratorfulfilmentprocess, yacceleratorstorefront

add these extensions - trainingcore, trainingfacades, trainingstorefront, traininginitialdata, trainingtest, trainingcockpits, trainingfulfilmentprocess

Add the following B2B Accelerator extensions to the localextensions.xml file: powertoolsstore, b2bcommercebackoffice, b2badmincockpit, b2bacceleratoraddon, commerceorgaddon

Step- 6 Install the B2B Accelerator AddOns on the training storefront by running the following ant commands from the /platform directory:

ant addoninstall -Daddonnames="b2bacceleratoraddon" -DaddonStorefront.yacceleratorstorefront="trainingstorefront"

ant addoninstall -Daddonnames="commerceorgaddon" -DaddonStorefront.yacceleratorstorefront="trainingstorefront"

Step- 7 Add the following properties to /hybris/config/local.properties:

website.powertools.http=http://localhost:9001/trainingstorefront website.powertools.https=https://localhost:9002/trainingstorefront

Step - 8 Build and initialize Hybris Commerce by running the following ant command from the /platform directory:

ant initialize

Step -9 Start the Hybris server by running the following command from the /platform directory:

hybrisserver.bat

Step -10 B2B Url for running

https://localhost:9002/trainingstorefront/?site=powertools

Thanks, Vipin

Former Member
0 Kudos

Hi Sahitya,

I think you should be able to generate those 7 accelerator extensions in 6.0 by using "ant modulegen" for b2c I think the recipes are just the quick installation by including the templates.
Similarly you can generate b2b accelerator using b2b module.
And you may have a look at this link: Customizing the Accelerator with extgen and modulegen
Thanks,
Hongxian

Former Member
0 Kudos

Hi Hongxian,

Thanks for the response...

Which recipe do we need to use? I have tried with b2b_acc installer,only two extensions have created cockpits and fulfillment. with b2c_b2b_acc recipe,additionally yb2bacceleratorstorefront is also getting created in Custom directory.By this at the time of modulegen,conflicts are happening between yacceleratorstorefront and yb2bacceleratorstorefront and build fails without creating.

Regards Sahitya

Former Member
0 Kudos

Hi Sahitya,

As of hybris 5.7, there is no longer a yb2bacceleratorstorefront extension OOB in the hybris Commerce Suite. Instead, b2b is now a series of addons to the yacceleratorstorefront. That is the reason that the yb2bacceleratorstorefront is being created in the custom directory.

In order to resolve the conflicts for the modulegen, remove yacceleratorstorefront from the localextension.xml file.