Hot answers tagged

1

This path is simple product module vendor\magento\module-catalog and you create the custom theme override you theme like :- Vendor_Name\Theme_Name\Magento_Catalog After you override must be run this command :- php bin/magento s:up php bin/magento c:f Hope this help you Thanks ...


1

Whilst the first answer works, not only it is rather messing up the template but more importantly, it is not reusable a lot. In your case, you want to reuse this product spec block in the search. I have come up with a solution more robust but it comes with a cost that you have to do more changes in your system. you have to create another layout file called ...


1

Changing the list.phtml template, The below does work for me: <?php $blockSpecs = $block->getChildBlock('product-specs'); if ($blockSpecs) { $blockSpecs->setProduct($_product); echo $blockSpecs->toHtml(); } ?>


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