Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author hpgong

    (@hpgong)

    Hi Ficaol,

    Thank You for bring up an issue of the plugin.

    what data do you use to generate the barcodeimage

    The bar code generator code I used is this:

    https://github.com/davidscotttufts/php-barcode

    I modify the code so it can fetch the info from the woo-commerce

    In the original code, the title/words generate the bar code by the length of the title/words

    If you enter 1 letter, then a few lines of bar code will appear based on the length of the title/words that is from the original code. But for the plugin those 11111111 shouldn’t appear at all.

    For example for the code128A, the code that display the code128A barcode is: 211412 2331112 as the string to generate the thickness of the barcode. So when you mention it’s 11111111 that’s impossible. If print and look at the barcode, it should display this string format: 211412 2331112. Not all 1’s at all. If it’s all 1’s it’s show just 1 thin line of the barcode which it shouldn’t show that at all.

    If you look in the barcode-overview.pdf file you will see all 6 bar code has different string of numbers to generate the barcode.

    For the plugin, I remove that option and insert the length as 111111111 by default, so all 6 bar code has the same length.

    Can you be more specific? Which bar code type did you used?

    Did you download and update the latest plugin? I updated the code on the plugin last week.

    I appreciated if you can tell me which type of bar code did you used to generate those 1’s?

    So you have to tell me either it’s title & sku, title or sku and the codetype too.

    Are you having issue scanning, if so I might have to increase the thickness of the barcode so you can scan it.

    Plugin Author hpgong

    (@hpgong)

    not my sku as i expected

    I just notice just now what you mention about the SKU. What issue are you having with the barcode generator? The barcode generator doesn’t generate SKU. I did created a plugin that generate the SKU.

    Thread Starter ficaol

    (@ficaol)

    okay the i might have misunderstood the purpose of the plugin
    what i need is it to generate the titel on top and the sku in the barcode image and
    the sku underneat the barcode, coz i want to use it for my goods in my shop

    i like to print out barcodes for my products so i can put them on my goods and when i sell them in my shop on my farm i can scan then into a pos system instead og typing it in

    is that possible

    i am a coder my self an i am willing to help with the developing of the plugin i can see
    a lot of sites outhere who have both a shop online and a fysical shop at home

    all best Finn Olsen Kyhn

    Thread Starter ficaol

    (@ficaol)

    i dont have a barcode scanner yet so i have only made tests with a scanner app on my phone after i had printed it out on my lazer printer
    so thats maybe why it doesent work

    Plugin Author hpgong

    (@hpgong)

    Hi ficaol,

    okay the i might have misunderstood the purpose of the plugin
    what i need is it to generate the titel on top and the sku in the barcode image and the sku underneat the barcode, coz i want to use it for my goods in my shop

    Yes, I apologized but this plugin doesn’t support what you are asking. Mr. Tuft php script is a very simple script to used that contain the barcode that company still using til this day. Even though it’s 15 years old.

    What you were looking/asking for is this:

    https://www.codediesel.com/php/using-barcodes-in-your-web-application/

    which requires PHP Pear.

    I did try to implement PHP Pear and it found it a bit of a challenge to link the files so I decided to go with Mr. Tufts code because it is a script not a package.

    The Pro for using PHP Pear in wordpress is that you will have unlimited amount of ideas to create any plugins.

    The Con for using PHP Pear in wordpress is that you have to update the package and you don’t know what it will do with the plugin you created, it might create bugs or stop working.

    To prevent the plugin from working, you have to create a very simple code so that when you update the PHP Pear package it will continue to work smoothly.

    There are a lot of plugin for this on wordpress plugin section:

    https://phpqrcode.sourceforge.net/examples/index.php

    which let you scan from your mobile phone.

    i dont have a barcode scanner yet so i have only made tests with a scanner app on my phone after i had printed it out on my lazer printer
    so thats maybe why it doesent work

    I can be honest with you, I never seen a scanner app scan a full bar like code128A
    before. Maybe a QR.

    i am a coder my self an i am willing to help with the developing of the plugin i can see a lot of sites outhere who have both a shop online and a fysical shop at home

    Maybe in the future, if I can find a script not a package then maybe we can developed/work a new barcode based on your suggestion/idea. I will keep that mind.

    Do you have anymore questions? I can mark this as solved because the plugin doesn’t have the feature that you are asking for.

    Plugin Author hpgong

    (@hpgong)

    I mark this as solved because the plugin doesn’t have the feature that you are asking for.

    Plugin Author hpgong

    (@hpgong)

    Hi ficaol

    I update the plugin you should able to scan the SKU not the title. I apologize, there must be a some miscommunication. I think you are having trouble scanning the barcode but in the subject line you ask a different question. In the future, don’t ask 2 different questions in the same thread. You added this on your subject line:

    ‘what data do you use to generate the barcodeimage’

    You should put ‘I have trouble scanning’. By you saying that it confused me because you ask 2 different questions.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘what data do you use to generate the barcodeimage’ is closed to new replies.