Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Add barcode to the header

$
0
0

Replies: 1

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 all articles
Browse latest Browse all 59525

Trending Articles