undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. Technical SEO
  4. Exclude price in rich snippet markup

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Exclude price in rich snippet markup

Technical SEO
2
5
1.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • knubbz
    knubbz last edited by Jan 31, 2016, 12:35 PM

    Our site has their prices hidden for non logged in users.

    Its a woocommerce built site and the rich snippet markups are added by woocommerce.

    I would like to remove the markup for the price becouse : 1, we would like our customers to register for prices. 2 i dont want to get penalties for not showing the same thing to visitors as to "google" ..

    Any help or thoughts on this one?

    Thanks

    / Jonas

    1 Reply Last reply Reply Quote 0
    • knubbz
      knubbz @Mobilio last edited by Feb 6, 2016, 9:30 AM Feb 6, 2016, 9:30 AM

      That lead me to the right direction!

      Got it all working with price excluded in the rich snippet, still validating as a product with reviews, sku and description.

      My solution..

      Create following directories:

      wp-content/themes/[your_theme]/woocommerce

      wp-content/themes/[your_theme]/woocommerce/single-product

      Create price.php and ad it to /single-product

      Ad this code to the custom price.php

      if ( ! defined( 'ABSPATH' ) ) {
      exit; // Exit if accessed directly
      }

      global $product;

      ?>

      get_price_html(); ?>

      // Jonas

      1 Reply Last reply Reply Quote 0
      • Mobilio
        Mobilio @knubbz last edited by Feb 1, 2016, 5:50 AM Jan 31, 2016, 6:55 PM

        I don't know what kind of Woo + WordPress + theme you use. But you can download everything into separate folder and use tool to find text in all files. You just need to look who is responsible for "schema.org/Offer" adding into HTML.

        Here is shoot in the dark:
        https://webdesires.co.uk/blog/add-schema-to-woocommerce-products/
        you just need to reverse this change.

        As i said - it's just guessing. Can be also in plugin somewhere.

        knubbz 1 Reply Last reply Feb 6, 2016, 9:30 AM Reply Quote 1
        • knubbz
          knubbz @Mobilio last edited by Jan 31, 2016, 6:43 PM Jan 31, 2016, 6:43 PM

          Hi Peter and thanks for your respons!

          Any tips on how to do this patch in an easy way?

          Mobilio 1 Reply Last reply Jan 31, 2016, 6:55 PM Reply Quote 0
          • Mobilio
            Mobilio last edited by Jan 31, 2016, 1:54 PM Jan 31, 2016, 1:54 PM

            Here is example of Rich Snippet w/o offer (with price):

            ACME
              Executive Anvil
             
              Sleeker than ACME's Classic Anvil, the
                Executive Anvil is perfect for the business traveler
                looking for something to drop from a height.

            Product #: 925872
              4.4 stars, based on 89 reviews

            As you can see this code can be validated and works OK. Now you need to go back in Woo and make "patch" to remove http://schema.org/Offer where is price located. OR temporary disable them.

            knubbz 1 Reply Last reply Jan 31, 2016, 6:43 PM Reply Quote 1
            • 1 / 1
            1 out of 5
            • First post
              1/5
              Last post

            Got a burning SEO question?

            Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


            Start my free trial


            Browse Questions

            Explore more categories

            • Moz Tools

              Chat with the community about the Moz tools.

            • SEO Tactics

              Discuss the SEO process with fellow marketers

            • Community

              Discuss industry events, jobs, and news!

            • Digital Marketing

              Chat about tactics outside of SEO

            • Research & Trends

              Dive into research and trends in the search industry.

            • Support

              Connect on product support and feature requests.

            • See all categories

            Related Questions

            • Ravi_Rana

              Why Product pages are throwing Missing field "image" and Missing field "price" in Wordpress Woocommerce

              technical seo structured data woocommerce wordpress seo

              I have a wordpress wocommerce website where I have uploaded 100s of products but it's giving me error in GSC under merchant listing tab. When I tested it show missing field image and missing field price. I have done everything according to https://developers.google.com/search/docs/appearance/structured-data/product#merchant-listing-experiences and applied fixed i.e. images are 800x800 and price range is also there. What else can be done here?!merchant listing.jpg

              Technical SEO | Nov 8, 2023, 6:01 PM | Ravi_Rana
              0
            • ThomasErb

              Exclude local host traffic from google analytics

              I'm getting a lot of local host referral traffic  from an unknown source.I want to get rid of this from my google analytics reports. I've tried this filter  - but the traffic still appears. Filtername = local host Filtertype= custom Exclude = filter field referral Filter pattern  (.?localhost.?) Any ideas ? thanks in advance.

              Technical SEO | May 3, 2017, 8:59 AM | ThomasErb
              0
            • vcj

              Include or exclude noindex urls in sitemap?

              We just added tags to our pages with thin content. Should we include or exclude those urls from our sitemap.xml file? I've read conflicting recommendations.

              Technical SEO | Oct 20, 2016, 4:30 AM | vcj
              0
            • Vsood

              Event Schema markup for multiple events (same location/address)?

              I was wondering if its possible to markup multiple events on the same page for one location/address using the event schema.org markup? I tried doing it on a sample page below: http://www.rama.id.au/event-schema-test/ Google's schema testing tool shows that its all good (except for warning for offers). Just wanted to know if I am doing it correctly or is there a better solution. Any help would be much appreciated. Thank you 🙂

              Technical SEO | Jun 28, 2018, 10:57 PM | Vsood
              0
            • tbinga

              Schema markup for products is missing "price": Is this bad?

              Hey guys, So a current client of mine has an e-commerce shop with a few hundred products. They purposely choose to keep the prices off of their website, which is causing errors in Google Webmaster Tools. Basically the error shows: Error: Structured Data > Product (markup: schema.org) Error type: missing price 208 items with error Is this a huge deal? Or are we allowed to have non-numerical prices for schema ie. "call for quote"

              Technical SEO | Aug 29, 2014, 4:15 PM | tbinga
              1
            • MarloSchneider

              Is it worth adding schema markup to articles?

              I know things like location, pagination, breadcrumbs, video, products etc have value in using schema markup. What about things like articles though? Is it worth all the work involved in having the pages mark up automatically? How does this effect SEO, and is it worthwhile? Thanks, Spencer

              Technical SEO | Apr 24, 2013, 5:40 PM | MarloSchneider
              0
            • markadoi84

              Exclude Child URLs from XML Sitemap Generator (Wordpress)

              Hi all, I was recommended the XML Sitemap Generator for Wordpress by the very helpful Keith Bloemendaal and John Pring - however I can't seem to exclude child URLs. There is a section Exclude items  and a subsection Exclude posts.  I have tried inputting the URLs for the pages I don't want in the sitemap, however that didn't work.  So I read that you have to include a list of "IDs" - not sure where on earth to find that info, tried the page name and the post= number from the URL, however neither worked. I hope somebody can point me in the right direction - and apologies, I am a Wordpress novice, and I got no answers from the Wordpress forums so turned right back to SEOmoz! Cheers.

              Technical SEO | May 23, 2012, 11:29 AM | markadoi84
              0
            • derderko

              Schema for Price Comparison Services - Good or Bad?

              Hey guys, I was just wondering what the whole schema.org markup means for people that run search engines (i.e. for a niche, certain products) or price comparison engines in general. The intend behind schema.org was to help the engines better understand the pages content. Well, I guess such services don't necessarily want Google to understand that they're just another search engine (and thus might get thrown out of the index for polluting it with search result pages). I see two possible scenarios: either not implement them or implement them in a way that makes the site not look like an aggregator, i.e. by only marking up certain products with unique text. Any thoughts? Does the SEOmoz team has any advice on that? Best,
              schuon

              Technical SEO | Jun 20, 2011, 2:33 AM | derderko
              0

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy

            Looks like your connection to Moz was lost, please wait while we try to reconnect.