You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Is there a setting to suppress barcodes from printing on invoices?
Offline
Barcodes are only printed on wholesale printable invoices and printable invoices viewed as a backend user. There's no setting to turn them off - but you can modify {private}/apps/ecom/ECOM/includes/ordersummaryprint.php (look for 'barcode') to remove the functionality.
Offline
I attempted to remove functionality of printing barcodes on invoices by removing the line...
print $this->xhtml_encode($item['barcode']);
from....
if ((!(empty($dobarcodes))) && (!(empty($item['barcode']))) && ($item['shipstatus'] != 'N')) { $barcodeid = 'BARCODE--' . $this->random_key(32); print '<div class="ktopmarginhalf" id="' . $barcodeid . '">'; print $this->xhtml_encode($item['barcode']); $js_docready = 'jQuery(\'#' . $barcodeid . '\').barcode(\'' . $this->xhtml_encode($item['barcode']) . '\', \'code39\',{\'barWidth\': 1, \'barHeight\': 20, \'fontSize\': 10});'; $this->append_global_array('core.js_docready',$js_docready); print '</div>'; } // End of if statement. print '</td>' . $eol;
however, the invoice print preview is still showing barcodes. Which line(s) do I remove functionality?
Thank you
Offline
You need to look towards the top of the file where $dobarcodes is initially set to true, and right behind that set it to false. So that barcodes are not generated anywhere on the invoice / order summary. They are printed in the header and for items, if present, if the order is being printed for a backend view, or for a wholesale customer.
Offline
Is it one of these? I'm assuming 0=FALSE and 1=TRUE. This is near the top of the file that is in the custom directory...
// +-- // | Barcodes, Locations, etc. for backend. // +-- $dobarcodes = 0; $dolocations = 0; $locationsseen = 0; $dompn = 0; $mpnseen = 0; if (!(empty($isbackend))) { $this->globals('core.load_barcode',1); $dobarcodes++; $dompn++; if (!(preg_match('/^INVOICE/',$printtype))) {$dolocations++;} } elseif (!(empty($order['order']['iswholesale']))) { $this->globals('core.load_barcode',1); $dobarcodes++; $dompn++; } // End of if statement.
Thanks
Offline
Before or after...
} // End of if statement.
Offline
That worked perfectly! Thank you Nick
Offline