• Resolved cruiseback

    (@cruiseback)


    Hello Inpsyde,

    We just use our normal SKU number for our barcodes, since we only use barcodes internally for our warehouse management and POS at events.

    Do you have an action or similar, that will copy the SKU value to the barcode field automatically?

    Thanks!

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

    (@joostvandevijver)

    Hello @cruiseback

    we don’t have a ready to use code for this, but we do have a piece of code that allows you to change how barcode values are retrieved. Please take a look here for more details.

    If you require us to create a new feature for this, you can submit your request via this form. Be aware that the chance that this will be created (soon) is very small, so you might want to see if you can find a developer to help you out with creating this solution.

    Kind regards,
    Joost

    Thread Starter cruiseback

    (@cruiseback)

    Hello Joost,

    Excellent, thanks for the snippet hint ??

    For anyone else interested in doing the same, simply pass the “_sku” value into the filter, code goes into functions.php, Code Snippets or similar, if you use a plugin, (we use WPCodeBox)

    add_filter('zettle-pos-integration.barcode.value', function (string $barcode, \WC_Product $product): string {
    return $product->get_meta('_sku');
    }, 10, 2);

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Copy SKU number to barcode field upon product creation’ is closed to new replies.