Kryptronic Software Support Forum

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.

#1 04-12-2022 19:55:34

polarize
Member
Registered: 11-15-2004
Posts: 309

Suppress Barcode Printing on Invoice

Is there a setting to suppress barcodes from printing on invoices?


Using Kryptronic K9! smile
Previous Versions:
ClickCartPro 8
ClickCartPro 7
ClickCartPro 6
ClickCartPro 5.1

Offline

 

#2 04-13-2022 10:09:59

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19850
Website

Re: Suppress Barcode Printing on Invoice

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.


Nick Hendler

Offline

 

#3 11-01-2024 09:14:11

polarize
Member
Registered: 11-15-2004
Posts: 309

Re: Suppress Barcode Printing on Invoice

I attempted to remove functionality of printing barcodes on invoices by removing the line...

Code:

 print $this->xhtml_encode($item['barcode']);

from....

Code:

  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


Using Kryptronic K9! smile
Previous Versions:
ClickCartPro 8
ClickCartPro 7
ClickCartPro 6
ClickCartPro 5.1

Offline

 

#4 11-06-2024 10:25:23

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19850
Website

Re: Suppress Barcode Printing on Invoice

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.


Nick Hendler

Offline

 

#5 11-07-2024 11:41:26

polarize
Member
Registered: 11-15-2004
Posts: 309

Re: Suppress Barcode Printing on Invoice

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...

Code:

// +--
// | 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


Using Kryptronic K9! smile
Previous Versions:
ClickCartPro 8
ClickCartPro 7
ClickCartPro 6
ClickCartPro 5.1

Offline

 

#6 11-11-2024 09:24:29

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19850
Website

Re: Suppress Barcode Printing on Invoice

Yes.  Right below that code block (following the if statement), add:

Code:

$dobarcodes = 0;

Nick Hendler

Offline

 

#7 12-02-2024 19:38:53

polarize
Member
Registered: 11-15-2004
Posts: 309

Re: Suppress Barcode Printing on Invoice

Before or after...

Code:

} // End of if statement.

Using Kryptronic K9! smile
Previous Versions:
ClickCartPro 8
ClickCartPro 7
ClickCartPro 6
ClickCartPro 5.1

Offline

 

#8 12-03-2024 09:10:35

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19850
Website

Re: Suppress Barcode Printing on Invoice

After the end of the if statement.


Nick Hendler

Offline

 

#9 12-03-2024 12:55:27

polarize
Member
Registered: 11-15-2004
Posts: 309

Re: Suppress Barcode Printing on Invoice

That worked perfectly! Thank you Nick smile


Using Kryptronic K9! smile
Previous Versions:
ClickCartPro 8
ClickCartPro 7
ClickCartPro 6
ClickCartPro 5.1

Offline

 

Board footer