display SKU on product bundle
-
Hi suport,
I need to display the SKU when I’m adding a simple product to the bundle product. Because I have the same products but the only difference is the SKU, so when I add a simple product i need to know that, I have chosen the right product.
And i know that I can search a product with the SKU but I need this function for efficiency.
For instance I would like to have the same function that I implemented in order list item :add_action( 'woocommerce_thankyou', 'order_created_get_skus', 10 ); function order_created_get_skus($order_id){ $item_sku = array(); $order = wc_get_order( $order_id ); foreach ($order->get_items() as $item) { $product = wc_get_product($item->get_product_id()); $item_sku[] = $product->get_sku(); } }
Thanks for your answer,
Kind regards.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘display SKU on product bundle’ is closed to new replies.