Skip to content

magento man

Magento 2.4.3-p3 extension attribute not available in API

I’m trying to add a custom order attribute (BC_Pdfinvoice) and make it available in the Order API response. I created a module and added an extension_attributes.xml file here Vendor/Module/etc/extension_attributes.xml: <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Api/etc/extension_attributes.xsd”> <extension_attributes for=”MagentoSalesApiDataOrderInterface”> <attribute code=”BC_Pdfinvoice” type=”string”/> </extension_attributes>… Read More »Magento 2.4.3-p3 extension attribute not available in API

what this means ‘neq’ in magento2

can someone explain for me the this attribute used in array? $order = $this->createObject(Order::class) ->getCollection() ->addFieldToFilter(‘customer_id’, $customer->getId()) ->addFieldToFilter(‘status’,array(‘neq’ => ‘canceled’)); what ‘naq’ => ‘canceled’?

Override a Vendor’s module di.xml : add an argument

I have in some Vendor’s Module di.xml file this entry : <type name=”AmastyRequestQuoteModelPdfPdfInformation”> <arguments> <argument name=”variables” xsi:type=”array”> <item name=”0″ xsi:type=”array”> <item name=”objectType” xsi:type=”string”>quote</item> <item name=”variable” xsi:type=”const”>AmastyRequestQuoteModelSourcePdfVariables::USERNAME</item> <item name=”method” xsi:type=”string”>getCustomerName</item> </item> <item name=”1″ xsi:type=”array”> <item name=”objectType” xsi:type=”string”>custom</item> <item name=”variable” xsi:type=”const”>AmastyRequestQuoteModelSourcePdfVariables::CUSTOMER_STREET</item> <item… Read More »Override a Vendor’s module di.xml : add an argument

Problem with Overriding 3rd party module phtml template

I need to override the third party module template file app/code/Codazon/Shopbybrandpro/view/frontend/templates/brand/brand_search.phtml Relevant Block from Original <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” layout=”1column” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceContainer name=”content”> <block class=”CodazonShopbybrandproBlockBrandAllBrands” name=”all_brands” template=”Codazon_Shopbybrandpro::brand/all_brands.phtml”> <block class=”CodazonShopbybrandproBlockWidgetBrandSearch” name=”brand_search” template=”Codazon_Shopbybrandpro::brand/brand_search.phtml” /> <block class=”CodazonShopbybrandproBlockWidgetBrandSlider” name=”featured_brands” template=”Codazon_Shopbybrandpro::brand/featured_brands.phtml” /> <block class=”CodazonShopbybrandproBlockBrandAllBrands” name=”brand_alphabet_list” template=”Codazon_Shopbybrandpro::brand/list-container.phtml”>… Read More »Problem with Overriding 3rd party module phtml template