[Skip to main content](#vessel-content)

#   Inventory Tracking - Barcode Generator

##

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 7 months ago [\#11491](#11491) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  *[Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#11491 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")* was created by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")*

Hello -

So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.

Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.

To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.

I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?

I'll probably use this bar code generator and modify it: [ www.barcodephp.com/download.php](http://www.barcodephp.com/download.php) [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/invoice.JPG) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/invoice.JPG "&#91;img")

-

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86308
- Thank you received: 14273
-
-

15 years 7 months ago [\#11504](#11504) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#11504 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

There is no such thing for now for hikashop. That could indeed be a nice addition. Maybe as a plugin ? We would need to trigger an event in that case when displaying the invoice.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 7 months ago [\#11505](#11505) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  Replied by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")* on topic *[Re: Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#11505 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

It would be great! I'm a PHP novice so I'll likely destroy this project but it's worth a try. The item code is there already next to the product (well I moved it to its own column but whatever) and if we had an option to add a bar code under each product, the bar code could be the product ID and it could be scanned. I want to take it a step further and have a bar code for the quantity as well.

I think most could agree that it might help reduce order entering mistakes as I assume most users need to have an inventory management system of some kind.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 5 months ago -  15 years 5 months ago [\#15930](#15930) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  Replied by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")* on topic *[Re: Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#15930 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

I'm very close to getting this working but I need a hand.

What I have is a custom invoice with the item, the quantity requested and the item code. I want to generate a bar code under the quantity and under the item code.

Here is an example of the system working to generate one single bar code:
[Removed]

I need to dynamically create these bar codes. The image place holder is showing up but the image of the bar code itself is not.

Here is what I changed on invoice.php Code:

&lt;?php $k=0; foreach($this-&gt;order-&gt;products as $product){ ?&gt; &lt;tr class="row&lt;?php echo $k;?&gt;"&gt; &lt;td&gt; &lt;?php echo $product-&gt;order_product_name;?&gt; &lt;/td&gt; &lt;td&gt; &lt;div align="center"&gt;&lt;?php echo $product-&gt;order_product_quantity;?&gt;&lt;br /&gt; &lt;?php //session_start(); $_SESSION['bdata'] = $product-&gt;order_product_quantity; echo "&lt;img src='barcode.php?Genrate=Submit&amp;file=&amp;type=png'&gt;"; ?&gt;&lt;/div&gt; &lt;/td&gt; &lt;?php if($this-&gt;invoice_type=='full'){?&gt; &lt;td&gt; &lt;div align="center"&gt;&lt;?php echo $product-&gt;order_product_code;?&gt;&lt;/div&gt; &lt;/td&gt; &lt;?php } ?&gt; &lt;td align="center"&gt; &amp;nbsp; &lt;/td&gt; &lt;/tr&gt; &lt;?php $k=1-$k; } ?&gt;

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/bar.PNG) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/bar.PNG "&#91;img")

Does anyone have any ideas?

- [ ![bar.PNG](/forum/attachment/1072) ](/forum/attachment/1072 "bar.PNG") [ ](/forum/attachment/1072?download=1 "bar.PNG")

Last edit: 15 years 5 months ago by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 5 months ago [\#15931](#15931) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  Replied by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")* on topic *[Re: Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#15931 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

It appears that the code I put in may not be showing up correctly. I tried three browsers and go three different results.

Attached is an image of the code I added to invoice.php.

Thanks!  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/code.PNG) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/code.PNG "&#91;img")

-

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86308
- Thank you received: 14273
-
-

15 years 5 months ago [\#15932](#15932) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#15932 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

What is the code you have in the file barcode.php ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 5 months ago [\#15933](#15933) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  Replied by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")* on topic *[Re: Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#15933 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

I thought the file was uploaded, apologies.

[ mydtvhs.com/barcode.txt](http://mydtvhs.com/barcode.txt)

There is the text version.

I didn't write it (find solutions before you build them) but I can explain some of the options.

Originally the variables for the bar code were gathered via a $_POST but I knew what I wanted all of them to be so I got rid of everything except what needed to be 'bar codeized' (the product code or quantity).

You can set the scale, the colors, etc but I manually set most of those. Because the image is built using the external file, I thought it was an issue with passing the contents of the variable on to barcode.php. I've tried a DB, session variable, $_POST and $_GET but I still don't know what's wrong.

I'm very new to PHP still so I usually struggle my way through things and manage to figure it out.

As you can see from my original post, I've been working on this for a month.

Anyhow, thanks again for taking a look.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86308
- Thank you received: 14273
-
-

15 years 5 months ago [\#15934](#15934) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#15934 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

I don't see where you set the header of the image: @header("Content-type: image/png");
It's only in the error function but you would have to put it for successful images as well, otherwise the browser will not display the image.

The coding to pass the variable is great but if you have several images on a page it won't work as it will only display the last image's code several time. You should use the $_REQUEST variable instead of $_SESSION and instead of setting it directly in the view, you should add the parameter in the URL of the image:

echo "&lt;img src='barcode.php?Genrate=Submit&amp;file=&amp;type=png&amp;bdata=".$product-&gt;order_product_quantity."'&gt;";

and then:
$barnumber = $_REQUEST;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 5 months ago [\#15937](#15937) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  Replied by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")* on topic *[Re: Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#15937 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

Thanks so much for the help, I can't say it enough.

I made the changes and the index.php test page I'm using to make sure the code still works will still generate a bar code but the invoice is failing.

Any idea where @header("Content-type: image/png"); should be placed for successful images? I tried in the invoice.php file just above the echo but that didn't change anything. I also tried it above $im=@imagecreatetruecolor($total_x, $total_y); at about line 266 but that didn't work. I tried it above $return = $bar-&gt;genBarCode($barnumber,png,''); at line 338 and nothing changed.

Ultimately this isn't an issue with Hikashop so I understand if you don't have another suggestion. I'm grateful for what I got. :0)

--Joel

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86308
- Thank you received: 14273
-
-

15 years 5 months ago [\#15938](#15938) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#15938 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

It should indeed be your barcode.php file. Before adding the barcode in an image in hikashop.

You should make sure that your library is generating the barcode correctly by using directly the link in your browser:
barcode.php?Genrate=Submit&amp;file=&amp;type=png&amp;bdata=test

That should display directly the image in your browser. That will allow you to more easily put traces in the code and understand where it's failing.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 5 months ago -  15 years 5 months ago [\#15939](#15939) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  Replied by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")* on topic *[Re: Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#15939 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

The library appears to work correctly:

[Removed]

If I print this page and scan it to a text file, the scanner reads it ok.

I'll continue to look at it some more.

Thanks again! :0)

Last edit: 15 years 5 months ago by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86308
- Thank you received: 14273
-
-

15 years 5 months ago [\#15940](#15940) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#15940 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

So, since the library is working, you should use that code:

echo '&lt;img src="[ mydtvhs.com/administrator/components/com...ng&amp;bdata='.$product-](http://mydtvhs.com/administrator/components/com_hikashop/views/order/tmpl/barcode.php?Genrate=Submit&file=&type=png&bdata='.$product-)&gt;order_product_quantity.'"&gt;';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 5 months ago [\#15941](#15941) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  Replied by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")* on topic *[Re: Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#15941 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

And it worked and is now showing the bar codes on the invoices.

Thank you, thank you, thank you! I have to change the height and a few minor things but I'm sure I can manage that. I also need to make sure it's generating the bar code correctly so the scanner can read it but it's nearly there.

--Joel

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lifemore](/forum/user/26612-lifemore "View lifemore's Profile")**
- [![lifemore's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/26612-lifemore "View lifemore's Profile")
- [ Offline](/forum/user/26612-lifemore)

Less More

- Posts: 2
- Thank you received: 0
-
-

13 years 2 months ago -  13 years 2 months ago [\#118786](#118786) by [lifemore](/forum/user/26612-lifemore "View lifemore's Profile")  Replied by *[lifemore](/forum/user/26612-lifemore "View lifemore's Profile")* on topic *[Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#118786 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

for inventory manegenment, barcode generator is a necessity when you want to enter number and quality of the product. it iwll make you save a lot of time. so i have been searching for such tool/. here is what i find about tutorial to bar[ tutorial to barcode generator](http://www.rasteredge.com/how-to/csharp-imaging/barcode-generating/). take a look.

Last edit: 13 years 2 months ago by [lifemore](/forum/user/26612-lifemore "View lifemore's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 2 months ago [\#118827](#118827) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#118827 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

Hi,

Thanks for the link but unfortunately it couldn't help because it's a c# library, not a PHP one.
But, since the creation of this thread 2 years ago, we have made some improvements and some new tools.

HikaSerial embedded a barcode generator and a QRcode generator. His library could be use for the generation of such images with a little development.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Donna111](/forum/user/28572-donna111 "View Donna111's Profile")**
- [![Donna111's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28572-donna111 "View Donna111's Profile")
- [ Offline](/forum/user/28572-donna111)

Less More

- Posts: 3
- Thank you received: 1
-
-

12 years 11 months ago -  12 years 11 months ago [\#132526](#132526) by [Donna111](/forum/user/28572-donna111 "View Donna111's Profile")  Replied by *[Donna111](/forum/user/28572-donna111 "View Donna111's Profile")* on topic *[Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#132526 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

> Jerome wrote: Hi,
>
> Thanks for the link but unfortunately it couldn't help because it's a c# library, not a PHP one.
> But, since the creation of this thread 2 years ago, we have made some improvements and some new tools.
>
> HikaSerial embedded a barcode generator and a QRcode generator. His library could be use for the generation of such images with a little development.
>
> Regards,

HI there
Although i am not the common user of barcode,i've tried a free trial from a barcode generator.It turns out to be convenient to own a powerful barcode generator.Is it possible for HikaSerial to read a QRcode offline?
Thanks a lot.

Last edit: 12 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 11 months ago -  12 years 11 months ago [\#132569](#132569) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Inventory Tracking - Barcode Generator](/forum/4-how-to/11491-inventory-tracking-barcode-generator#132569 "Hello -  So far the support has been amazing so I thought I would ask one more question. Hikashop is great for ordering but I still need another system for inventory management. Because I don't use Hikashop to sell products, I've heavily modified a few things to work best with what we're using it for.  Attached is a screenshot of what my invoices look like. I need the item number and the quantity only so everything else was removed.  To enter this order into the inventory management system, I have to sit and 10 key it all in. It doesn't take long but if there were bar codes there instead, it would make entering the the orders really fast; they could just be scanned in. First the item and then the quantity; the inventory management system moves on automatically. The attached invoice only has 3 items on it but I could have some long lists to enter.  I'll start the project anyway but has anyone already tried adding bar codes to your invoices? Maybe it's an idea for future Hikashop releases?  I'll probably use this bar code generator and modify it:   www.barcodephp.com/download.php")*

Hi,

HikaSerial is a web software, it is not a computer software.
Like I said the last time : It is not a C/C++/C#/Java/Objective-C/... program.

HikaSerial can generate QRCode (already)
HikaSerial can't read QRCode (and it will never have such feature)

So you can stop posting C# code and posting your commercial links to some C# libraries here (each of your message contain links so...).
I prefer not to, but if you continue I will have to ban you permanently and ban automatically every user who post a link to your website.
Hope it is clear enough.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 12 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNDkxLWludmVudG9yeS10cmFja2luZy1iYXJjb2RlLWdlbmVyYXRvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.193 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
