barcode help

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 1
Joined: Wed Dec 06, 2017 5:27 am

Wed Dec 06, 2017 5:34 am

i want to change company to be a product id on my barcode also i want to resize the barcode because the size is 2x1 i buy the program and we want to modified the barcode.

thank you in advance for the help

<?php $this->load->view("partial/header"); ?>
@media print
.wrapper {
overflow: visible;
font-family: serif !important;

-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
width: 1.9in;
letter-spacing: normal;
word-wrap: break-word;
overflow: hidden;
margin:0 auto;
padding: 10px;
font-size: 10pt;
line-height: 1em;
font-family: serif !important;

<h1 class="hidden-print" style="text-align: center;">Zebra Printers <?php echo lang('common_label_info');?></h1>

<div class="hidden-print" style="text-align: center;margin-top: 20px;">
<button class="btn btn-primary text-white hidden-print" id="print_button" onclick="window.print();"><?php echo lang('common_print'); ?></button>
$company = ($company = $this->Location->get_info_for_key('company')) ? $company : $this->config->item('company');

$item = $items[$k];
$expire_key = (isset($from_recv) ? $from_recv : 0).'|'.ltrim($item['id'],0);
$barcode = $item['id'];
$text = $item['name'];

if(isset($items_expire[$expire_key]) && $items_expire[$expire_key])
$text.= " (".lang('common_expire_date').' '.$items_expire[$expire_key].')';
elseif (isset($from_recv))
$text.= " (RECV $from_recv)";

$page_break_after = ($k == count($items) -1) ? 'auto' : 'always';
echo "<div class='barcode-label' style='page-break-after: $page_break_after'>".$company."<br /><img style='vertical-align:baseline;'src='".site_url('barcode').'?barcode='.rawurlencode($barcode).'&text='.rawurlencode($barcode)."&scale=$scale' /><br />".$text."</div>";
<?php $this->load->view("partial/footer"); ?>
barcode.PNG (2.71 KiB) Viewed 432 times

php-forum Fan User
php-forum Fan User
Posts: 563
Joined: Fri Apr 01, 2016 2:18 am

Mon Dec 11, 2017 2:19 am

and what have your tried by yourself?

Post Reply