Skip to content

Commit

Permalink
docs(platform-addtocart): snap variants must be enabled for full addt…
Browse files Browse the repository at this point in the history
…ocart functionality
  • Loading branch information
chrisFrazier77 committed Jun 18, 2024
1 parent cccba7d commit 0307766
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/snap-platforms/bigcommerce/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const AddToCart = (props) => {
```

## AddToCart
The `addToCart` function will automatically add products to the cart and then redirect to the cart page (`/cart.php`). The function is async, and takes an array of products (Result Store References) to add, and an optional config. The optional config can take two optional properties, `redirect` and `idFieldName`.
The `addToCart` function will automatically add products to the cart and then redirect to the cart page (`/cart.php`). The function is async, and takes an array of products (Result Store References) to add, and an optional config. The optional config can take two optional properties, `redirect` and `idFieldName`. Snap variants must be enabled for full functionality.

The `redirect` property can be set to `false` or supplied with an alternate redirect URL instead of the default (`/cart.php`).

Expand Down
2 changes: 1 addition & 1 deletion packages/snap-platforms/magento2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const AddToCart = (props) => {
```

## AddToCart
The `addToCart` function will automatically add products to the cart and then redirect to the cart page (`/checkout/cart/`). The function is async, and takes an array of products (Result Store References) to add, and an optional config. The optional config can take several optional properties, `redirect`, `idFieldName`, `formKey`, and `uenc`.
The `addToCart` function will automatically add products to the cart and then redirect to the cart page (`/checkout/cart/`). The function is async, and takes an array of products (Result Store References) to add, and an optional config. The optional config can take several optional properties, `redirect`, `idFieldName`, `formKey`, and `uenc`. Snap variants must be enabled for full functionality.

The `redirect` property can be set to `false` or supplied with an alternate redirect URL instead of the default (`/checkout/cart/`).

Expand Down
2 changes: 1 addition & 1 deletion packages/snap-platforms/shopify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const AddToCart = (props) => {
```

## AddToCart
The `addToCart` function will automatically add products to the cart and then redirect to the cart page (`/cart`). The function is async, and takes an array of products (Result Store References) to add, and an optional config. The optional config can take two optional properties, `redirect` and `idFieldName`.
The `addToCart` function will automatically add products to the cart and then redirect to the cart page (`/cart`). The function is async, and takes an array of products (Result Store References) to add, and an optional config. The optional config can take two optional properties, `redirect` and `idFieldName`. Snap variants must be enabled for full functionality.

The `redirect` property can be set to `false` or supplied with an alternate redirect URL instead of the default (`/cart`).

Expand Down

0 comments on commit 0307766

Please sign in to comment.