Variable Product SKU > Zettle Barcodes?
-
I’ve seen a few other posts where users are asking to take the product SKU and have it set as the barcode for zettle. Unfortunately, the solutions do not seem to be working for me.
I’ve tried adding a simple product to my store and adding a sku (“WALLET_BLK”).
I’ve tried adding both bits of code below using the snippet plugin, but neither seem to work:
The first one:
add_filter(‘zettle-pos-integration.barcode.value’, function (string $barcode, \WC_Product $product): string {
return $product->get_meta(‘_sku’);
}, 10, 2);add_filter(‘zettle-pos-integration.barcode.standard-input-ui-enabled’, ‘__return_false’);
The second one:
add_filter(‘zettle-pos-integration.barcode.value’, function (string $barcode, \WC_Product $product): string {
return $product->get_sku();
}, 10, 2);add_filter(‘zettle-pos-integration.barcode.standard-input-ui-enabled’, ‘__return_false’);
When I open the zettle app on my phone and scan the bar code, it only says that the barcode cannot be found.
Thanks!
- The topic ‘Variable Product SKU > Zettle Barcodes?’ is closed to new replies.