BarcodeRendererService

Implements \Shopware\Plugins\ViisonPickwareERP\Components\BarcodeLabel\BarcodeRenderer

package

Default

Methods

Creates a code 128 barcode.

createCode128Barcode(string $value) : string
inheritdoc

Arguments

$value

string

Response

string

Creates a barcode image for an ean barcode with the correct ean type.

createEanBarcode(string $value, boolean $drawText = true) : string|null
inheritdoc

Arguments

$value

string

$drawText

boolean

Response

string|null

Returns the type of the barcode that will be used for the given $ean.

getBarcodeTypeByEanLength(string $ean) : null|string
inheritdoc

Arguments

$ean

string

Response

null|string

One of the constants self::BARCODETYPE* or null if no matching barcode was found.

Constants

Barcode type used when generating barcodes from the shopware product number.

128

Barcode types to be used for ean/upc barcodes.

13

8

8

A

A