Skip to content

Commit

Permalink
feat(payment): PAYPAL-2039 added color configs to payment buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-dronov committed May 22, 2023
1 parent 9b4f774 commit f84ab0e
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@
"pdp-non-sale-price-label": "",
"pdp-retail-price-label": "",
"pdp-custom-fields-tab-label": "",
"paymentbuttons-paypal-product-details-page-color": "gold",
"paymentbuttons-paypal-cart-page-add-cart-color": "gold",
"paymentbuttons-paypal-checkout-on-top-color": "gold",
"paymentbuttons-paypal-checkout-in-payment-color": "gold",
"paymentbuttons-paypal-color": "gold",
"paymentbuttons-paypal-shape": "rect",
"paymentbuttons-paypal-label": "checkout",
Expand Down
132 changes: 132 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2785,6 +2785,138 @@
"name": "i18n.PaymentButtons",
"enable": "smartButtons",
"settings": [
{
"type": "heading",
"content": "i18n.ProductDetailsPage"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "paymentbuttons-paypal-product-details-page-color",
"enable": "payPalProvidersEnabled",
"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": "heading",
"content": "i18n.CartPageAddToCart"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "paymentbuttons-paypal-cart-page-add-cart-color",
"enable": "payPalProvidersEnabled",
"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": "heading",
"content": "i18n.CheckoutOnTop"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "paymentbuttons-paypal-checkout-on-top-color",
"enable": "payPalProvidersEnabled",
"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": "heading",
"content": "i18n.CheckoutInPayment"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "paymentbuttons-paypal-checkout-in-payment-color",
"enable": "payPalProvidersEnabled",
"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": "heading",
"content": "i18n.PaymentButtonsContainer"
Expand Down
12 changes: 12 additions & 0 deletions schemaTranslations.json
Original file line number Diff line number Diff line change
Expand Up @@ -5201,6 +5201,18 @@
"no": "Vær oppmerksom på at for at endringene skal gjelde, må du navigere til PayPal-innstillingene i BC-kontrollpanelen, deaktivere passende meldingsbannere, klikke på «Lagre»-knappen, aktivere banneret igjen, og klikke på «Lagre»-knappen igjen",
"ko": "변경 사항을 적용하려면 BC 제어판의 PayPal 설정으로 이동하여 적절한 메시징 배너를 비활성화하고 \"저장\" 버튼을 클릭하고 배너를 다시 활성화한 후 \"저장\" 버튼을 다시 클릭해야 합니다"
},
"i18n.ProductDetailsPage": {
"default": "Product Details Page"
},
"i18n.CheckoutOnTop": {
"default": "Checkout on top"
},
"i18n.CheckoutInPayment": {
"default": "Checkout in payment step (Complete order button)"
},
"i18n.CartPageAddToCart": {
"default": "Cart page + Add to cart (PDP add to cart modal)"
},
"i18n.PaymentButtonsContainer": {
"default": "Buttons Container Size",
"fr": "Taille conteneur de boutons",
Expand Down

0 comments on commit f84ab0e

Please sign in to comment.