diff --git a/CHANGELOG.md b/CHANGELOG.md index 806a3094cb..d5c991e9de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Stop lazyloading store logo [#1357](https://github.com/bigcommerce/cornerstone/pull/1357) - Update lazysizes plugin to 4.1.2 [#1358](https://github.com/bigcommerce/cornerstone/pull/1358) - Improve performance of first carousel slide [#1356](https://github.com/bigcommerce/cornerstone/pull/1356) +- Add support for Paypal smart buttons settings [#1359](https://github.com/bigcommerce/cornerstone/pull/1359) ## 2.4.0 (2018-09-14) - Fix encoding issues on Account Signup Form ("'" characters showing in country name)[#1341] (https://github.com/bigcommerce/cornerstone/pull/1341) diff --git a/config.json b/config.json index f36aaebc57..69db2d86d9 100644 --- a/config.json +++ b/config.json @@ -294,7 +294,14 @@ "pdp-price-label": "", "pdp-sale-price-label": "Now:", "pdp-non-sale-price-label": "Was:", - "pdp-retail-price-label": "MSRP:" + "pdp-retail-price-label": "MSRP:", + "paymentbuttons-paypal-layout": "horizontal", + "paymentbuttons-paypal-color": "gold", + "paymentbuttons-paypal-shape": "pill", + "paymentbuttons-paypal-size": "small", + "paymentbuttons-paypal-label": "checkout", + "paymentbuttons-paypal-tagline": true, + "paymentbuttons-paypal-fundingicons": false }, "read_only_files": [ "/assets/scss/components/citadel", diff --git a/schema.json b/schema.json index f5c007e07a..71c38d28f0 100644 --- a/schema.json +++ b/schema.json @@ -2619,5 +2619,127 @@ "id": "optimizedCheckout-loadingToaster-textColor" } ] + }, + { + "name": "Payment Buttons", + "enable": "smartButtons", + "settings": [ + { + "type": "select", + "label": "Layout", + "id": "paymentbuttons-paypal-layout", + "force_reload": true, + "options": [ + { + "value": "horizontal", + "label": "Horizontal" + }, + { + "value": "vertical", + "label": "Vertical" + } + ] + }, + { + "type": "select", + "label": "Color", + "id": "paymentbuttons-paypal-color", + "force_reload": true, + "options": [ + { + "value": "gold", + "label": "Gold" + }, + { + "value": "blue", + "label": "Blue" + }, + { + "value": "silver", + "label": "Silver" + }, + { + "value": "black", + "label": "Black" + } + ] + }, + { + "type": "select", + "label": "Shape", + "id": "paymentbuttons-paypal-shape", + "force_reload": true, + "options": [ + { + "value": "pill", + "label": "Pill" + }, + { + "value": "rect", + "label": "Rectangle" + } + ] + }, + { + "type": "select", + "label": "Size", + "id": "paymentbuttons-paypal-size", + "force_reload": true, + "options": [ + { + "value": "small", + "label": "Small" + }, + { + "value": "medium", + "label": "Medium" + }, + { + "value": "large", + "label": "Large" + }, + { + "value": "responsive", + "label": "Responsive" + } + ] + }, + { + "type": "select", + "label": "Display Label", + "id": "paymentbuttons-paypal-label", + "force_reload": true, + "options": [ + { + "value": "checkout", + "label": "Paypal Checkout" + }, + { + "value": "pay", + "label": "Pay with Paypal" + }, + { + "value": "buynow", + "label": "Buy Now" + }, + { + "value": "paypal", + "label": "Paypal" + } + ] + }, + { + "type": "checkbox", + "label": "Display the Paypal Tagline", + "force_reload": true, + "id": "paymentbuttons-paypal-tagline" + }, + { + "type": "checkbox", + "label": "Display the Funding Icons", + "force_reload": true, + "id": "paymentbuttons-paypal-fundingicons" + } + ] } ]