Magento 1 – How to get shipping address bottom of the invoice PDF

I just add following script into app/code/mage/sales/model/order/pdf/invoice.php protected function _drawFooter(Zend_Pdf_Page $page, $store = null) { $this->_setFontRegular($page, 10); $page->setFillColor(new Zend_Pdf_Color_RGB(0, 0, 0)); $this->y -= 10; $page->drawLine(25, $this->y-200, 570, $this->y-200); $shippingAddress = $this->_formatAddress($order->getShippingAddress()->format(‘pdf’)); $page->drawText($shippingAddress, 35, $this->y-230, ‘UTF-8’); } full code : <?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject […]

Magento 1.9 – How to add custom details in invoice print PDF?

Invoice PDF print file: /app/code/core/Mage/Sales/Model/Order/Pdf/invoice.php ​ <?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * * If […]

Managing products outside Magento

What I want to achieve is to update products with information from another app. So I wrote an app that communicates with Magento and the other app. Everything is fine, except I use Magento 2.2 and it doesn’t support bulk endpoints. As a result, using the API is slow. It takes about 4.5 seconds to […]

Create Custom Shipping Method in Magento 2

I was creating one custom module in Magento 2 and I need to create custom shipping method in that module to full fill requirement. Because, that custom requirement not provide by Magento’s default shipping method. So, for that I created custom shipping method. You can also use this method to create custom shipping method. Read […]

Connector for 3rd party marketplace orders?

We have an interface built to get our Magenta 2 orders I to our ERP (D365). We currently manually key our 3rd party marketplace orders into our ERP because we haven’t gotten around to building 3 interfaces (Amazon, eBay, Walmart) to our ERP. I thought maybe if we could just do a plugin that gets […]

Order status when unpaid

We have some B2B accounts that have terms, meaning that we are shipping their orders before receiving their payments. In M1 we used the “Payment Validated” function, so when a B2B order was shipping it had the status “Complete” and payment validated “no”. But in M2 I don’t see the Payment Validated function. What would […]