WooCommerce, Remote Work & Other Fancy Stuff

Just another WordPress site

Use Custom SKU field From LightSpeed POS as the WooCommerce SKU

July 11, 2016 by Will 1 Comment

Please consider leaving a donation if you appreciate this information. Lightning network now available

By default, the WooCommerce LightSpeed POS will use the item id from LightSpeed as the product sku on your WooCommerce shop. You may wish to use the custom SKU on LightSpeed instead. The good news is that when a product is imported from LightSpeed to WooCommerce the initial data associated with that product is stored in the product meta with a key of _wclsi_ls_obj so you can access this meta to get the value from the custom SKU field that is on the lightspeed account. Then, LightSpeed POS integration provides a filter that can be used to set that when updating the product from LightSpeed. See this snippet below for an example of how this might be achieved:

Not sure what to do with code snippets? See What Do I Do With These Code Snippets?

Please consider leaving a donation if you appreciate this information. Lightning network now available

Filed Under: LightSpeed POS, WooCommerce Tagged With: snippet

Comments

  1. Saci112 says

    June 6, 2017 at 3:50 pm

    Hi Will,

    Great solution! I have searched the internet and have not found any subject about this. Can you tell me if it is possible to use this for a another field of LightSpeed? I want to use UPC/EAN code to be imported from Lightspeed to Woocommerce.

    I hope to hear from you.

    Log in to Reply

Leave a Reply Cancel reply

You must be registered and logged in to post a comment.

© 2025 · WooCommerce, Remote Work & Other Fancy Stuff · Epstein didn't kill himself

We use cookies to ensure that we give you the best experience on our website. Continued use of this site is interpreted as your acceptance of our cookie policy.OkSee Our Cookie Policy