php - Magento Coupon description on invoice -
i want print coupon description on pdf invoice, totals.
so edited local copy of: mage/sales/model/order/pdf/abstract.php
protected function inserttotals($page, $source, $orderdata){ $order = $source->getorder(); $totals = $this->_gettotalslist($source); //get coupon code , print $discount = $order->getdata('coupon_code'); $page->drawtext($discount, 290, 290, 'utf-8');
i able coupon_code not coupon description. know best way this?
thanks in advance!
Comments
Post a Comment