Skip to content

magento2.4.0

Auto Added by WPeMatico

Magento 2 How to get the Order Extension_Attribute Value in AfterPlugin

How to get an order’s extension attribute value when creating the order via the API? For example to create an order I’m calling /rest/V1/carts/mine/payment-information with the following payload: { “payment_method”: { “method”: “cashondelivery” }, “email”: “[email protected]”, “billingAddress”: { “country_id”: “US”,… Read More »Magento 2 How to get the Order Extension_Attribute Value in AfterPlugin

Email css not processed

At header template is: <style type=”text/css”> {{var template_styles|raw}} {{css file=”css/email.css”}} </style> At email html is content of file (css/email.css) : <style type=3D”text/cs= s”>=0A =0A=0A =0A=0A=0A=0A=0A=0A@import ‘source/lib/_lib.l= ess’; // Global lib=0A@import ‘source/lib/variables/_email.less’; // Glo= bal email variables=0A@import ‘source/_theme.less’; // Global variables=20=… Read More »Email css not processed

Zend Pdf round corners in rectangle section

I wrote the below code to show rectangle in pdf file $page->setFillColor(new Zend_Pdf_Color_GrayScale(0.92)); $page->setLineColor(new Zend_Pdf_Color_GrayScale(0.92)); $page->drawRectangle($x, $oldY+20, ($pageWidth/2)-50, $this->y-10); $page->setFillColor(new Zend_Pdf_Color_GrayScale(0)); $page->setLineColor(new Zend_Pdf_Color_GrayScale(0)); AND Output is But I need round corners in rectangle how can I do this in Magento… Read More »Zend Pdf round corners in rectangle section