Is this correct
# suitecommerce
g
Is this correct
s
Go to this page https://developers.suitecommerce.com/section4786239896 and scroll down to the "Code Examples" section
My guess is that you're not providing a valid data model for
addLine
and so you would probably benefit from either fetching item data (which is an additional cost if you make a fetch for a product that has not been cached by Backbone) or using an item model from the page you are on
g
Thank you steve
s
Also when you set the value of
cartcc
, that is binding to the current context (which will be
this
) but then immediately after, you are calling
self.cartcc
. Have you defined what
self
is? Have you binded
cartcc
to it?
g
Yes..I have defined var self=this