Post by nayand » Fri Sep 10, 2010 9:07 am

As my order numbers are increasing it is taking me more and more time to print shipping labels for my packages. The easyist way I could think to do this would be to put 3 barcodes on the invoice, 1 with the customers name, 1 with the customers address and 1 with the customers zip code. That way all I have to do is scan the barcode into the correct field in ups worldship. I already have the order number as a barcode on the invioce so all I really need is the code to echo the name, address and zip.

If you have a better idea let me know...

Warning: an unusually large number of this users posts have been flagged as sarcastic. Please realize and take this into account before getting annoyed.


New member

Posts

Joined
Sun Jun 13, 2010 10:53 am

Post by Miguelito » Fri Sep 10, 2010 3:33 pm

Hi,

what module are you using for barcode generation?


-Miguelito-

The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."


Active Member

Posts

Joined
Sun Jan 10, 2010 10:11 pm

Post by karan2 » Fri Sep 10, 2010 6:34 pm

Would you like a module for packingslip generation for indvidual order items

if a user orders 3 products - a packingslip will be generated for each product .

we will look forward to develop a module - let us discuss to create wireframes for a packing slip format

we can also generate the barcode for extra fields as you have suggested

Looking forward to a discussion

Thanks and regards ,

Karan Ahuja
www.kodeplay.com

New member

Posts

Joined
Tue Jun 22, 2010 3:51 am

Post by nayand » Sat Sep 11, 2010 1:59 am

Miguelito wrote:Hi,

what module are you using for barcode generation?


-Miguelito-
For testing I am using http://www.morovia.com/free-online-barcode-generator/. It works great but I've also been looking into local options as I'm not so sure they'd be happy with me using it long term. So far ive put this line in the invoice.tpl file

Code: Select all

<tr><td><img src="http://www.morovia.com/free-online-barcode-generator/barcode.asp?Symbology=5&BarHeight=450&ShowHRText=0&NarrowBarWidth=20&Message=<?php echo $order['order_id']; ?>&Rotation=0"</td></tr>
but I really have no idea how to echo only the address line 1 instead of the full address.

Let me know what you can do

Warning: an unusually large number of this users posts have been flagged as sarcastic. Please realize and take this into account before getting annoyed.


New member

Posts

Joined
Sun Jun 13, 2010 10:53 am

Post by Miguelito » Sun Sep 12, 2010 3:22 pm

Hi!

I would be interested in looking into this so we'll continue by PM :)


-Miguelito-

The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."


Active Member

Posts

Joined
Sun Jan 10, 2010 10:11 pm

Post by Miguelito » Tue Sep 14, 2010 1:38 am

Solved!

The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."


Active Member

Posts

Joined
Sun Jan 10, 2010 10:11 pm

Post by airetechit » Sat Sep 25, 2010 12:42 am

Care to share the solution with the rest of us? :)

Best Regards,
David Catherall,
AireTech IT.


New member

Posts

Joined
Fri Feb 05, 2010 1:46 am
Location - Goole, United Kingdom

Post by nayand » Sun Sep 26, 2010 3:58 am

airetechit wrote:Care to share the solution with the rest of us? :)
sure thing.

in /admin/controller/sale/order.php you need to find the secound ocorance of "/admin/controller/sale/order.php" it should look like this

Code: Select all

