Copy this file into your custom theme
public_html\vendor\magento\module-sales\view\frontend\templates\order\info.phtml
public_html\app\design\frontend\Infortis\ultimo\Magento_Sales\templates\order\info.phtml
add below code
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$productCollectionFactory = $objectManager->get('\Magento\Sales\Block\Order\Recent');
//print_r($productCollectionFactory->getReorderUrl($_order));
?>
<div class="buttons-set">
<?php if ($this->helper('Magento\Sales\Helper\Reorder')->canReorder($_order->getEntityId())) : ?>
<a href="#" data-post='<?php /* @escapeNotVerified */ echo
$this->helper(\Magento\Framework\Data\Helper\PostHelper::class)
->getPostData($productCollectionFactory->getReorderUrl($_order))
?>' class="action order">
<span><?= /* @escapeNotVerified */ __('Reorder') ?></span>
</a>
<?php endif ?>
</div>
Comments
Post a Comment