Questions tagged [invoice]

Magento payment invoice generated as a confirmation of payment receipt

Filter by
Sorted by
Tagged with
3
votes
2answers
4k views

How to get collection of invoices of a customer?

I am using below code but it is giving error please help. $collection = Mage::getModel("sales/order_invoice")->getCollection()->addFieldToFilter('customer_id',$customerId);
3
votes
2answers
4k views

Magento 2 | How can I get the invoice pdf programatically?

I'm currently creating a module which should send the invoice pdf via eMail to a customer. How can I get the invoice pdf programatically? Thanks for any help!
3
votes
2answers
5k views

Magento 2 change Invoice PDF Font and Add logo and mailing Address in Footer

I want to change Invoice Pdf format.In default magento footer part is not added in pdf invoice.I want to add footer and in footer there will be logo and mailing addres.Also I am looking for update ...
3
votes
2answers
637 views

Stock reduction on Invoice instead of Order

Currently, stock gets reduced when the Order has been placed, is there any way to change on invoice? As there, lot of junk orders, is there any way to make stock reducing when invoice for the ...
3
votes
3answers
5k views

Observer on sales_order_invoice_save_after

I need to execute some actions when the Order Invoice is created, so I've made an Observer and I've attached it to 'sales_order_invoice_save_after' event. The problem is that my Observer function is ...
3
votes
1answer
2k views

How to increase the logo image quality for pdf invoices in Magento 1.9

I would like to increase the quality of the logo in the PDF invoices. At the moment I upload a logo exactly 200x50 px in size and with JPG quality 99 and it still looks terrible. I also tried PNG24 ...
3
votes
1answer
7k views

Event to observe invoice creation and get the invoiced item quantities

I need to observe the invoice creation event and get only the invoiced item quantities since I use partial invoicing sometimes. I tried the events sales_order_invoice_save_after and ...
3
votes
1answer
392 views

Error programmatically rendering an invoice PDF

The error: Invalid template file: 'Magento_Payment::info/pdf/default.phtml' in module: 'Magento_Payment' block's name: 'info\instructions_0' The class: <?php namespace Vendor\PDF\Response\...
3
votes
1answer
1k views

Magento2 - plugin / event after invoice is created