$this->data['orders'][] = array(
                    'order_id'               => $order_id,
                    'invoice_id'           => $invoice_id,
                    'date_added'           => date($this->language->get('date_format_short'), strtotime($order_info['date_added'])),
                    'store_name'           => $order_info['store_name'],
                    'store_url'            => rtrim($order_info['store_url'], '/'),
                    'address'              => nl2br($this->config->get('config_address')),
                    'telephone'            => $this->config->get('config_telephone'),
                    'fax'                  => $this->config->get('config_fax'),
                    'email'                => $this->config->get('config_email'),
                    'shipping_address'     => $shipping_address,
                    'payment_address'      => $payment_address,
                    'customer_email'       => $order_info['email'],
                    'ip'                   => $order_info['ip'],
                    'customer_telephone'=> $order_info['telephone'],
                    'comment'             => $order_info['comment'],
                    'product'              => $product_data,
                    'total'                => $total_data
at the end of that you need to add

Code: Select all

                    'shipping_address_1' => $order_info['shipping_address_1'],
                    'shipping_postcode' => $order_info['shipping_postcode'],
                    'shipping_firstname' => $order_info['shipping_firstname'],
                    'shipping_lastname' => $order_info['shipping_lastname'],
then in /admin/view/template/sale/order_invoice.tpl find "<td><?php echo $order['comment']; ?></td></tr></table>" and after add

Code: Select all

<tr>
  <td>
    <img src="http://www.morovia.com/free-online-barcode-generator/barcode.asp?Symbology=5&BarHeight=400&ShowHRText=0&NarrowBarWidth=15&Message=<?php echo $order['shipping_firstname']; ?> <?php echo $order['shipping_lastname']; ?>~d009~d009&Rotation=0"
  </td>
</tr>
<tr>
  <td>
     <img src="http://www.morovia.com/free-online-barcode-generator/barcode.asp?Symbology=5&BarHeight=400&ShowHRText=0&NarrowBarWidth=15&Message=<?php echo $order['shipping_postcode']; ?>&Rotation=0"
  </td>
</tr>
<br>
<tr>
  <td>
    <img src="http://www.morovia.com/free-online-barcode-generator/barcode.asp?Symbology=5&BarHeight=400&ShowHRText=0&NarrowBarWidth=15&Message=<?php echo $order['shipping_address_1']; ?>~d009~d009~d009~d009&Rotation=0"
  </td>
</tr>
notice all the "~d009" in the above image urls. this preforms the same function as the "tab" key. If you use ups worldship then all you need to do is make sure the cursor is in the name filed when you scan the name barcode and it will automatically go to the address field afterwords. After you scan the address it will jump to the zip field. If you are not using ups worldship then you will probably want to remove/adjust the appearances of "~d009" in the above code.

Attachments

Capture.JPG

invoice with (destroyed) barcodes. - Capture.JPG (34.52 KiB) Viewed 4195 times


Warning: an unusually large number of this users posts have been flagged as sarcastic. Please realize and take this into account before getting annoyed.


New member

Posts

Joined
Sun Jun 13, 2010 10:53 am

Post by airetechit » Tue Sep 28, 2010 4:33 pm

Thank you! Much appreciated, will give this a try later today :)

Best Regards,
David Catherall,
AireTech IT.


New member

Posts

Joined
Fri Feb 05, 2010 1:46 am
Location - Goole, United Kingdom

Post by airetechit » Tue Sep 28, 2010 5:28 pm

Works really well, thank you!

Now all we need is to find a more local solution, I'm sure they wont be happy with us using there website on a more long term basis, I will search around to see if I can find one, if so I will post back here with my findings...

Best Regards,
David Catherall,
AireTech IT.


New member

Posts

Joined
Fri Feb 05, 2010 1:46 am
Location - Goole, United Kingdom

Post by nayand » Wed Sep 29, 2010 2:25 am

Glad you like it. Big thanks to Miguelito for his help with it.

As far as local solutions I have looked into in and can't seem to find anything free that would work. I have looked into idautomation's systems and they seem pretty good for the price, so I may end up purchasing their product. I have considered using 2d barcodes so that I could print all the information in a single barcode.

I am also using barcodes to keep track of inventory since not every sale comes through opencart. I have put a barcode with the model number of the product on its line of the invoice. I then scan it into inflow inventory(free version) with the customer listed as online sales (or in store sales or warranty ect...). This may be overkill for some people but it is necessary for my situation.

Now, if I could only come up with an easy way to post the tracking numbers back to opencart...

Warning: an unusually large number of this users posts have been flagged as sarcastic. Please realize and take this into account before getting annoyed.


New member

Posts

Joined
Sun Jun 13, 2010 10:53 am

Post by airetechit » Wed Sep 29, 2010 11:19 pm

I think I may write my own Barcode Generator, have found a couple GPL PHP Libary Classes out there I can base the generator on, shouldn't take me too long, I hope!

Will keep you updated on my progress :)

Best Regards,
David Catherall,
AireTech IT.


New member

Posts

Joined
Fri Feb 05, 2010 1:46 am
Location - Goole, United Kingdom

Post by gmedia01 » Wed Jul 16, 2014 11:48 am

Has there been any progress with this? Any help and ideas on how to streamline shipping label printing and properly integrate with the major shippers (UPS, FedEx, and USPS) would be great!

Chris

New member

Posts

Joined
Sun Aug 26, 2012 4:49 am
Who is online

Users browsing this forum: Bing [Bot], paulfeakins and 11 guests