on 2022 Sep 22 4:23 AM
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
Request clarification before answering.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
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"
}
],
User | Count |
---|---|
12 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.