News:

AbanteCart v1.4.2 is released.

Main Menu

Convert Invoice to Packing Slip

Started by kavlito, April 21, 2020, 09:02:43 PM

Previous topic - Next topic

kavlito

I need to produce Packing Slips. I thought I could figure out how to convert, or duplicate the Invoice to a Packing Slip, but can't figure it out.

Thanks.

abantecart

You can replicate and modify the code portion for the invoice and display what you need for the Packing Slip 

See if this extension will help
http://marketplace.abantecart.com/pdf_orders
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

kavlito

Hi,

Thank you.

We don't use invoices, so I just want to modify the Invoice to a Packing Slip (no prices).

Can someone point me to the files involved?

Thanks again.

SAM172788

As I remember you will need to edit your (localization>>Language Definitions)  and change the Word INVOICE to Packing list.

kavlito

#4
Thank you.

I found the file: admin/controller/responses/sale/invoice.php

I made the following changes between lines 141 & 151: commenting out 'price', 'total' & $total_data lines
And with your language change, I now have a Packing Slip with no prices!

                    $product_data[] = array(
                        'name'     => $product['name'],
                        'model'    => $product['model'],
                        'option'   => $option_data,
                        'quantity' => $product['quantity'],
                        //'price'    => $this->currency->format($product['price'], $order_info['currency'], $order_info['value']),
                        //'total'    => $this->currency->format_total($product['price'], $product['quantity'], $order_info['currency'], $order_info['value']),
                    );
                }

                //$total_data = $this->model_sale_order->getOrderTotals($order_id);

abantecart

Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

kavlito

I also made a modification to admin\view\default\template\responses\sale\order_invoice.tpl so that it will initiate auto print when you click on the Invoice icon (now the Packing Slip Icon).

In the Chrome browser it's great because it pops up a print preview.

Using auto print increases efficiency as it is one less step in the production process for my employees.

Place the following code at the end of the file (see attachments):

<!--  mod to auto print -->
<script language="JavaScript">
window.print();
</script>

Forum Rules Code of conduct
AbanteCart.com 2010 -