above code started giving me an error jQuery.Defer...
# suitecommerce
l
above code started giving me an error jQuery.Deferred exception: Cannot read properties of undefined (reading 'custbody_customerref') any idea why?
s
The API reference documentation lists reasons why it would fail, so I would make sure that you have eliminated those. I think the most common ones are that you have not exposed the custom field to the frontend by adding it to the configuration record for the domain and you are not setting it in a place where it is available. For this, I think only they can really only be set during the checkout.
Admittedly, after some playing around, I am kinda surprised it only works in the checkout. I think there is something not right in the validation process.
l
Hmm, It's works in checkout after configuring body fields, But not working on shopping page i.e on cart page.
I had another question steve, Sorry to bother you-- Here it is I get the "nlapiRC" & "doshippingrecalc" fields values when Scriptable cart is ON and on "Sublist Changed(recalc) event i.e add/update/remove quantity event. But also don't see any reference in any Netsuite document or on Suite Answers regeranding these two fields. my question is- Can I use these fields in client script for some processing? can these fields will be available in future as well? Do we have any reference of these fields anywhere?
s
Hmm, It's works in checkout after configuring body fields, But not working on shopping page i.e on cart page.
Yes, this is confusing me too. We allow body fields to be set in the shopping application so long as the domain is secure and the user is logged in, and the underlying LiveOrder.Model code seems to work just fine, but not the extensibility API method.
Can I use these fields in client script for some processing? can these fields will be available in future as well? Do we have any reference of these fields anywhere?
I'm not familiar enough with these to be authoritative about them.
l
Thanks