• Resolved mariodts

    (@mariodts)


    Hi i use your plugin. I add barcode to the header with the following code to invoice.php in template folder

    
    		<td class="header">
    		<?php
    		if( $this->has_header_logo() ) {
    			$this->header_logo();
    		} else {
    			echo $this->get_title();
    		}
    		
    		$barcodetype = (get_option('plugindistrict_orderbarcodes_barcodetype') == '' ? 'code128' : get_option('plugindistrict_orderbarcodes_barcodetype'));
    		
    		?>
    		</td>
    		<td>
    			<div class="pd_order_barcode_div" style="text-align: center; margin: 10px;">
         			<img class="pd_order_barcode" style="position: absolute; display: block; margin-left: auto; margin-right: auto;" src="https://2tfh7u96zl.execute-api.us-east-1.amazonaws.com/added-jest-tests/barcode?type=<?php echo $barcodetype.'&value='.(($barcodetype == 'qrcode') ? $checkinpath . '?orderid='.$order->get_order_number() : $order->get_order_number()).'&includeText='.(get_option('plugindistrict_orderbarcodes_showtextupc') == 1 ? 'true' : 'false'); ?>" />
    			</div>
    		</td>
    		<td class="shop-info">

    how could i add this code with snippet there at invoice? Because on every update i have to edit the invoice.php again.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add barcode to the header’ is closed to new replies.