cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to install addon to multiple storefronts

rajagayam
Discoverer
0 Likes
923

Hi Team

we have a requirement to create multiple storefront extensions.

created a new extension (B) using the existing Existing Storefront extension(A).

for Storefront A has already a few addons installed Ex:b2bacceleratoraddon

now same addon b2bacceleratoraddon trying to install to Storefront (B) then from Storefront A automatically that addon is uninstalling.

any suggestions?

Accepted Solutions (1)

Accepted Solutions (1)

alemasetto
Participant

As per the documentation: "If more than one storefront is specified, the storefront names must be separated by commas."

https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/20125f0eca6340dba918bda360e3cdfa/8adf73658...

ant addoninstall -Daddonnames="AddOnName1,AddOnName2" -DaddonStorefront.<storefrontTemplateName>="Storefront1,Storefront2"
rajagayam
Discoverer
0 Likes

thanks alemasetto its worked

Answers (1)

Answers (1)

andyfletcher
Active Contributor
0 Likes

In addition to Alessandro's comment, which is certainly true for local development, if you need to do this in CCv2 then you have to specify all shared addons and storefronts with subtly different syntax.

https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/1be46286b36a4aa48205be5a96240672/9a3ab7d08...

e.g.

{
    	"addons": ["xyformssamples","xyformsstorefrontcommons"],
    	"storefronts": ["yacceleratorstorefront","yb2bacceleratorstorefront"],
    	"template": "yacceleratorstorefront"
}

I don't find the documentation particularly clear on this. In fact the Manifest Components Reference refers to "The AddOn name" and "The storefront extension name" with no mention of having multiple values. I assumed that that it would do some clever grouping of the manifest configuration to build the addoninstall command. It doesn't.

rajagayam
Discoverer
0 Likes

thanks, andyf9 currently local development going on ,once we move changes to CCV2 will follow the same