3

You can make the region field optional from admin, follow below steps. Step 1 Login to the back end of Magento 2. On the Admin sidebar, navigate to Stores > Settings > Configuration. Under the panel of General, select General. Scroll down to explore the State Option section. Step 2 In the State Option list: Choose the country where the State/ Region is ...


2

Please try below, $Commenthistory = "Order Comment History"; $page->drawText($Commenthistory, 20, $this->y, 'UTF-8'); $this->y -= 15; foreach ($invoice->getOrder()->getStatusHistoryCollection() as $status){ $textChunk = wordwrap(strip_tags($status->getComment()), 410, "\n"); foreach(explode("\n", $textChunk) as $textLine){ ...


1

di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="Magento\Sales\Model\Order\Pdf\Invoice" type="Vendor\Module\Model\Rewrite\Order\Pdf\Invoice" /> </config> app/code/Vendor/Module/Model/...


Only top voted, non community-wiki answers of a minimum length are eligible