hyteckit
Total Posts: 166
Joined: 2008-04-01
Los Angeles, CA
Does magento have the built-in functionality to print a barcode on the invoice?
Any extensions available?
If not, I guess I’ll have to code one myself.
Anyone interested?
Signature
Current Project:
GeekGears.com - Accessories for your iPod, iPhone, MP3 Players, Cell Phone, PDA, GPS Devices, Digital Camera, and more.
inkWOW.com - printer ink cartridges and laser toners
Extension: Product Gallery Importer , Enhanced Search
Posted: August 28 2008
| top
Priest
Total Posts: 20
Joined: 2008-04-21
I’m interested in this. I’ve been looking at this thread:
http://www.magentocommerce.com/boards/viewthread/15807/
But I’m unable to get it to work unless I use the first method (hacking slightly into the core files). If you have any better ideas please contribute!
Thanks,
Priest
Posted: August 28 2008
| top
| # 1
evdat
Total Posts: 35
Joined: 2008-02-28
Carthage, MO
I have already accomplished this for a client a couple months ago. I used a TTF font and some code to convert the text to a CODE 128 barcode. I’ll see if I can post something tonight with the changes you need to make. I modularized my solution so that it doesn’t modify any core files.
Posted: August 28 2008
| top
| # 2
evdat
Total Posts: 35
Joined: 2008-02-28
Carthage, MO
Here is an updated version that works better with v1.2.x
File Attachments
Posted: March 13 2009
| top
| # 4
hankzh
Total Posts: 55
Joined: 2011-02-08
I like this simple solution for barcode.
Although there is one bug in Abstract.php file: when check_digit_value is 0, it should return 128, not 32.
..... $check_digit_value = $checksum % 103 ; $check_digit_ascii = '' ; if ( $check_digit_value == 0 ) { $check_digit_ascii = 128 ; }elseif ( $check_digit_value <= 94 ) { $check_digit_ascii = $check_digit_value + 32 ; } elseif ( $check_digit_value > 94 ) { $check_digit_ascii = $check_digit_value + 50 ; } .....
mjohnsonperl - 12 March 2009 09:40 PM
Here is an updated version that works better with v1.2.x
Posted: July 8 2011
| top
| # 6