1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WooCommerce & og:price

Discussion in 'Web Design' started by pxoxrxn, May 16, 2015.

  1. pxoxrxn

    pxoxrxn Supreme Member

    Joined:
    Dec 21, 2011
    Messages:
    1,398
    Likes Received:
    2,072
    Does anyone know how I can get these tags into my WooCommerce product page?

    I have the following from the 'All in One SEO' social addon:
    But for some reason they left out price and currency. I would prefer to add it straight to the header.php because I don't want to install more SEO plugins that will conflict with All in One SEO.
    Thanks
     
  2. Rioda

    Rioda Newbie

    Joined:
    Jun 3, 2012
    Messages:
    10
    Likes Received:
    2
    Create a new, empty, plugin (it won't affect performance in a visible way because it is really simple and small piece of code) and put this in it:


    It will print the informations only on the woocommerce products pages.
    I did this on the fly, so it may require some tuning if your site has some complexities, but it should be enough to cover most cases (tested and it works).

    If you need more help or customizations shoot me a PM, I love to work with wordpress (creating and troubleshooting plugins and themes).
     
  3. watermelon12

    watermelon12 Newbie

    Joined:
    Jun 7, 2015
    Messages:
    19
    Likes Received:
    4
    Try searching for a plugin, most likely if you need to do it, lots of others have already