Skip to content

Instantly share code, notes, and snippets.

@woogist
Last active August 31, 2016 14:17
Show Gist options
  • Save woogist/984fac232ed8415b5270 to your computer and use it in GitHub Desktop.
Save woogist/984fac232ed8415b5270 to your computer and use it in GitHub Desktop.
Manual Output / Display of Barcode
<?php
echo WC_Order_Barcodes()->display_barcode($order_id);
?>
@joshrogersdesign
Copy link

Anyone have a lead or idea on how to "shortcode" this - trying to get the barcode to "echo" on all "print ticket" pages for WooCommerce Box Office. Tried adding this to the top of default-print-content.php, but doesn't seem to work. I can however add raw HTML to the "print ticket" details on each individual product - so a shortcode would be awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment