Add button feature

This commit is contained in:
2025-08-14 13:01:01 +02:00
commit bd567d0788
7 changed files with 196 additions and 0 deletions

18
README.md Normal file
View File

@@ -0,0 +1,18 @@
# Add To Basket Button #
Use the function to generate the markup. Then just insert the button somewhere in your item element.
### How to use ###
1. Copy the code, and use **idmAddToBasket** function to generate the markup
2. Don't forget to put it somewhere after
```
const afterWhatPaste = document.getElementById('item-container');
const idmAddToBasketElement = idmAddToBasket(product, size);
afterWhatPaste.insertAdjacentHTML('afterend', idmAddToBasketElement);
```
---
Created by • **[IdoMods](https://idomods.pl/)** • 2025