Magento 2: how to add sidebar summary order 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>…

Create conditions for coupon rule in Magento 2

I’m trying to create conditions in the coupon rules, but when creating the conditions they are not aggregated correctly Im doing: $rule = $this->couponRule; $cond[‘conditions’][‘1’][‘type’]= ‘Magento\SalesRule\Model\Rule\Condition\Combine’; $cond[‘conditions’][‘1’][‘new_child’]= ”; $cond[‘conditions’][‘1’][‘aggregator’]= ‘all’; $cond[‘conditions’][‘1’][‘value’]= 1; $cond[‘conditions’][‘1–1’][‘type’]= ‘Magento\SalesRule\Model\Rule\Condition\Product\Found’; $cond[‘conditions’][‘1–1’][‘new_child’]= ”; $cond[‘conditions’][‘1–1’][‘value’]= 1; $cond[‘conditions’][‘1–1’][‘aggregator’]= ‘all’; $cond[‘conditions’][‘1–1–1’][‘type’]= ‘Magento\SalesRule\Model\Rule\Condition\Product’; $cond[‘conditions’][‘1–1–1’][‘attribute’]= ‘category_ids’; $cond[‘conditions’][‘1–1–1’][‘attribute_scope’]= ‘parent’; $cond[‘conditions’][‘1–1–1’][‘operator’]= ‘!{}’; $cond[‘conditions’][‘1–1–1’][‘value’]= 10; try { $rule->setName(‘Cupom Dinâmico’) ->setDescription(‘Criado…

Create conditions for coupon rule in Magento 2

I’m trying to create conditions in the coupon rules, but when creating the conditions they are not aggregated correctly Im doing: $rule = $this->couponRule; $cond[‘conditions’][‘1’][‘type’]= ‘Magento\SalesRule\Model\Rule\Condition\Combine’; $cond[‘conditions’][‘1’][‘new_child’]= ”; $cond[‘conditions’][‘1’][‘aggregator’]= ‘all’; $cond[‘conditions’][‘1’][‘value’]= 1; $cond[‘conditions’][‘1–1’][‘type’]= ‘Magento\SalesRule\Model\Rule\Condition\Product\Found’; $cond[‘conditions’][‘1–1’][‘new_child’]= ”; $cond[‘conditions’][‘1–1’][‘value’]= 1; $cond[‘conditions’][‘1–1’][‘aggregator’]= ‘all’; $cond[‘conditions’][‘1–1–1’][‘type’]= ‘Magento\SalesRule\Model\Rule\Condition\Product’; $cond[‘conditions’][‘1–1–1’][‘attribute’]= ‘category_ids’; $cond[‘conditions’][‘1–1–1’][‘attribute_scope’]= ‘parent’; $cond[‘conditions’][‘1–1–1’][‘operator’]= ‘!{}’; $cond[‘conditions’][‘1–1–1’][‘value’]= 10; try { $rule->setName(‘Cupom Dinâmico’) ->setDescription(‘Criado…