Magento 2: how to add sidebar order summary on my front-end home page

On Magento 2.3 I’d like to display the Order Summary via the sidebar on the home page and display on it the selected value from the select dropdown checkbox . This is my module : Home Page : *) Layout helloworld_index_index.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” layout=”1column” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <referenceContainer name=”content”> <block class=”Mageplaza\HelloWorld\Block\Index” name=”helloworld_index_index” template=”Mageplaza_HelloWorld::index.phtml” /> </referenceContainer>…

Magento 2: how to add sidebar order summary on my front-end home page

On Magento 2.3 I’d like to display the Order Summary via the sidebar on the home page and display on it the selected value from the select dropdown checkbox . This is my module : Home Page : *) Layout helloworld_index_index.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” layout=”1column” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <referenceContainer name=”content”> <block class=”Mageplaza\HelloWorld\Block\Index” name=”helloworld_index_index” template=”Mageplaza_HelloWorld::index.phtml” /> </referenceContainer>…

how to get product collection filtred by products on sale

I’m trying to get collection of products with promotional price. Does someone has an idea how to et it? protected function _getProductCollection() { if (is_null($this->_productCollection)) { $categoryID = $this->getCategoryId(); if($categoryID) { $category = new Mage_Catalog_Model_Category(); $category->load($categoryID); // this is category id $collection = $category->getProductCollection(); } else { $collection = Mage::getResourceModel(‘catalog/product_collection’); } $todayDate = date(‘m/d/y’); $tomorrow…

Magento 2: “Add to Wishlist” not adding configurable products options

I am trying to add wish list button in mini cart,it works well for simple products but not adding the options for configurable products. Override Magento_Checkout mini-cart template: <?php namespace Custom\Module\CustomerData\Preference; use Magento\Framework\App\ObjectManager; use Magento\Catalog\Model\Product\Configuration\Item\ItemResolverInterface; class DefaultItem extends \Magento\Checkout\CustomerData\DefaultItem { protected $imageHelper; protected $msrpHelper; protected $urlBuilder; protected $configurationPool; private $wishlistHelper; public function __construct( \Magento\Catalog\Helper\Image $imageHelper,…