# Shopify Functions

## Add `useIgCart()`

* Use the [`useIgCart()`](https://headless.intelligems.io/reference/hooks/cart-and-checkout-hooks#useigcart) hook if your site uses the Storefront **Cart** API.
* The `wrapCustomAttributes` helper is only needed if you're performing shipping tests or need line item properties added to ATC requests.

## Add `useIgCartAttributes()` (optional)

If you build carts manually (for example, via `cartCreate` or `cartLinesAdd`), use [`useIgCartAttributes()`](https://headless.intelligems.io/reference/hooks/cart-and-checkout-hooks#useigcartattributes) for the attributes payload that should be included in your cart requests.
