Modifying the method of an injected class/object

I’m trying to modify the behavior of a class method in a 3rd party module. The module is adding indexers via etc/indexer.xml, e.g. <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Indexer/etc/indexer.xsd”> <indexer id=”es_product_indexer” view_id=”es_product_indexer” class=”Co\EsIndexerCatalog\Model\Indexer\Product”> <title translate=”true”>Es Product Indexer</title> <description translate=”true”>Update Products data in ES</description> </indexer> and in this example, say the constructor for namespace Co\EsIndexerCatalog\Model\Indexer; use Co\EsIndexerCatalog\Model\Indexer\Action\Product as ProductAction;…

Magento2: Payment method is not showing on checkout page

The payment method is not showing on the checkout page. console error: Uncaught Error: Script error for: Magento_Checkout/js/model/place-order b2aee5ee1e36f296863f6f91b53a4ae9.min.js:16 Uncaught Error: Script error for: Magento_Checkout/js/model/place-order http://requirejs.org/docs/errors.html#scripterror at makeError (b2aee5ee1e36f296863f6f91b53a4ae9.min.js:16) at HTMLScriptElement.onScriptError (b2aee5ee1e36f296863f6f91b53a4ae9.min.js:112) Please help me.

Magento2: Payment method is not showing on checkout page

The payment method is not showing on the checkout page. console error: Uncaught Error: Script error for: Magento_Checkout/js/model/place-order b2aee5ee1e36f296863f6f91b53a4ae9.min.js:16 Uncaught Error: Script error for: Magento_Checkout/js/model/place-order http://requirejs.org/docs/errors.html#scripterror at makeError (b2aee5ee1e36f296863f6f91b53a4ae9.min.js:16) at HTMLScriptElement.onScriptError (b2aee5ee1e36f296863f6f91b53a4ae9.min.js:112) Please help me.

Magento2: Payment method is not showing on checkout page

The payment method is not showing on the checkout page. console error: Uncaught Error: Script error for: Magento_Checkout/js/model/place-order b2aee5ee1e36f296863f6f91b53a4ae9.min.js:16 Uncaught Error: Script error for: Magento_Checkout/js/model/place-order http://requirejs.org/docs/errors.html#scripterror at makeError (b2aee5ee1e36f296863f6f91b53a4ae9.min.js:16) at HTMLScriptElement.onScriptError (b2aee5ee1e36f296863f6f91b53a4ae9.min.js:112) Please help me.

Newly added category attribute not saving in magento 2 backend

I followed this tutorial to add an attribute to my category : https://www.mageplaza.com/devdocs/magento-2-category-attributes-programmatically/ This is my installdata.php <?php namespace XX\XX\Setup; use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\ModuleDataSetupInterface; use Magento\Eav\Setup\EavSetupFactory; class InstallData implements InstallDataInterface { private $eavSetupFactory; public function __construct(EavSetupFactory $eavSetupFactory) { $this->eavSetupFactory = $eavSetupFactory; } public function install( ModuleDataSetupInterface $setup, ModuleContextInterface $context ) { $eavSetup =…

Admin Grid in Magento2? dynamic Horizontal columns

I have a custom admin grid. i understand how to build dynamic veritical rows. However, I wonder if it’s possible to be build dynamic horizontal columns. I would appreciate any advice. below is an example greating dynamic vertical rows: <container name=”dynamic_rows_container”> <argument name=”data” xsi:type=”array”> <item name=”config” xsi:type=”array”> <item name=”component” xsi:type=”string”>Magento_Ui/js/dynamic-rows/dynamic-rows</item> <item name=”template” xsi:type=”string”>ui/dynamic-rows/templates/default</item> <item name=”componentType”…

get creditmemo Pdf with template

I manage to obtain the creditmemos in pdf format via this code (for a webservice) $result = array(); //….. //…. Mage::app()->setCurrentStore($store_id); // my store id $CreditMemo = Mage::getResourceModel(‘sales/order_creditmemo_collection’) ->addAttributeToSelect(‘*’) ->addAttributeToFilter(‘entity_id’, array(‘in’ => $creditmemo_id)) ->load(); if ($CreditMemo->getSize() > 0) { $pdf = Mage::getModel(‘sales/order_pdf_Creditmemo’)->getPdf($CreditMemo); if ($pdf) { $file = $pdf->render(); // get the pdf content $result[‘file’] =…

Magento 2: I have a problem with configuring gallery magnifier in product details page

I’m looking for an effect like the one this site or at least close to it: https://fashionmix.bg/mazhki-cherni-visoki-ketsove-shagren-it251019-16 But when I configure magnifier in view.xml and set zoom mode to “Inside”, there is a square that does not move smoothly. Is there any chance of achieving what I want or I just should use external plugin…

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>…