$image = \Zend_Pdf_Image::imageWithPath($this->_mediaDirectory->getAbsolutePath($imagePath)) If($this->_mediaDirectory->isFile($imagePath)) $image = $this->scopeConfig->getValue('sales/identity/logo',\Magento\Store\Model\ScopeInterface::SCOPE_STORE,$this->_modelStoreManagerInterface->getStore()->getId()) $this->_logLoggerInterface->debug($e->getMessage()) $resultJson = $this->resultFactory->create(ResultFactory::TYPE_JSON) >addTo($this->scopeConfig->getValue(self::XML_PATH_EMAIL_ADMIN_EMAIL, $storeScope)) >setFrom($this->scopeConfig->getValue(self::XML_PATH_EMAIL_ADMIN_QUOTE_SENDER, $storeScope)) >setTemplateIdentifier($this->scopeConfig->getValue(self::XML_PATH_EMAIL_ADMIN_QUOTE_NOTIFICATION, $storeScope)) $storeScope = ScopeInterface::SCOPE_STORE $pdfContent = $this->createPdf($customerName,$email) $this->_mediaDirectory = $filesystem->getDirectoryWrite(DirectoryList::MEDIA) $this->_transportBuilder = $quoteTransportBuilder $this->_logLoggerInterface = $logLoggerInterface $this->inlineTranslation = $inlineTranslation $this->_modelStoreManagerInterface = $modelStoreManagerInterface $this->scopeConfig = $configScopeConfigInterface \Magento\Framework\Filesystem $filesystem \Magento\Framework\Mail\Template\TransportBuilder $quoteTransportBuilder, ScopeConfigInterface $configScopeConfigInterface, StoreManagerInterface $modelStoreManagerInterface, Use Magento\Framework\App\Filesystem\DirectoryList Ĭonst XML_PATH_EMAIL_ADMIN_QUOTE_SENDER = 'emailcustom/general/sender' Ĭonst XML_PATH_EMAIL_ADMIN_QUOTE_NOTIFICATION = 'emailcustom/general/template' Ĭonst XML_PATH_EMAIL_ADMIN_EMAIL = 'emailcustom/general/reciver' Use Magento\Framework\Controller\ResultFactory Use Magento\Framework\Translate\Inline\StateInterface Use Magento\Store\Model\StoreManagerInterface Use Magento\Framework\App\Config\ScopeConfigInterface Use Magento\Framework\App\Action\Context namespace CompanyName\ModuleName\Controller\Index Compatible with the latest Magento 2.4.Create Sendmail.php file at app/code/CompanyName/ModuleName/Controller/Index and write the following code in it. Have a Technical issue with our Extension? We are here to Help! - Submit a Ticket.Ĭompatible with Adobe Commerce (on-prem) : Once you have configured the extension, the extension will automatically generate invoice and shipment for the orders if it falls under eligibility criteria after payment status is verified. Now select the customer groups and payment methods for which you want to enable auto invoice & shipment functionality. No programming skills are required for installation.Īfter installing this extension inside your Magento 2 store, you need to enable it from the backend.The extension works flawlessly across all browsers without any issue. Completely open source & does not affect any core files.Uses the default Magento 2 functionality to send invoices and shipment emails to your customers.After integrating this extension, it will automatically generate invoice and shipment once the payment status is verified.Using the backend option, you can select specific payment methods as well as a customer group for which you want to enable this functionality.You can also turn on only the autogeneration of invoices or shipments or both if needed.Backend option to enable or disable the extension.There is also an option to enable this auto-generate functionality only for specific customer groups or payment methods if required. It changes all the order statuses from “processing” to “complete” by generating invoices and shipments. This extension can even be helpful if you are selling digital products or services using the Magento store to complete orders. Also, simultaneously it sends default invoice and shipment email to your customer. The extension first verifies payment status and generates the invoice and shipment for that order respectively. Instead, to save your time you must have one automated solution that automatically generates invoices and shipments for all store orders.Īuto Invoice & Shipment Extension by MageComp lets the store owner automatically generates invoice and shipment once the order status is turned to complete. However, it takes longer to manually process the number of orders one by one. Once the order is received in your Magento 2 store, you have to manually create an invoice and shipment for that order after the payment is received. In default Magento, there are different kinds of order status based on different order activities such as order placement, shipment, invoice, credit memo, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |