[wcj_product_barcode]

Display WooCommerce product's barcode

Description

[wcj_product_barcode] shortcode displays product’s barcode in WooCommerce (e.g. on single product page). This shortcode is not intended to use in Booster’s PDF invoices. In case if you need to add product’s barcode to the PDF – use product_barcode column in [wcj_order_items_table] shortcode.

Args

code
(required) Defines which product property to use in barcode. Possible values: %id%, %sku%, %url%, %meta%.

Default: None
dimension
(optional) Barcode dimension. Possible values: 1D or 2D.

Default: 2D
type
(optional) Barcode type.

Default: C39 for 1D; PDF417 for 2D
width
(optional) Barcode width.

Default: 2 for 1D; 10 for 2D
height
(optional) Barcode height.

Default: 30 for 1D; 10 for 2D
color
(optional) Barcode color.

Default: black

Examples

[wcj_product_barcode code="%sku%"]
[wcj_product_barcode code="%meta%" meta_key="your_meta_key"]
Accessible through:
  • [wcj_product_barcode]
Tested on WooCommerce 3.5.5 and WordPress 5.1
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

Leave a Reply

Comments

2 Comments

  1. Novelfashionth December 18, 2018 at 8:19 am #

    Hello,
    Do you have a module to create barcode for each product?
    Thanks

    Reply to thread

    Avatar
    • RokasJ December 18, 2018 at 9:49 am #

      Hi,

      Barcodes are generated automatically where the shortcode it used.

      Best regards,
      Rokas – Support Team

      Avatar