Skip to content

magento man

How to check postman create order api and add extension attribute to order item magento 2

Magento 2 how add extension attribute to order item create order use postman Place order: [POST] /rest/V1/carts/mine/payment-information set order item extension attribute in magento 2 “extension_attributes”: { “shipping_assignments”: [ { “shipping”: { “total”: { “base_shipping_amount”: 0, “base_shipping_discount_amount”: 0, “base_shipping_discount_tax_compensation_amnt”: 0,… Read More »How to check postman create order api and add extension attribute to order item magento 2

Cannot access private property

What is the meaning of this error? Is the meaning of this is? I’m trying to add the extensions appearance on the product list. main.CRITICAL: Error: Cannot access private property MagentoCatalogBlockProductListProductInterceptor::$pluginList in C:xampphtdocsmagento2vendormagentomodule-catalogBlockProductListProduct.php:429

Call phtml using block code

login to magento admin. Open any cms page and write block code in content section. {{block class=”MagentoFrameworkViewElementTemplate” name=”test_file” template=”Magento_Theme::test.phtml”}} After using the block code phtml file will be called on cms page but after Footer. How can we call before… Read More »Call phtml using block code

Cannot insert custom block into ‘product.price.final’ in XML

Here is my catalog_product_view.xml: I want to insert one CustomBlock to this final price block, so i can use getChildHtml() to call in template final_price.phtml, but it does not work so far, why ? <referenceBlock name=”product.price.final”> <block class=”MagentoFrameworkViewElementTemplate” name=”custom.block” template=”CustomModule::custom.phtml”/>… Read More »Cannot insert custom block into ‘product.price.final’ in XML