Spartacus Type Augmentation to add new attribute in Product without creating custom Model

add new attribute in OOB product UI model and  OOC product model.


declare module '@spartacus/core' {

  interface Product {

    newattributename?: string;

  }



  namespace Occ {

    interface Product{

      newattributename?: string;

    }

  }

Comments

Popular posts from this blog

Hybris / SAP Commerce Cloud Groovy Scripting Job to Generate CSV/Excel Reports and copy to Commerce cloud Blob Storage

Emma's dream - a kids story - By Kavya

Find Duplicate CMSItem in Hybris/SAP Commerce Cloud.