[英]How to add barcode magento invoice?
I am new to magento. 我是magento的新手。 I need to add barcode on invoice.
我需要在发票上添加条形码 。 I am using magento CE 1.8.0.0.
我正在使用magento CE 1.8.0.0。 How can I add barcode to invoice?.
如何将条形码添加到发票? I tried many extensions and no use.
我尝试了很多扩展,没有用。
I have created POS scanning barcode in magento invoice. 我已经在magento发票中创建了POS扫描条形码。 It's very simple and easy to customize for single product or invoice number.
为单个产品或发票编号自定义非常简单容易。
Edit : app\\code\\local\\Mage\\Sales\\Model\\Order\\Pdf\\Invoice.php 编辑: app \\ code \\ local \\ Mage \\ Sales \\ Model \\ Order \\ Pdf \\ Invoice.php
$fontPath = 'fonts/code39.TTF';
$barcodeImage = "*".$pro_sku."*";
$page->setFont(Zend_Pdf_Font::fontWithPath($fontPath), 36);
//Draw image to PDF
$page->drawText($barcodeImage, 400, 800);
POS easy to scan code39 fonts. POS易于扫描code39字体。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.