Hi. I have woocommerce and have open graph protocol and Social SEO booster. But they do not generate a price open graph tag.
I wish to generate the following:
<meta property=”og:price:amount” content=”15.00″ /> where 15.00 is the price of the product being viewed. This is so that I can have Pinterest Rich Pins.
I have found the following codes looking thru the php files but neither seem to work for me?
<?php echo $product->get_price_html(); ?> <?php echo get_woocommerce_single_product_price(); ?>
It is probably something simple, but I am new to WP, Woocommerce, and not really a good php programmer yet.
- The topic ‘Code to output price?’ is closed to new replies.