I am facing an extensibility api error I cannot fi...
# suitecommerce
k
I am facing an extensibility api error I cannot figure out. Using addToViewContextDefinition on the ‘Header.MiniCart.View’. Keep getting view_id is not valid for the current component. Any thoughts?
s
Could you post your code please
k
Layout.addToViewContextDefinition(‘Header.MiniCart.View’, ‘itemsCountExt’, ‘number’, function ItemsCountExt(context) { context.itemsCountExt = 2; return context.itemsCountExt; });
Only seeing the error on shopping.ssp, myAccount and Checkout do not throw the error.
s
Your code snippet above contains 'smart' quotes, is that just a copy and paste error
k
Sorry yeah I’m replying from my phone, had to type it manually.
s
Your code works fine for me
And you're getting this error when looking at the homepage?
k
Yeah, only when deployed and on the shopping.ssp
s
if you have it deployed, can you send me a link?
k
I just deployed and replaced the api call. Give me one moment.