Questions tagged [sku]

SKU stands for Stock Keeping Unit, and is a product or service identification code that helps track the item for inventory. This tag relates to Questions regarding identification systems usually used to track inventory.

SKU stands for Stock Keeping Unit, and is a product or service identification code that helps track the item for inventory. This tag relates to Questions regarding identification systems usually used to track inventory.

132 questions
1
vote
2 answers

Extract SKU values which may be numeric or alphanumeric and must be 4 to 20 characters long

I am open to including more code than just a regular expression. I am writing some code that takes a picture, runs a couple Imagick filters, then a tesseractOCR pass, to output text. From that text, I am using a regex with PHP to extract a SKU…
1
vote
1 answer

Add random string to WooCommerce order items based on product SKU

I have set up variable products within WooCommerce. Each variation has a unique SKU. My mission is to inspect the SKU within the cart, then according to the SKU, generate a number of random strings (16alphanumeric characters). If item (1) in the…
B.Sabz
  • 47
  • 9
1
vote
1 answer

Get WooCommerce products list that have similar SKU

How can I get an object list of products with SKU that starts with the same value? Example: I've following products: Article 1 - Sku: ART_1 Article 2 - Sku: ART_2 Article 3 - Sku: ART_3 I want to get all products that starts with "ART_". Thanks in…
Stimart
  • 418
  • 4
  • 8
  • 20
1
vote
1 answer

How to add product SKUs to WooCommerce new order email subject

Based on Woocommerce - Add username to new order email subject line. I'm trying to change WooCommerce email subject lines. Тhe email which I receive as site administrator in my mail when have a ordering. I'm trying to create the following…
Emo IT
  • 33
  • 5
1
vote
1 answer

WooCommerce: Get SKUs of all product variations

I have a list of products which should show variations in it's own row. The code for that works fine so far. But I couldn't figure out how I could show the SKU of a variation. Here's my current code: $args = [ 'status' => array('publish',…
Cray
  • 5,307
  • 11
  • 70
  • 166
1
vote
1 answer

Updating product stock quantity based on SKU with WooCommerce API?

I'd like to update the stock of a product with the Woocommerce API. I managed to do this by querying on the product ID and using the following code: curl -X PUT \ https://www.kilikili.be/wp-json/wc/v3/products/10340 \ -H ... -b ... -d '{ …
BarrieO
  • 129
  • 2
  • 15
1
vote
1 answer

Need to display sku in product list at virtuemart

I need to display the product sku in the product list of virtuemart joomla. Is there a way to accomplish this?
1
vote
1 answer

How should I model product images? Should they belong to the SKU or the Product?

I am building a custom e-commmerce website in Rails. In my data model products have many SKUs, and SKUs have two properties: size and color. I am wondering how I should add product images to this scheme. One natural thing would be to put them on the…
Tom Lehman
  • 85,973
  • 71
  • 200
  • 272
1
vote
0 answers

How do I pull in the sku on a woocommerce product page?

I cannot figure out why this is just showing the variable name and isn't pulling in my sku from woocommerce. Do I need a global variable? Change SKU to say part number on single product page remove_action( 'woocommerce_single_product_summary',…
danp
  • 33
  • 3
1
vote
1 answer

Replace the product name by the Sku in My account view order pages

Using Woocommerce, I would like to add SKU instead of the product name in the order view page of My Account /my-account/view-order/[orderid]/ I am able to add the SKU with a link using the code below. The SKU is displayed just after the product name…
1
vote
2 answers

WooCommerce product not searchable by SKU when created by import

When importing products with CSV searching for one of the products created by the import by name works, but searching for the SKU returns nothing. This is true both in admin and the storefront (using a search plugin that can search by SKU). The…
Forecaster
  • 165
  • 1
  • 8
1
vote
1 answer

Add the sku to order items on my account order view pages in Woocommerce

In Woocommerce, I am customizing my view order in MyAccount. I already added the Product images with this answer code: Add the product image to Woocommerce my account order view Now I would like to add the Product SKU to The View order pages but, I…
1
vote
1 answer

WooCommerce: show current SKU and GTIN in variable product page

Is there a way to display the current product SKU and GTIN in a variable product page? Right now I'm using the following code, but it only works for simple products without variations: add_action('woocommerce_single_product_summary',…
otpabu
  • 87
  • 1
  • 4
  • 10
1
vote
1 answer

Find Sku if planName is given in PowerShell

I am new to AzureAD Powershell. I have some ServicePlanName like Deskless ,SHAREPOINTSTANDARD, I want the correspondent SkuID (here O365PREMIUM's Skuld). My input will be the ServicePlanName and the output should be SKUID. I don't know which command…
SaravananKS
  • 577
  • 4
  • 18
1
vote
1 answer
1 2
3
8 9