Home › Forums › Support › Display woocommerce product id in product page This topic has 3 replies, 2 voices, and was last updated 3 years, 5 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts November 5, 2020 at 10:08 pm #1519956 melvin wang Hi, I would like to display the product id in every product page. I’m using GPP Hook element to woocommerce_single_product_summary. Could I know what code I’ve to insert so that the product ID will display as per below? View post on imgur.com Source of Product ID View post on imgur.com November 6, 2020 at 5:01 am #1520270 DavidStaff Customer Support Hi there, try this: <?php global $product; $id = $product->get_id(); echo 'Product Id: ' . $id; ?> Make sure you check Execute PHP in the hook. November 6, 2020 at 6:40 am #1520404 melvin wang Hi David, Thanks it work perfectly. Bravo! Regards, Melvin November 6, 2020 at 7:41 am #1520687 DavidStaff Customer Support Glad to hear that Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In