I am using the following script to show the barcode on the Invoice of my product SKU. But when I use the same script again to show the bar code for the product name{{ product.name }} and SKU barcode disappear, It only shows one barcode ie Product name barcode. How can I use the script to show multiple barcodes, for the product names and SKU?
FYI: I have no knowledge of codes.
<script src="https://cdn.jsdelivr.net/jsbarcode/3.3.20/JsBarcode.all.min.js"></script>
<h1><img id="upc"/><script> $('#upc').JsBarcode("{{ product.sku }}",{width:1,height:50,lineColor: "#333333" }); </script></p></h1>