3

You need to select capture option during invoice creation if you select Capture Offline When the invoice is submitted, the system does not capture the payment. It is assumed that the payment is captured directly through the gateway, and you no longer have the option to capture this payment through Magento. Invoice status goes to Paid Capture online When ...


2

Magento invoice pdf design from class Mage_Sales_Model_Order_Pdf_Invoice and Mage_Sales_Model_Order_Pdf_Abstract and Zend PDF.You need customizayion on those classes. atwix has been describe in briefly.Please check at http://www.atwix.com/magento/customize-magento-pdf-invoice-and-packingslip/


2

The increment id is attached to the invoice (orders, shipments and creditmemos) through this method Mage_Sales_Model_Resource_Order_Abstract::_beforeSave. protected function _beforeSave(Mage_Core_Model_Abstract $object) { if ($this->_useIncrementId && !$object->getIncrementId()) { /* @var $entityType Mage_Eav_Model_Entity_Type */ ...


2

To set a time of your choosing for an invoice, you can add this to your script after the invoice is created. This would be most efficient if you have a csv or array to read with your order numbers or ids and the desired time to set. EDIT:: I added a function to create the invoice, just in case. Your choice on whether or not to use it. $stringTime = '...


2

I had a similar problem with another payment module that redirects the customer to a separate payment page. The order was created in redirectAction however invoice was issued in successAction. Which means that if the customer gets to the payment page and pays it successfully but closes the browser before redirecting back to your site, the order is created ...


2

You have to use setTemplate action: <adminhtml_sales_order_invoice_new> <reference name="order_items"> <action method="setTemplate"><template>mymodule/order/invoice/create/items.phtml</template></action> </reference> </adminhtml_sales_order_invoice_new>


2

You can use sales_order_invoice_register that is right after the invoice has been created and before the first save in the database. This event is also triggered if invoices are created automatically.


1

Try this, In your observer namespace Vendor\Module\Observer; class Classname implements \Magento\Framework\Event\ObserverInterface { protected $_request; public function __construct( \Magento\Framework\App\RequestInterface $request ) { $this->_request = $request; } ...


1

The issue is with your controller file path. According to my knowledge you have put the MassActionsController.php under /app/code/local/MiscWS/MassActions/controllers/ You need to put the file under below location: /app/code/local/MiscWS/MassActions/controllers/Adminhtml/ Also for best practice dont use the below line in your observer: 'url' => ...


1

You can see this in action inside Mage_Adminhtml_Sales_Order_InvoiceController class in Magento. Take a look at saveAction inside that class. Sending email is the last step of the process, after Magento has saved the invoice in Database.


1

Your comparison is using a "=" instead of a "==" operator: if($groupId = 6) { Change to if($groupId == 6) {


1

Magento uses the Linux Libertine True Type Font to create the PDF. It is defined in app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php in 3 instances, near lines 793,807 and 821 Unfortunately this font does not have the Indian rupee sign glyph (U+20B9) !! That is why you get these boxes. You can replace the font with one that does have the glyph. ...


1

the full json structure for this post you can find it http://devdocs.magento.com/swagger/index.html just click on salesInvoiceRepositoryV1 and then POST /V1/invoices/ i've made a test with the very least values and it created succesfully an nvoice: { "entity": { "grandTotal": 54, "orderId": 4, "totalQty": 1, "items": [ { "...


1

Just go to app\code\core\Mage\Sales\Model\Order\Pdf\abstract.php and modify the method: insertTotals() , if its not there, the method should be in this file.


1

Take a look at https://magento.stackexchange.com/a/11075/519 You need to include the qty of each item shipped if($order->canInvoice()){ foreach(get item collection just ship){ $qtys[$item->getId()] = $item->getQtyShipped(); } Mage::getModel('sales/service_order', $order)->prepareInvoice($qtys); } Take a look at database table ...


1

I ran an exact copy of the store locally, and changed the mailserver. The time it took to create a shipment was now cut down to 7 seconds. I've contacted the hosting company with this information, and they changed the mailserver (unfortunately I don't know what they've changed exactly). Now the time to process the order/invoice/tracking is normal again. ...


1

The issue in this case is that the order's state needs to be reset. I had a similar issue where the invoice was deleted, but I could not create a new invoice. I used this code on a test.php page to successfully reset the order's status manually. It does delete all invoices in the process just in case there is anything left over. $order_id = 97; $order = ...


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