I have show this type Order ID - Order Data - Order Status and I click on order id then redireck go to order details page in magento 2?

by sanni kalariya   Last Updated April 15, 2019 10:09 AM

I have show this type Order ID - Order Data - Order Status and I click on order id then redirect go to order details page ? how to do this ? exmaple order id is 2 then I click on 2 then go to order details show ?how to create this in magento 2?



Answers 1


Add this to your phtml

<?php
$order = $this->helper('Wds\Coreoverride\Helper\Data')->getCollection();
foreach($order as $items){ ?>
  <div><span>Order Id :</span><a href="<?php echo $block->getUrl('sales/order/history'); ?>"><?php echo $items->getEntityId(); ?></a>
  <?php
  echo "Order Status :". $items->getStatus();
  echo "Subtotal:". $items->getSubtotal();
}

Hope it helps.

Prathap Gunasekaran
Prathap Gunasekaran
April 15, 2019 09:35 AM

Related Questions


Updated September 01, 2016 08:05 AM

Updated May 21, 2017 16:09 PM

Updated May 24, 2015 02:04 AM

Updated July 21, 2017 21:09 PM

Updated May 16, 2018 16:09 PM