Skip to content

Commit

Permalink
Merge pull request #1359 from lord2800/PAYMENTS-3071
Browse files Browse the repository at this point in the history
PAYMENTS-3071 Add the schema and config options for paypal smart button configuration
  • Loading branch information
Ubersmake authored Sep 24, 2018
2 parents b9703e0 + e2a0d76 commit 77bb7b5
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 8 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
122 changes: 122 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
]

0 comments on commit 77bb7b5

Please sign in to comment.