Integration Guides

product-list

Type: JSON[]

[{"productId": "string", "quantity": "string"}]\

The product-list attribute accepts a list of JSON objects, each defining a quantity and product id, for each product in a list of items (such as items in a Cart). If the component is on a PDP, then only a single item needs to be added to the array.

Croissant will automatically GET prices for each product in the list and calculate the sum of Croissant Guaranteed Buybacks for each Croissant-eligible item.

Example:

<croissant-toggle product-list="[{'productId': '1233456789', 'quantity': '1'}]"></croissant-toggle>

🧪 Recipes