• Greetings,

    I am a dummy when it comes to php code. I get by alright on my own but I’m definitely no expert.

    I have 3.5.2 and woocommerce 2.0.12.

    I am using a combination of itthinx.com’s open graph protocol plugin and the WordPress Social SEO booster plugins to generate various open graph tags that I need for certain functions I am using with social media sites. But one of the tags I need generated is for the price so that the store qualifies to use Pinterest’s Rich Pins. I have every tag I need by modifying code here and there.

    I need one more tag to generate for price which would look like this

    <meta property="og:price:amount" content="15.00" /> where 15.00 would be the price of the product being viewed.

    It must be something simple but I am unfamiliar with using hooks and pretty new to WP itself. Any help would be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter yalrighty

    (@yalrighty)

    Neither of these work for me – the second one the page loads but my image slider breaks and the open graph tag does not generate. The first one just breaks the page…

    <meta property="og:price:amount" content="<?php echo $product->get_price_html(); ?>" />
    
    <meta property="og:price:amount" content="<?php echo get_woocommerce_single_product_price(); ?>
    " />

    There has to be an easy way to generate the tag.

    Hi,

    I’m the author of the NGFB Open Graph+ plugin. I’m taking a look at integrating WooCommerce this week.

    Thanks,

    js.

    i hope you do support woocommerce so we can use the rich pins feature in pinterest!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce and Open Graph meta tags’ is closed to new replies.