Top WooCommerce & WordPress Plugins › Forums › EAN and Barcodes for WooCommerce › Barcode information
- Support forum for the EAN and Barcodes for WooCommerce.
- This topic has 1 reply, 2 voices, and was last updated 2 years, 4 months ago by
Tom Anbinder.
- AuthorPosts
-
July 18, 2021 at 10:21 pm #84994
Philip Grant
ParticipantHello, I am new to the whole EAN process and barcoding. Is their away for you to update the information for the barcode when scanned? I want it to show product information and price.
July 19, 2021 at 3:32 pm #84995Hi Philip,
Yes, that’s possible. Our plugin has two shortcodes for outputting barcodes:
[alg_wc_ean_barcode]
[alg_wc_ean_barcode_2d]
By default, they will encode product’s EAN into the 1D barcode and 2D barcode respectively. However, by using our
content
shortcode attribute you can encode other information into the barcode (i.e. instead of EAN). Currently, possible values for thecontent
attribute are:ean
– product EAN (this is the default value).url
– product URL.admin_url
– admin product URL.admin_search
– admin products list search URL (by product ID).increase_stock
– increase product stock action.decrease_stock
– decrease product stock action.
So, for example, this will output 2D barcode with product’s URL encoded in it:
[alg_wc_ean_barcode_2d content="url"]
We don’t have an option to encode product price right now, but I will add it in the next few days, should be quite easy to do. As for “product information” – could you please let me know what information exactly do you need?
And one more final note – our shortcodes can be used to output a barcode on a screen, as well as on paper (i.e. in PDF file) – it’s in our “WooCommerce > Settings > EAN > Print” section.
Hope that helps. Please let me know what you think.
- AuthorPosts
- You must be logged in to reply to this topic.