Hope this code will helpful for you, the sku will be displayed at the end of shop loop
function shop_display_skus() {
global $product;
if ( $product->get_sku() ) {
echo '<div class="product-meta">SKU: ' . $product->get_sku() . '</div>';
}
}
add_action( 'woocommerce_after_shop_loop_item', 'shop_display_skus', 9 );
Related Posts:
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- How to disable Woocommerce password recovery and use the default WordPress password reset page?
- Limit users to one active subscription in WooCommerce Subscriptions? [closed]
- Display WooCommerce size product attribute on shop page
- WooCommerce add_to_cart() with custom price [closed]
- Declaring custom woocommerce product type as virtual / downloadable only [closed]
- How to remove_action inside class [duplicate]
- Redirect if current user is logged out and current page is /my-account
- WooCommerce HTML after short description if product is in specific category
- How to get total count for each star rating?
- Display a list subcategories under the main product category thumbnails?
- Unable to programmatically remove product from WooCommerce cart
- WooCommerce Apply Coupon to order AFTER taxes
- Rewriting Woocommerce Product Filters To URL Segments
- How to Change WooCommerce Variable product pricing by SKU or visible children id
- Is it possible to cache ?wc-ajax=get_variation
- echo product id and product_item_key in cart [closed]
- Redirect the single product page link to the shop page
- Is WooCommerce updates for WordPress necessary? [closed]
- How can I display *only* the child category of a product?
- Get the cart details from the order id in woocommerce?
- Add custom order meta to Order Completed email
- Hiding products with a specific tag from WooCommerce main shop page
- Woocommerce Customs Endpoint
- Woocommerce add payment method outside of checkout and my account
- Changing the Woocommerce breadcrumb menu [closed]
- how to do a processing Orders into Complete after x Minutes or x hour in WooCommerce [closed]
- show content of a page built using yootheme builder on different page/template
- How to detect if this post is a woocommerce product?
- Set a custom field to all orders
- Force User Registration before visitng Checkout Page
- Complex price options. Am I stuck with 180 variations?
- Position image widget in mega menu
- short description in shop page after title
- Improve WooCommerce checkout process [closed]
- How can I put the contents of My Account > Order into a separate page, Woocommerce
- WooCommerce Cart URL bug
- WP_Error on attribute + term insert
- change woocommerce product statut (draft ->publish // publish->draft) depends on the month [closed]
- How to add taxonomy term under the thumbnail on woocommerce product page
- How to overwrite price html in woocommerce single product page
- woocommerce breadcrumbs in theme [closed]
- Feed format for woocommerce [closed]
- Convert WordPress Woocomerce product to WordPress post
- How to set the meta description of a WooCommerce product as its primary category description?
- How to change woocommerce checkout privacy policy, terms and condition text [closed]
- how to remove this image? [closed]
- Create a shortcode for native WooCommerce search form [closed]
- add to cart button not adding products in cart only in safari and edge browser [closed]
- WC Lightbox, Zoom and Slider not loading [closed]
- Woocomerce pulling wrong time from server -5 hrs difference
- How to use Custom Field to display product brief description in shop page with Woocommerce?
- What happens in the database when you link variations in woocommerce? [closed]
- How to hook to function of woocommerce product export _regular_price?
- Display custom product option in admin order details
- remove sale price after finished countdown in woocommerce
- Woocommerce. How can I charge a fee from seller
- Add “new” tag for existing products
- How to retrieve a Menu Name by Menu Location with ACF fields
- How to update permalink programmatically?
- How to use decimal in quantity fields in WooCommerce for certain categories?
- Display shipping class in single product page woocommerce
- Is it ok to 301 redirect product-category pages to custom pages?
- how i can limit woo Category number like as ‘posts_per_page’ => -1, but it cannot work please help me
- Update a list of product to featured if product have meta value (Mysql not wpquery)
- Woocommerce – Add custom email footer to specific email template
- WooCommerce related product – only show from primary category
- Woocommerce: Variable Product – get variation name
- Forgot password flow does not work, getting email with a link but after clicking link it’s not working
- Html code is not showing in woocommerce shop page on adding in header.php?
- Correct method of reducing the number of images created by WP and Woo together
- How to skip woocommerce checkout after payment page? [closed]
- Product thumbnail size in catalog
- WordPress Migration
- how can i import the csv file in wordpress woocommerce.?
- some products free and some product is not free for shipping
- Importing Attributes in to Woocommerce
- woocomerce products and categories don’t display fixed
- Conditional email recipient based off Shipping Method [closed]
- Save Woocomerce discount as percentage to database
- Woocommerce Shipping based on condition and cart value
- How to bypass Woocommerce checkout validation from the plugin? [closed]
- Category with description and thumbnail
- Custom product loop avoiding duplicates
- Woocommerce – Remove ‘Buy Product’ Button + Make Product Thumbnails Clickable
- Issue with Woocommerce and extra field in orders data
- Give auto discount to upsells products
- WooCommerce Table Rates not splitting up
- How can I let the user choose size of a shoe in the store? [closed]
- Hide/show specific products for backend users in woocommerce
- I’d like to add a button under the “Add to Cart” button which says “Buy on Amazon” and links to my Amazon product page [closed]
- Making product image in woocommerce invoice linkable [closed]
- Woocommerce checkout column total too small can not get it wider [closed]
- Woocommerce – display all sold out products
- Woocommerce how to show most selling products by category
- AffiliateWP not calculating multiple quantities when using affwp_calc_referral_amount filter
- Hide a shipping method if cart total is higher than an amount
- WordPress pointing animated GIF images with wrong file name upon upload (GIFs animation not working)
- How to update all products with same SKU prefixes when updating stock with CSV?
- What is the best and cheapest way to generate dashboards about conversions data and store users? [closed]