I sorted this out, $post
should be $p
in:
global $post;
$product = new WC_Product( $post->ID );
Related Posts:
- Is it possible to add custom fields to a WooCommerce attribute term? [closed]
- Display Advanced Custom Fields value in Woocommerce admin order details
- Display custom field without plugin in woocommerce
- wp_set_object_terms being undone
- How to give each category name its own ACF background color?
- Need to check if user has completed a woo commerce payment
- How to retrieve a Menu Name by Menu Location with ACF fields
- WooCommerce and ACF: How to Redirect Upon Add to Cart – Partially Working Example
- ACF in WooCommerce mail template
- creating number of database entries based on users numerical input
- How to store ACF from product in user_meta?
- how to get woocommerce product id by acf field in wordpress and display product
- How to get an Array from “select” field in advanced custom fields
- Insert a custom field as a second email address to a completed order in WooCommerce
- Add field to category woocommerce page
- acf_form() – “On Update” action [closed]
- How to get current product category ID in product archive page
- WooCommerce prices location in DB
- WP/WooCommerce REST API cart/checkout/order [closed]
- Get product link
- Process checkout using WC REST API
- Hide certain tags on Product Edit tag cloud
- The values of custom fields are not available functions.php
- How do I add a “Cancel” button on the subscriptions listing page [closed]
- Woocommerce: get product ID from variation sku
- ‘false’ returns on all calls for a product
- Show only sidebar if widgets have content on the current page
- WooCommerce customer account multiple emails
- Get the name of all the Items of cart in current session
- Change WordPress Site Title and Tagline and WooCommerce settings using ACF [closed]
- Using a filter with multiple parameters and $this
- Remove Dashboard button from menu in my account page – WooCommerce
- Update html tag class values based on Woocommerce product attribute dropdown selection [closed]
- Woocommerce: custom loop in product tabs breaks reviews tab
- Category Tree In WooCommerce Product API
- How to delete 1000s of duplicated images in WordPress?
- WooCommerce product archive url without value / all values
- Woocommerce Product Import Automation
- Get posts from subcategory by parent category slug
- how to get jetpack’s infinite scroll to work with woocommerce?
- WooCommerce orderby template disappears and not longer works on search page
- Woocommerce variations as a list [closed]
- Check if page is a woocommerce attribute
- DELETE WooCommerce Order data from database
- How do I update every title of a certain category with a phrase
- Change max number of products on shop pages
- WooCommerce: One term for Many Product Attributes
- How to search variable product by its variation id in woocommerce admin product search box?
- How to dequeue script on woocommerce product?
- Hide inventory message on product page based on available stock quantity
- Different Templates for Woocommerce Parent and Child Sub Categories
- How to output woocommerce products to a page, style and modify the html structure
- Else: Show Message Outside of Product Loop
- Clients with empty username are not receiving request new password email
- how can i add an additional action into woocommerce admin order page through my plugin?
- Woocommerce changing add to cart button text as icon [closed]
- How to make an edit to an already published post back to Draft
- Display data when category is empty
- Disable woocommerce PLACE ORDER button if user selected products that are not available for international delivery
- Remove sale signs from site in branded? [closed]
- Create a regular post for every WooCommerce order
- Use woocmmerce function on theme and override them
- Hooks For Design variation in woo commerce single product page
- Dokan stock management
- Woocommerce Checkout Page Total Price Inside Google Pay Script
- How to hide order action button after changing order status to completed
- Access custom meta_data in processing order email
- How to get rid of variations with unspecified attributes
- Deregister dequeue JS scripts except on 1 product page
- Woocommerce – how to round up all prices to end in .99
- Woocommerce Rest API: woocommerce_product_invalid_image_id
- How do I disable “Flat Rate” radio button and remain with other shipping method in woocommerce
- How to add woocommerce product price filter widget to other page
- Remove Stripe Woocommerce Credit Card Icons (and replace with image)
- How to add external product url to woocommerce from a metadata by function.php
- Unable to call woocommerce hook in my custom php file
- Change WooCommerce state and city checkout fields to dropdowns related to the chosen country
- How to apply a custom coupon to a WooCommerce Subscription recurring amount?
- How to send an automatic email to a custom field in Woocommerce order meta 2 weeks after a product is bought
- Woocommerce cart table too wide [closed]
- Make Woocommerce breadcrumbs show up using functions.php file
- Alter the cost of products using phpmyadmin sql query
- How does one allow any customer to process any order in store on woocommerce?
- WooCommerce CSV Image URL Creates Additional Images in Media Folder
- Custom changes performed on WP + WooCom site on maintenance subdomain. How to perform a migration to a main domain?
- WooCommerce Custom Tab with ACF Repeater Field
- Woocommerce Child Category Permalink Structure Change
- Allow customer to choose an optional free/paid product to add to their order (and reduce stock reduced & record sale)
- How to restrict type/size of file uploads in any plugin?
- In woocommerce some products have empty options, but how to check this
- Stop the “upload file size” error from printing [closed]
- How to disable the “Upgrade or Downgrade” button in “My account” of WooCommerce Subscriptions
- WooCommerce – Inconsistent Indexing of Orders
- Woocommerce Add to Cart function
- WooCommerce – doesn’t show product when using woocommerce.php [closed]
- How to show woocommerce login / registration form in modal
- url rewrite doesn’t load woocommerce product
- Critical error on woocommerce checkout page
- Can’t add variable products since update WooCommerce [closed]
- Add custom ID to WooCommerce product tab