Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(payments): PAYPAL-712 Checkout page - Smart Payment Button styli… #1866

Merged
merged 3 commits into from
Nov 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Draft
- Added styling config for the PayPal SPB on checkout page [#1866](https://github.com/bigcommerce/cornerstone/pull/1866)

## 4.12.0 (11-03-2020)
- Reduce lodash usage in compare-products.js and image-gallery.js [#1827](https://github.com/bigcommerce/cornerstone/pull/1827)
6 changes: 5 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -331,7 +331,11 @@
"paypal"
],
"lazyload_mode": "lazyload+lqip",
"show-admin-bar": true
"show-admin-bar": true,
"checkout-paymentbuttons-paypal-color": "black",
"checkout-paymentbuttons-paypal-shape": "rect",
"checkout-paymentbuttons-paypal-size": "large",
"checkout-paymentbuttons-paypal-label": "pay"
},
"read_only_files": [
"/assets/scss/components/citadel",
96 changes: 96 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
@@ -2802,6 +2802,10 @@
{
"value": "black",
"label": "i18n.Black"
},
{
"value": "white",
"label": "i18n.White"
}
]
},
@@ -2884,6 +2888,98 @@
"label": "i18n.ShowButtonsVertically"
}
]
},
{
"type": "heading",
"content": "i18n.CheckoutPayPalButton"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "checkout-paymentbuttons-paypal-color",
"force_reload": true,
"options": [
{
"value": "gold",
"label": "i18n.Gold"
},
{
"value": "blue",
"label": "i18n.Blue"
},
{
"value": "silver",
"label": "i18n.Silver"
},
{
"value": "black",
"label": "i18n.Black"
},
{
"value": "white",
"label": "i18n.White"
}
]
},
{
"type": "select",
"label": "i18n.ButtonShape",
"id": "checkout-paymentbuttons-paypal-shape",
"force_reload": true,
"options": [
{
"value": "pill",
"label": "i18n.Pill"
},
{
"value": "rect",
"label": "i18n.Rectangle"
}
]
},
{
"type": "select",
"label": "i18n.ButtonSize",
"id": "checkout-paymentbuttons-paypal-size",
"force_reload": true,
"options": [
{
"value": "small",
"label": "i18n.Small"
},
{
"value": "medium",
"label": "i18n.Medium"
},
{
"value": "large",
"label": "i18n.Large"
}
]
},
{
"type": "select",
"label": "i18n.ButtonContent",
"id": "checkout-paymentbuttons-paypal-label",
"force_reload": true,
"options": [
{
"value": "checkout",
"label": "i18n.PayPalCheckout"
},
{
"value": "pay",
"label": "i18n.PayWithPayPal"
},
{
"value": "buynow",
"label": "i18n.BuyNow"
},
{
"value": "paypal",
"label": "i18n.PayPal"
}
]
}
]
}
6 changes: 6 additions & 0 deletions schemaTranslations.json
Original file line number Diff line number Diff line change
@@ -1895,6 +1895,9 @@
"uk": "Срібний",
"zh": "银"
},
"i18n.White": {
"default": "White"
},
"i18n.Black": {
"default": "Black",
"fr": "Noir",
@@ -1992,5 +1995,8 @@
"it": "Mostra bottoni in verticale",
"uk": "Показати кнопки вертикально",
"zh": "垂直显示按钮"
},
"i18n.CheckoutPayPalButton": {
"default": "Checkout PayPal Button"
}
}