• Resolved swilburntx

    (@swilburntx)


    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @swilburntx,

    Thank you for reaching out to us, we are here to help.

    You are testing this issue by testing scanning the barcode. But did you not simply check the product in Zettle and seeing if the barcode is present there? If the scanning of the barcode does not work, that does not mean the filter we provided didn’t work.

    Please verify this first and let us know. If the barcode is not there, I am not sure if we can fix this issue for you, since it is an issue on your environment. We know this solution can work, but every environment is different, so there could be other custom codes or plugins present that change the behavior.

    Let us know what your situation is and we can always have a look if still needed.

    Kind regards,
    Joost

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello,

    Since we did not receive any response or follow-up questions from you, we will assume you got this working to your requirements. If you still have any more questions for us, please open a new thread, because we will mark this one as resolved.

    Kind regards,
    Joost

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Variable Product SKU > Zettle Barcodes?’ is closed to new replies.