Skip to content

Commit

Permalink
Patch Release: Merge pull request #417 from helloextend/leads_fix_092024
Browse files Browse the repository at this point in the history
Patch Release: Update leads.phtml
  • Loading branch information
jm-extend authored Sep 4, 2024
2 parents adafb5e + 74c7111 commit 93c06b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion view/adminhtml/templates/order/view/leads.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ $warrantyUniqueID = 'order' . $item->getOrderId() . '-' . $item->getId();

<?php if ($viewModel->showLeadOffer($item)):?>
<?php
$leadTokenString = implode(", ", $leadToken);
$scriptString = <<<EOT
require(['jquery',
'mage/url',
Expand All @@ -45,7 +46,7 @@ $warrantyUniqueID = 'order' . $item->getOrderId() . '-' . $item->getId();
const plan = opts.plan;
if (plan) {
let url = "{$block->getUrl('extend/warranty/leads')}";
let leadToken = "{implode(", ", $leadToken)}";
let leadToken = "{$leadTokenString}";
let order = "{$block->getOrder()->getId()}";
let qty = "{$viewModel->getLeftLeadsQty($item)}";
plan.product = '{$viewModel->getProductSkuByOrderItem($item)}';
Expand Down

0 comments on commit 93c06b2

Please sign in to comment.