Skip to content

Commit

Permalink
add extra property to breadConfig to disallow splitpay checkout from …
Browse files Browse the repository at this point in the history
…PDP and cart
  • Loading branch information
David Froneberger committed Oct 28, 2019
1 parent 398221a commit 8cc12f9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions view/adminhtml/web/js/breadcheckout.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ define(

var breadConfig = {
buttonId: 'bread-checkout-btn',
allowSplitPayCheckout: false,
shippingOptions: [data.shippingOptions],
tax: data.tax,
customTotal: data.grandTotal,
Expand Down
1 change: 1 addition & 0 deletions view/frontend/templates/breadcheckout/cartview.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

var breadConfig = {
buttonId: "bread-checkout-btn",
allowSplitPayCheckout: false,
asLowAs: <?= /* @noEscape */ $block->getAsLowAs(); ?>,
actAsLabel: false,
<?php if (!$block->isHealthcare()) : ?>
Expand Down
1 change: 1 addition & 0 deletions view/frontend/templates/breadcheckout/grouped.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

var breadConfig = {
buttonId: "bread-checkout-btn",
allowSplitPayCheckout: false,
<?php if (!$block->isHealthcare()) : ?>
items: items,
<?php else : ?>
Expand Down
1 change: 1 addition & 0 deletions view/frontend/templates/breadcheckout/minicart.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

var breadConfig = {
buttonId: "bread-checkout-btn-minicart",
allowSplitPayCheckout: false,
asLowAs: <?= /* @noEscape */ $block->getAsLowAs(); ?>,
actAsLabel: false,
<?php if (!$block->isHealthcare()) : ?>
Expand Down
1 change: 1 addition & 0 deletions view/frontend/templates/breadcheckout/view.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
var financingInfo = <?= /* @noEscape */ $block->getFinancingJson(); ?>;
var breadConfig = {
buttonId: "bread-checkout-btn",
allowSplitPayCheckout: false,
asLowAs: <?= /* @noEscape */ $block->getAsLowAs(); ?>,
<?php if (!$block->isHealthcare()) : ?>
items: items,
Expand Down

0 comments on commit 8cc12f9

Please sign in to comment.