If there is any addon, which is installed on *storefront extension, then we need to uninstall it.
1) Un install the ootb addon by using below command
ant addonuninstall -Daddonnames="commerceorgaddon" -DaddonStorefront.yb2bacceleratorstorefront="*b2bstorefront"
2) Now add the extegen.properties file ootb extention as below,to show this ootb extention as template while creating new ext
extgen.properties(don't need to commit this)
YEXTNAME_TOKEN=commerceorgaddon
YPACKAGE_TOKEN=commerceorgaddonpackage
YMANAGER_TOKEN=CommerceorgaddonManager
YCLASSPREFIX_TOKEN=Commerceorgaddon
YGENERATED_TOKEN=Generated
now add the below property in that ootbs extention extentioninfo.xml
<meta key="extgen-template-extension" value="true"/>
Now create new extention something like commerceorg*addon using ant extgen command and give template as commerceorgaddon
3) Now move the folder to custom folder and add it in localextentions.xml(i.e repalce commerceorgaddon to commerceorg*addon)
4)Now install the newly created addon using below command
ant addoninstall -Daddonnames="commerceorg*addon" -DaddonStorefront.yb2bacceleratorstorefront="*b2bstorefront"
5)Remove the below commerceorgaddon related property in storefront project.properties
*b2bstorefront.additionalWebSpringConfigs.commerceorgbmiaddon=classpath\:/commerceorg*addon/web/spring/commerceorgaddon-web-spring.xml,classpath\:/commerceorgaddon/web/spring/commerceorgaddon-spring-security-config.xml
NOTE - * means your extension name signature.
No comments:
Post a Comment