Skip to content

magento man

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

Why creating an empty cart via REST API requires parameters for quote address for this customer account?

I’m using Magento 2.3.3. Normally, calling this endpoint will return customer’s quote ID. But for this specific user, I got this error as a response: { “message”: “One or more input exceptions have occurred.”, “errors”: [{ “message”: “”%fieldName” is required.… Read More »Why creating an empty cart via REST API requires parameters for quote address for this customer account?