We’re rewarding the question askers & reputations are being recalculated! Read more.

Hot answers tagged

2

you can replace your code with this <?php namespace Butterfly\Emi\Block\Index; class Index extends \Magento\Framework\View\Element\Template { protected $_registry; protected $_categoryFactory; protected $_productPrice; public function __construct( \Magento\Backend\Block\Template\Context $context, \Magento\Framework\...


2

Just Declare private $productPrice; And Use $this->productPrice Instead of $productPrice


1

Please add this to your Standalone script. foreach (new DirectoryIterator('./descr_images') as $fileInfo) { if ($fileInfo->isDot()) { continue; } $imagePath = $fileInfo->getFilename(); // path of the image $filesystemIo = $objectManager->create('\Magento\Framework\Filesystem\Io\File'); $filePath = ''; // Path of your ...


1

1. Create XML Layout file checkout_index_index.xml in your theme path like below your-theme/Magento_checkout/view/frontend/layout/checkout_index_index.xml 2.Add Below Code in file checkout_index_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="urn:magento:...


Only top voted, non community-wiki answers of a minimum length are eligible