When below code executed, in context to webstore i...
# suitecommerce
l
When below code executed, in context to webstore i.e Scritable cart is ON in SCA webstore
Copy code
function Page_Init(context){
    var currentRecord = context.currentRecord;
    var hasSubrecord = currentRecord.hasSubrecord('shippingaddress');
    var shipcity = currentRecord.getValue({ fieldId: 'shipcity' });
    var shipaddr1 = currentRecord.getValue({ fieldId: 'shipaddr1' });
    log.debug('hasSubrecord',hasSubrecord);
    log.debug('shipcity',shipcity);
    log.debug('shipaddr1',shipaddr1);
}