Skip to content

magento man

Magento 2 RightJoin Query have extra Join condition

I’m using a query to provide data for my UI component. $catalogrule = $this->getTable(‘catalogrule’); $this->getSelect() ->reset(Zend_Db_Select::COLUMNS) ->columns([‘s_id’, ‘created_at’, ‘created_by’, ‘sync_status’, ‘error’]) ->joinRight( [‘p’ =>$catalogrule], ‘main_table.magento_id = p.rule_id’, [‘entity_id’ => ‘p.rule_id’,’name’ => ‘p.name’] ) ->group(‘p.rule_id’); parent::_renderFiltersBefore(); but when I print this… Read More »Magento 2 RightJoin Query have extra Join condition

magento2 how to get custom block value on shipping knockout template

How to get the value of a custom block in Knockout Shipping’s template. My code is: Vendor/Extension/view/frontend/layout/checkout_index_index.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceBlock name=”checkout.root”> <block class=”VendorExtensionBlockGooglePayButton” name=”adyen.googlepay.mini-cart”> <action method=”setTemplate” ifconfig=”amasty_checkout/general/enabled”> <argument name=”setTemplate” xsi:type=”string”>Vendor_Extension::googlepay/shortcutcustom.phtml</argument> </action> </block> </referenceBlock> <referenceBlock name=”page.main.title” remove=”true”/>… Read More »magento2 how to get custom block value on shipping knockout template