I need to execute some custom code after invoice is created I have some code working fine, when invoices are created in backoffice (I am observing sales_order_save_before event & checking for a ...
3
votes
1answer
230 views

Downloadable Product Links in Zero Subtotal Checkout Invoice Emails

The Root Problem The root of all this is actually pretty straightforward - the store has free downloadable software products, and they need invoices to be created for them when they're ordered. I've ...
3
votes
1answer
9k views

How to stop auto invoice generation with Credit Card or Paypal payment methods

I need to stop Magento (version 1.8.1.0) from generating invoices automatically with credit card or paypal payment methods. I look at registerCaptureNotification() in app/code/Mage/Sales/Model/Order/...
3
votes
1answer
1k views

magento 2 extra fee not adding to grandtotal in invoice

magento 2 extra fee not adding to grandtotal in invoice block is calling but model is not calling <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
3
votes
1answer
2k views

How to auto complete / invoice order in Magento?

I have Magento webshop, and I sell virtual products, with API all my products get send out automatically when the order is invoiced / completed. It would be a lot easier if It could complete / ...
3
votes
1answer
746 views

Magento 2 Invoice Capture Options

In Magento 1, you can enable capture options for an invoice by adding protected $_canCapture = true; to app\code\core\Mage\Payment\Model\Method\METHODNAME.php In Magento 2, how can this be done? I'...
3
votes
2answers
278 views

The Invoice and order email not received

I tried for an hour, but I can't find the correct solution for my problem. My Magento version is 1.9.2.2 and updated security patch. Now after placing the order the order and invoice mail can't be ...
3
votes
1answer
2k views

Magento Convert Quote to Order

Was working on my database and discovered I had a foreign Key error. No problems, fixed that. However, whilst I was working on the database, a website order came through. The order shows up in the ...
3
votes
1answer
113 views

How to handle orders that are not paid in full?

I'd like to deduct items already paid and generate an invoice for the still outstanding sum. Whats the proper way to do that? thank in advance Milan
3
votes
1answer
2k views

How to change date format for Order Invoices In Magento 2

I want to change the date format for admin in Sales->Order(view order)->Invoices tab in 24H format I tried to find how this grid is rendered and i found(with template path hinth) that this table is ...
3
votes
1answer
3k views

Magento 2 - trigger order email and invoice on status change

In a custom Magento 2 module, I have some code that successfully creates an order from a quote and sets the status to "pending". After payment, I would like to programmatically validate the order, ...
3
votes
1answer
162 views

Print Order Error Generated From my Account 'My Orders' Section

Yesterday we installed a complete theme on our Magento website. We create a demo order by registering itself to test this procedure so we tried to print out the order invoice from my account option '...
3
votes
1answer
757 views

The tax for shipping and handling is displayed twice on my PDF invoices

We have a issue with our invoice grand total where the shipping tax is added twice.
3
votes
1answer
932 views

Create invoice again which was deleted programmatically

I had deleted an invoice programmatically by using the following code: $invoice = Mage::getModel('sales/order_invoice')->load(97); $invoice->delete(); Now I need Invoice Button to invoice ...
3
votes
1answer
793 views

Add “discount” to invoice PDF

When I view an invoice I can see if a discount was applied to each line item. However when I print the PDF for it I do not get the discount as a line item but just a total. I see my table headers in:...
3
votes
1answer
752 views

How can I add the line item discount per product on an invoice?

I'm assuming invoice.php is the correct file. I want to have the discounts as line items instead of the aggregate total near the order totals. Where does this pull from? protected function ...
3
votes
2answers
582 views

Customers using Cyrillic or Russian alphabet

I am working on a UK-based site - but we have customers all over the world, including Russia. However, when customers enter their address using the non-latin Russian / Cyrillic alphabet, there are ...
3
votes
1answer
802 views

Is it possible to add a Magento partial payment invoice state

In Magento invoices can have 3 states, Paid, Pending Canceled. Is it possible to add a 4th one, so I can set an invoice "partial paid". This should be visible in the admin grid in Magento. I ...
3
votes
2answers
1k views

Adding Country of Origin and HS Code to email Invoice?

I'm trying to style all of our company's order, invoice and shipping email. I need to add "Country of Origin" and "HS Code" attributes on to the invoice email. How can I put these custom attributes ...
3
votes
2answers
547 views

Can not open PDF document when an order is completed

I am receiving an error with the PDF document when an order is completed and I select “Print Invoice” from the drop down menu. When the PDF has been generated and l go to open it on my computer l get ...
3
votes
1answer
747 views

Add item to totals in pdf invoice

We have a pdf invoices with totals displaying both prices with included and excluded tax, but without a subtotal. What we need now only on pdf invoices is to display a total when the discount (coupon ...
3
votes
0answers
19 views

Magento 2.2.3 problem with invoiced order, can´t edit order

I have a store with two payment methods. ProxyPay - Generate an order without shipment or invoice with status equal Processing. When Magecomp 1.0.0 detect payment, state of order is passed to ...
3
votes
1answer
17 views

Display pie chart at order invoice grid

I want to display the pig chart on the invoice grid and the pie chart should be updated after applying the filer in the grid. Well, I am able to display the Pie chart on the sales order invoice grid ...
3
votes
1answer
66 views

When Create Invoice Give error Like “Transaction has been declined. Please try again later.” In Magento 2

I have to configure the Amazone pay Payment Method then place an order using amazon-pay successfully after the admin side creates an invoice but gives an error like "Transaction has been declined. ...
3
votes
0answers
86 views

Create uncollected invoices (customers have 30 days to pay) in Magento 2.3.1

When I create an order manually for a customer who places his order over the phone, I need to create his PDF invoice in order to send it. But when I do this, the invoice is created already paid, but I ...
3
votes
0answers
583 views

Magento 2 - Insert Customer Vat Number in Invoice PDF

My customer would like to deliver a complete PDF Invoice according to italian law. In every invoice should be indicated the customer's vat number. Where and how can i insert this variable?
3
votes
0answers
232 views

Magento 2: PDF set page margins for Invoice

I added a footer to my invoices, this works fine. private function _insertFooter($page) { $this->_setFontRegular($page, 8); $this->y = 100; $page->drawLine(25, $this->y, 570,...
3
votes
1answer
1k views

Invoice PDF print Arabic Character?

I am having problem in Printing invoice when the costumer time Arabic Character in checkout. The Arabic word is become square charcter. Anyone knows possible alternative on this ?
3
votes
0answers
314 views

Invoice template changes not showing

I have changed my invoice template to add some footer text, this works fine. However recently I have been asked to change this text to correct a typo. This I have done but the change is not showing ...
3
votes
0answers
840 views

How to make multiple payments on one order by amount [closed]

I have two scenarios with a common thread. One is the use of a gift card, i.e. a $50 Visa Gift Card, with a $53 order. Ideally the customer would select payment type and amount $50. The order still ...
2
votes
4answers
8k views

How do I get Order invoice details from order id

I need order invoice details such as subTotal, Tax, shipping amount, Discount amount and Grand total..etc. This is my code : $orderId = $this->getRequest()->getParam('orderNum'); $order = $...
2
votes
2answers
7k views

Magento 2: How to add footer in pdf invoice?

How to add store information and terms and conditions inside pdf invoice file in magento 2? Also how to add footer in each page of pdf in magento 2 invoice pages?
2
votes
4answers
9k views

How to get invoice from order item

Is it possible to get the invoice from an order item? To be more specific: I'm iterating the order ItemsCollection and if the order-item has been invoiced $item->getStatusId() == ...
2
votes
2answers
14k views

how to get invoice id or details from order?

how to get invoice deatils or id by order object ? $orderObject = Mage::getModel('sales/order')->load($orderId); Any Method to get invoice_id from above order object ?
2
votes
1answer
8k views

How to define the order status after creating an invoice

I have searched a lot with google but somehow I'm using the wrong search terms or there is no answer to my specific problem yet. In Magento I'd like to have the following procedure: Customer creates ...
2
votes
1answer
1k views

Magento Export All Invoice In PDF

My accountant asked me an export of all my invoices at PDF (33972 invoice :/) . Is there a way to do it automatically ? Thanks
2
votes
4answers
6k views

PDF Invoice; changing shipping and other text

I am creating a new PDF Invoice and most is fine but the one thing that I just cannot find is how to change the text of the 'totals' block at the end! Currently this shows Subtotal Shipping & ...
2
votes
4answers
9k views

Print Order before invoice

Does anyone know how to print orders before they are invoiced. We are migrating from volusion. in volusion you can select a batch and print it. From there we check stock then proceed to process and ...
2
votes
1answer
547 views

Send invoice e-mail based on customer group [closed]

I want to send different content in invoice e-mails per customer group. Suppose, I have two customer groups A and B. When customer from group A will place a order it should send another e-mail then a ...
2
votes
1answer
2k views

Change address layout in Invoice pdf

Can anybody tell me where I can change the layout and order of the addresses in the invoice pdf. I want to combine the City name with postcode number. Now the postcode number is combined with the ...
2
votes
1answer
504 views

add column barcode(EAN) in invoice

i would like add a colum in my invoice PDF. so I changed the "draw ()" function found in the "app / code / core / Mage / Sales / Model / Order / Pdf / Items / Invoice" file by adding "item-> getEan ()...
2
votes
2answers
597 views

Where does Magento store Pdf Invoices?

Is there a table in the database or a folder where Magento (1.9 and 2.1) stores Pdf Invoices?

1
2
3 4 5
14