Skip to content

magento man

Magento 2 – Serve cached content from Varnish while fetching a new object from the backend to deliver it on the next request

When I change any objects in the Magento backend, a PURGE request is sent to Varnish which results in a slow response time once a customer requests the changed product. The site is then loaded into cache, so that the… Read More »Magento 2 – Serve cached content from Varnish while fetching a new object from the backend to deliver it on the next request

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’?