What is the correct format to fetch product ID?
-
I’m trying to fetch my product ID for a snippet (HTML tag) for Fera.ai reviews and we’re having issues. We’ve tried:
<div data-fera-container=”460708″ data-product_id=”<? echo get_the_ID(); ?>”></div>
and
<div data-fera-container=”460708″ data-product_id=”<?php echo wc_get_product()->get_id(); ?>”></div>
Screenshot >> Screenshot to pull up product IDs
Without any success, anybody know the correct format to fetch product ID from woocommerce product page?
Thank you
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘What is the correct format to fetch product ID?’ is closed to new replies.