Skip to content

Commit 0d49eeb

Browse files
committed
MC-19917: 2 Place order buttons appear on the PayPal Review page with PayPal Express only
1 parent 90b9c43 commit 0d49eeb

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

app/code/Magento/Paypal/view/frontend/templates/express/review.phtml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@
136136
value="<?= $block->escapeHtml(__('Place Order')) ?>">
137137
<span><?= $block->escapeHtml(__('Place Order')) ?></span>
138138
</button>
139-
<button type="button" id="review-submit" class="action checkout primary"
140-
value="<?= $block->escapeHtml(__('Place Order')) ?>">
141-
<span><?= $block->escapeHtml(__('Place Order')) ?></span>
142-
</button>
143139
</div>
144140
<span class="please-wait load indicator" id="review-please-wait" style="display: none;"
145141
data-text="<?= $block->escapeHtml(__('Submitting order information...')) ?>">

app/code/Magento/Paypal/view/frontend/web/js/order-review.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ define([
2626
agreementSelector: 'div.checkout-agreements input',
2727
isAjax: false,
2828
updateShippingMethodSubmitSelector: '#update-shipping-method-submit',
29-
reviewSubmitSelector: '#review-submit',
3029
shippingMethodUpdateUrl: null,
3130
updateOrderSubmitUrl: null,
3231
canEditShippingMethod: false
@@ -57,8 +56,7 @@ define([
5756
this.options.updateContainerSelector
5857
)
5958
).find(this.options.updateOrderSelector).on('click', $.proxy(this._updateOrderHandler, this)).end()
60-
.find(this.options.updateShippingMethodSubmitSelector).hide().end()
61-
.find(this.options.reviewSubmitSelector).hide();
59+
.find(this.options.updateShippingMethodSubmitSelector).hide().end();
6260
this._shippingTobilling();
6361

6462
if ($(this.options.shippingSubmitFormSelector).length && this.options.canEditShippingMethod) {

0 commit comments

Comments
 (0)