fbpx

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 9.3.2 and WordPress 6.6.2