Dukaan Functions

1. After add to bag event

window.afterAddToBagCall = (productUUID, skuUUID) => {
    alert(`Add to bag button clicked`);
}

2. Product card renderer

It renders the product card

mountElement is the element inside which the card is to be rendered. Mount element is the element which is targeted and inside which the current product card is to be appended.

productCardRenderer(mountElement, product, {
      additionalRenderer: nameOfYourFunction
});

3. Category card renderer

It renders the category card

mountElement is the element inside which the card is to be rendered. It is the element which is targeted and inside which the current category card is to be appended.

categoryCardRenderer(mountElement, category, {
      additionalRenderer: nameOfYourFunction
});

Last updated