0

On extending the file

vendor/magento/module-shipping/view/adminhtml/templates/order/tracking/view.phtml

File in Magento 2.4 getting error like

1 exception(s):
Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in var/www/html/hl/app/code/Custom/Shipping/view/adminhtml/templates/order/tracking/view.phtml on line 30

My file path is app/code/Custom/Shipping/view/adminhtml/templates/order/tracking/view.phtml

I have checked that the file is override but it does not take the block data from there.

Any one have idea regarding that how to get those data in custom module file.

Any help is appreciated.

3
  • Please share code of overriding phtml
    – Pawan
    Commented Jul 13, 2021 at 11:41
  • @Pawan thanks for your response i have found the issue and solved it.
    – Prits
    Commented Jul 13, 2021 at 12:04
  • glad to know that :)
    – Pawan
    Commented Jul 13, 2021 at 12:32

1 Answer 1

0

Actually i didn't extend these two files also

adminhtml_order_shipment_addtrack.xml and adminhtml_order_shipment_removetrack.xml

I have extended only adminhtml_order_shipment_view.xml this file which cause the issue then i have extend the block file as i want some modification and its working fine now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.