cancel
Showing results for 
Search instead for 
Did you mean: 

SmartEdit: smarteditaddon not working in SAP CCV2 Cloud deployment

phoude
Participant
0 Kudos
568

Hi,

I am trying to enable smartedit on my B2B storefront which is working just fine in my local environment but not in CCV2. I noticed that bean defined in smarteditaddon-spring.xml are loaded but not those defined in smarteditaddon-web-spring.xml. Without it, it is not possible to fully load the page in smartedit because it is missing specific classes on the body html element which is the job of smarteditaddonCmsPageBeforeViewHandler.

I followed instructions for installing smartedit in the SAP cloud but came across that note

This is a section of my manifest file:

"storefrontAddons": [
{
"addon": "b2bacceleratoraddon",
"storefront": "mystorefront",
"template": "yb2bacceleratorstorefront"
},
{
"addon": "assistedservicestorefront",
"storefront": "mystorefront",
"template": "yb2bacceleratorstorefront"
},
{
"addon": "accountsummaryaddon",
"storefront": "mystorefront",
"template": "yb2bacceleratorstorefront"
},
{
"addon": "smarteditaddon",
"storefront": "mystorefront",
"template": "yb2bacceleratorstorefront"
}
],

My storefront was created from yb2bacceleratorstorefront. I would be really surprised if I cannot enable smartedit on my B2B storefront.

Anyone else facing the same issue?

I am running version 2105

Accepted Solutions (1)

Accepted Solutions (1)

mansurarisoy
Contributor

The image you uploaded could not be displayed, but I think you should set template as yacceleratorstorefront in manifest.json, not yb2bacceleratorstorefront. If you look for the cx recipe's build.gradle file you should see that for B2B storefront, template is specified as yacceleratorstorefront. Thus, in manifest.json, you should do the same

addons {
    forStoreFronts('yacceleratorstorefront,yb2bacceleratorstorefront') {
        names(
            'adaptivesearchsamplesaddon',
            ... // Other addons
            'ysapproductconfigaddon'
        )
        template 'yacceleratorstorefront'
    }

    forStoreFronts('yb2bacceleratorstorefront') {
        names(
            'accountsummaryaddon',
            ... // Other addons
            'sapproductconfigb2baddon'
        )
        template 'yacceleratorstorefront'
    }
}

Hope this helps,

phoude
Participant
0 Kudos

Thanks for your answer. Not sure why my image did not make it the first time. I did update my question with the note about smarteditaddon and the yaccelaratorstorefront. I also added section of my manifest file. Your version of the manifest seems to be different than mine syntactically. Are you deploying to CCV2 cloud?

mansurarisoy
Contributor
0 Kudos

Mine is not manifest.json, it's build.gradle, sorry for creating confusion

I think your manifest.json should contain something similar to the following:

"storefrontAddons": [
    {
        "addon": "b2bacceleratoraddon",
        "storefront": "mystorefront",
        "template": "yacceleratorstorefront"
    },
    {
        "addon": "assistedservicestorefront",
        "storefront": "mystorefront",
        "template": "yacceleratorstorefront"
    },
    {
        "addon": "accountsummaryaddon",
        "storefront": "mystorefront",
        "template": "yacceleratorstorefront"
    },
    {
        "addon": "smarteditaddon",
        "storefront": "mystorefront",
        "template": "yacceleratorstorefront"
    }
],
phoude
Participant
0 Kudos

Unfortunately it did not work for us. The deployment failed with very little detail as to why it failed. We try to deploy again but this time the deployment never completed so we had to cancel. As soon as we reverted the changes to manifest.json then we were able to deploy again.

mansurarisoy
Contributor
0 Kudos

For the detailed logs you can raise a ticket to SAP Support. Within cloud portal, sometimes it's hard to find logs for failed deployments.

phoude
Participant
0 Kudos

Perhaps it was a bad day at SAP when we tried to deploy it the first time. We tried again today using the yacceleratorstorefront and it worked. Thanks much!!

Answers (0)