Hot answers tagged

1

After making the change that @simonthesorcerer suggested, I ended up deleting my widgets.php file and adding the content that was in it to the Featuredproducts.php file. The featuredproducts.php now looks like this: namespace Vendor\Module\Block\Widget; use Magento\Framework\View\Element\Template; use Magento\Widget\Block\BlockInterface; class ...


1

method getProductDataUsingSku is undefined, which means it falls back on the magic __get() method. Replace it in your template with getProductBySku


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