From ec33a553c4e32f9011883543cf852d2916b97b6b Mon Sep 17 00:00:00 2001 From: victorhmp Date: Wed, 18 Sep 2019 18:47:50 -0300 Subject: [PATCH 1/3] Add customToastURL prop to ProductSummaryBuyButton --- .../ProductSummaryBuyButton/ProductSummaryBuyButton.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/react/components/ProductSummaryBuyButton/ProductSummaryBuyButton.js b/react/components/ProductSummaryBuyButton/ProductSummaryBuyButton.js index 3d265e8d..bb81d866 100644 --- a/react/components/ProductSummaryBuyButton/ProductSummaryBuyButton.js +++ b/react/components/ProductSummaryBuyButton/ProductSummaryBuyButton.js @@ -18,6 +18,7 @@ const ProductSummaryBuyButton = ({ displayBuyButton, isOneClickBuy, buyButtonText, + customToastURL, runtime: { hints: { mobile }, }, @@ -63,6 +64,7 @@ const ProductSummaryBuyButton = ({
Date: Wed, 18 Sep 2019 18:49:26 -0300 Subject: [PATCH 2/3] Update CHANGELOG --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79656d40..e1977303 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added +- `customToastURL` prop to be passed down into `BuyButton`. ## [2.34.5] - 2019-09-13 ### Fixed From 361304454e541aa66fdfd56b0546aaaa5cc52616 Mon Sep 17 00:00:00 2001 From: victorhmp Date: Wed, 18 Sep 2019 19:14:56 -0300 Subject: [PATCH 3/3] Update ProductSummaryBuyButton README --- docs/ProductSummaryBuyButton.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/ProductSummaryBuyButton.md b/docs/ProductSummaryBuyButton.md index 2f7fe782..85c048e0 100644 --- a/docs/ProductSummaryBuyButton.md +++ b/docs/ProductSummaryBuyButton.md @@ -38,6 +38,7 @@ Through the Storefront, you can change the `ProductSummaryBuyButton`'s behavior | `isOneClickBuy` | `Boolean` | Should redirect to checkout after clicking on buy | `false` | | `buyButtonText` | `String` | Custom buy button text | | | `displayBuyButton` | `Enum` | Set display mode of buy button (displayButtonAlways, displayButtonHover, displayButtonNone) | `displayButtonAlways` | +| `customToastURL` | `String` | Set the link associated with the Toast created when adding an item to your cart. | `/checkout/#/cart` | ### Styles API