-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SC-134] Adding customer reference * [SC-134] Sets customer reference on order payment additional info when order is placed. Reference be shown on order view page in admin. Approved-by: Alexandru-Georgian Mazalu
- Loading branch information
1 parent
41bc056
commit be3a2e1
Showing
3 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
<?php | ||
use Svea\Checkout\Block\Payment\Checkout\Info; | ||
use Magento\Framework\Escaper; | ||
|
||
/** | ||
* @var $block \Svea\Checkout\Block\Payment\Checkout\Info | ||
* @var Info $block | ||
* @var Escaper $escaper | ||
*/ | ||
|
||
?> | ||
<div class="order-payment-method-name"><?php echo $block->escapeHtml($block->getMethod()->getTitle()); ?></div> | ||
<div class="order-payment-method-name"><?= $escaper->escapeHtml($block->getMethod()->getTitle()); ?></div> | ||
<table class="data-table admin__table-secondary"> | ||
<tr> | ||
<th><?php echo $block->escapeHtml(__('Svea Checkout Order ID')); ?>:</th> | ||
<td><?php echo $block->escapeHtml($block->getSveaCheckoutId()); ?></td> | ||
<th><?= $escaper->escapeHtml(__('Svea Checkout Order ID')); ?>:</th> | ||
<td><?= $escaper->escapeHtml($block->getSveaCheckoutId()); ?></td> | ||
</tr> | ||
<tr> | ||
<th><?php echo $block->escapeHtml(__('Svea Payment Method')); ?>:</th> | ||
<td><?php echo $block->escapeHtml($block->getSveaPaymentMethod()); ?></td> | ||
<th><?= $escaper->escapeHtml(__('Svea Payment Method')); ?>:</th> | ||
<td><?= $escaper->escapeHtml($block->getSveaPaymentMethod()); ?></td> | ||
</tr> | ||
<?php if ($block->getSveaCustomerReference()): ?> | ||
<tr> | ||
<th><?= $escaper->escapeHtml(__('Svea Customer Payment Reference')) ?>:</th> | ||
<td><?= $escaper->escapeHtml($block->getSveaCustomerReference()) ?> | ||
</tr> | ||
<?php endif ?> | ||
</table> |