Announcement

Collapse
No announcement yet.

ReadyTheme Rich Snippets Code Deprecated

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #61
    Hi Bill,

    I believe you should be able to.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #62
      Originally posted by lesliekirk View Post
      Circling back to this - how do I add the Reviews to this?
      I still need to be able to add the Review Snippet for the Reviews from the Product Reviews by Tess module.

      FYI the site has converted from the Glendale Designs Ratings & Reviews module which uses this code:
      Code:
      <mvt:if expr="l.settings:product:gd_ratings:total GT 0">
      "aggregateRating": {
      "@type": "AggregateRating",
      "ratingValue": "&mvte:product:gd_ratings:rating;",
      "ratingCount": "&mvte:product:gd_ratings:total;"
      },
      </mvt:if>
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


        #63
        Originally posted by lesliekirk View Post

        I still need to be able to add the Review Snippet for the Reviews from the Product Reviews by Tess module.

        FYI the site has converted from the Glendale Designs Ratings & Reviews module which uses this code:
        Code:
        <mvt:if expr="l.settings:product:gd_ratings:total GT 0">
        "aggregateRating": {
        "@type": "AggregateRating",
        "ratingValue": "&mvte:product:gd_ratings:rating;",
        "ratingCount": "&mvte:product:gd_ratings:total;"
        },
        </mvt:if>
        You should be able to use the template functions that is provided by the Product Reviews by Tess module to pull in that data and just replace the variables and entities:

        Load Product Rating
        Product_Rating( product_id, product_rating var )
        Load a product's average rating and save to a variable.
        Code:
        <mvt:item name="tgreviews" param="Product_Rating( l.settings:product:id,l.settings:product:product_rating )" />
        Load Product Review Count
        Product_Review_Count( product_id, count var )
        Load a product's reviews count and save to a variable.
        Code:
        <mvt:item name="tgreviews" param="Product_Review_Count( l.settings:product:id,l.settings:tgr:review_count )" />
        Nicholas Adkins
        Technical Training Specialist / Miva, Inc.
        [email protected]
        https://www.miva.com/mivalearn

        Comment


          #64
          I was able to figure out the "conversation" for both the JSON and the Google Rich Snippets.

          For the JSON

          Code:
          <mvt:if expr="l.settings:product:customfield_values:tgrevi ews:tgr_review_count GT 0">
          "aggregateRating": {
          "@type": "AggregateRating",
          "ratingValue": "&mvt:product:customfield_values:tgreviews:tgr_rat ing;",
          "ratingCount": "&mvt:product:customfield_values:tgreviews:tgr_rev iew_count;"
          },
          </mvt:if>

          For the Google Rich Snippets

          Code:
          <mvt:if expr="l.settings:product:customfield_values:tgrevi ews:tgr_review_count GT 0">
          <span itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
          Average rating: <span itemprop="ratingValue">&mvt:product:customfield_va lues:tgreviews:tgr_rating;</span>, based on
          <span itemprop="ratingCount">&mvt:product:customfield_va lues:tgreviews:tgr_review_count;</span> reviews
          </span>
          </mvt:if>
          Leslie Kirk
          Miva Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: [email protected]
          www.lesliekirk.com

          Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

          Comment

          Working...
          X