> For the complete documentation index, see [llms.txt](https://docs.mydukaan.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mydukaan.io/dukaan-functions.md).

# Dukaan Functions

## 1. After add to bag event

```javascript
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.

```javascript
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.

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