Skip to content

Commit

Permalink
Fixed issue with Delivery Date display in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin-Magmodules committed Sep 20, 2024
1 parent ecf1305 commit 933a6b3
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,18 @@ use Paazl\CheckoutWidget\Ui\Component\Order\Listing\Column\Status\Options;
</span>
<?php endif; ?>
<?php if ($estimatedDeliveryRange = $shippingInfo->getEstimatedDeliveryRange()) : ?>
<span class="estimated-delivery-range date-wrapper">
<span class="label"><?= /* @escapeNotVerified */ __('Earliest Delivery Date'); ?></span>:
<span class="value"><?= /* @escapeNotVerified */ $estimatedDeliveryRange['earliestDate']; ?></span>
</span>
<?php if (isset($estimatedDeliveryRange['earliestDate'])) : ?>
<span class="estimated-delivery-range date-wrapper">
<span class="label"><?= /* @escapeNotVerified */ __('Latest Delivery Date'); ?></span>:
<span class="value"><?= /* @escapeNotVerified */ $estimatedDeliveryRange['latestDate']; ?></span>
</span>
<span class="label"><?= /* @escapeNotVerified */ __('Earliest Delivery Date'); ?></span>:
<span class="value"><?= /* @escapeNotVerified */ $estimatedDeliveryRange['earliestDate']; ?></span>
</span>
<?php endif;?>
<?php if (isset($estimatedDeliveryRange['latestDate'])) : ?>
<span class="estimated-delivery-range date-wrapper">
<span class="label"><?= /* @escapeNotVerified */ __('Latest Delivery Date'); ?></span>:
<span class="value"><?= /* @escapeNotVerified */ $estimatedDeliveryRange['latestDate']; ?></span>
</span>
<?php endif;?>
<?php endif; ?>
<?php if ($carrierPickupDate = $shippingInfo->getCarrierPickupDate()) : ?>
<span class="carrier-pickup-date date-wrapper">
Expand Down

0 comments on commit 933a6b3

Please sign in to comment.