Announcement

Collapse
No announcement yet.

ReadyTheme Rich Snippets Code Deprecated

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

    #46
    Hi Leslie,

    Do you have this in your code?
    Code:
    <mvt:assign name="l.settings:product:stripped_descrip" value="miva_html_strip(l.settings:product:descrip, '')"/>
    Matt Zimmermann
    Front-End Development Director / Miva, Inc.

    Comment


      #47
      Originally posted by Matt Zimmermann View Post
      Hi Leslie,

      Do you have this in your code?
      Code:
      <mvt:assign name="l.settings:product:stripped_descrip" value="miva_html_strip(l.settings:product:descrip, '')"/>
      Yes. This is what I had copied from https://gist.github.com/influxweb/ff...f96eeb8039ab5b


      Code:
      <mvt:assign name="l.settings:product:stripped_descrip" value="miva_html_strip(l.settings:product:descrip, '')"/>
      {
      "@context": "http://schema.org",
      "@type": "Product",
      "name": "&mvtj:product:name;",
      "image": "&mvt:global:socialImage;",
      "description": "&mvtj:product:stripped_descrip;",
      <mvt:if expr="NOT ISNULL l.settings:product:sku">
      "sku": "&mvtj:product:sku;",
      "mpn": "&mvtj:product:sku;",
      <mvt:else>
      "sku": "&mvtj:product:code;",
      "mpn": "&mvtj:product:code;",
      </mvt:if>
      "category": "&mvtj:category:name;",
      "brand": {
      "@type": "Thing",
      <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :brand">
      "name": "&mvtj:product:customfield_values:customfields:bra nd;"
      <mvt:else>
      "name": "&mvtj:global:store:name;"
      </mvt:if>
      },
      "offers": {
      "@type": "Offer",
      "url": "&mvtj:product:link;",
      <mvt:if expr="NOT ISNULL l.settings:product:sku">
      "sku": "&mvtj:product:sku;",
      <mvt:else>
      "sku": "&mvtj:product:code;",
      </mvt:if>
      "name": "&mvtj:product:name;",
      "description": "&mvtj:product:stripped_descrip;",
      "seller": "&mvtj:global:store:name;",
      "itemCondition": "new",
      <mvt:if expr="l.settings:attributemachine:product:inv_leve l">
      <mvt:assign name="l.availability_inv_level" value="l.settings:attributemachine:product:inv_lev el"/>
      <mvt:do name="l.formatted_variant_price" file="g.Module_Root $ g.Store:currncy_mod:module" value="CurrencyModule_AddFormatting( g.Store:currncy_mod, l.settings:attributemachine:product:price )" />
      "price": "&mvtj:attributemachine:product:price;",
      <mvt:else>
      <mvt:assign name="l.availability_inv_level" value="l.settings:product:inv_level"/>
      "price": "&mvtj:product:price;",
      </mvt:if>
      <mvt:if expr="l.availability_inv_level EQ 'low'">
      "availability": "http://schema.org/LimitedAvailability",
      <mvt:elseif expr="l.availability_inv_level EQ 'out'">
      "availability": "http://schema.org/OutOfStock",
      <mvt:else>
      "availability": "http://schema.org/InStock",
      </mvt:if>
      "priceCurrency": "USD"
      }
      }
      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


        #48
        Hi Leslie,

        You might try replacing the mvtj call with an MVT:EVAL and see if that outputs.
        Matt Zimmermann
        Front-End Development Director / Miva, Inc.

        Comment


          #49
          Originally posted by Matt Zimmermann View Post
          Hi Leslie,

          You might try replacing the mvtj call with an MVT:EVAL and see if that outputs.
          Example pretty please?
          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


            #50
            I haven't made any changes but now all of sudden the description is appearing but it's got junk in it like

            ​​​​​​\r\n \u0021\r\n\r\n
            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


              #51
              Hi Leslie,

              That would be the JavaScript equivalent of "line-break, exclamation point, line-break, line-break". The output should be interpreted correctly by Google.
              Matt Zimmermann
              Front-End Development Director / Miva, Inc.

              Comment


                #52
                Originally posted by Matt Zimmermann View Post
                Hi Leslie,

                That would be the JavaScript equivalent of "line-break, exclamation point, line-break, line-break". The output should be interpreted correctly by Google.
                Okie dokie - I guess I scared it into working
                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


                  #53
                  Circling back to this - how do I add the Reviews to this?
                  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


                    #54
                    https://developers.google.com/search...review-snippet
                    Matt Zimmermann
                    Front-End Development Director / Miva, Inc.

                    Comment


                      #55
                      I've looked it over and was wondering since would be for Product Reviews by Tess. I realize its a freebie but it would be great to have the few lines needed. Please, how do you tell Google there aren't any reviews yet? Does a conditional need to be written to hide that info until it is available?

                      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


                        #56
                        Originally posted by lesliekirk View Post

                        I've looked it over and was wondering since would be for Product Reviews by Tess. I realize its a freebie but it would be great to have the few lines needed. Please, how do you tell Google there aren't any reviews yet? Does a conditional need to be written to hide that info until it is available?
                        Can this module also do store reviews?
                        Thank you, Bill Davis

                        Comment


                          #57
                          Originally posted by William Davis View Post

                          Can this module also do store reviews?
                          It's just for Product Reviews.
                          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


                            #58
                            Originally posted by Matt Zimmermann View Post
                            Here is the boilerplate JSON-LD data which will be included in the next version of Shadows. You may need to make changes to it based on your site and how you sell your products, so this may not work 100% as cut-n-paste. These steps are designed around using JavaScript Resources. This code passes with only warnings for items like reviews and how long the price is good for which you can add if you are using.

                            To add this to your site:
                            1. Navigate to User Interface -> JavaScript Resources
                            2. Click "Add JavaScript Resource"
                            3. Enter code "product-json-ld"
                            4. Select "Inline Script"
                            5. Click "Edit" for the tag attributes
                            6. Change the "Value" to "application/ld+json"
                            7. Turn off "Global" for this resource
                            8. Click "Save"
                            9. Click "Pages" and select "PROD"
                            10. Click "Resource Groups" and select "footer_js"
                            11. Click "Edit Source" and paste in the following code:
                            Code:
                            <mvt:assign name="l.settings:product:stripped_descrip" value="miva_html_strip(l.settings:product:descrip, '')"/>
                            {
                            "@context": "http://schema.org",
                            "@type": "Product",
                            "name": "&mvtj:product:name;",
                            "image": "&mvt:global:socialImage;",
                            "description": "&mvtj:product:stripped_descrip;",
                            <mvt:if expr="NOT ISNULL l.settings:product:sku">
                            "sku": "&mvtj:product:sku;",
                            "mpn": "&mvtj:product:sku;",
                            <mvt:else>
                            "sku": "&mvtj:product:code;",
                            "mpn": "&mvtj:product:code;",
                            </mvt:if>
                            "category": "&mvtj:category:name;",
                            "brand": {
                            "@type": "Thing",
                            <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:brand">
                            "name": "&mvtj:product:customfield_values:customfields:brand;"
                            <mvt:else>
                            "name": "&mvtj:global:store:name;"
                            </mvt:if>
                            },
                            "offers": {
                            "@type": "Offer",
                            "url": "&mvtj:product:link;",
                            <mvt:if expr="NOT ISNULL l.settings:product:sku">
                            "sku": "&mvtj:product:sku;",
                            <mvt:else>
                            "sku": "&mvtj:product:code;",
                            </mvt:if>
                            "name": "&mvtj:product:name;",
                            "description": "&mvtj:product:stripped_descrip;",
                            "seller": "&mvtj:global:store:name;",
                            "itemCondition": "new",
                            <mvt:if expr="l.availability_inv_level EQ 'low'">
                            "availability": "http://schema.org/LimitedAvailability",
                            <mvt:elseif expr="l.availability_inv_level EQ 'out'">
                            "availability": "http://schema.org/OutOfStock",
                            <mvt:else>
                            "availability": "http://schema.org/InStock",
                            </mvt:if>
                            <mvt:if expr="l.settings:attributemachine:product:inv_level">
                            <mvt:assign name="l.availability_inv_level" value="l.settings:attributemachine:product:inv_level"/>
                            <mvt:do name="l.formatted_variant_price" file="g.Module_Root $ g.Store:currncy_mod:module" value="CurrencyModule_AddFormatting( g.Store:currncy_mod, l.settings:attributemachine:product:price )" />
                            "price": "&mvtj:attributemachine:product:price;",
                            <mvt:else>
                            <mvt:assign name="l.availability_inv_level" value="l.settings:product:inv_level"/>
                            "price": "&mvtj:product:price;",
                            </mvt:if>
                            "priceCurrency": "USD"
                            }
                            }
                            Matt Zimmermann, would it be possible to include in the above snippet "sale_price" and "sale_price_effective_date" from Price Group on PROD page and data feed? If so, how?
                            Last edited by William Davis; 02-11-22, 03:57 PM.
                            Thank you, Bill Davis

                            Comment


                              #59
                              Hi Bill,

                              You'll probably have to include a conditional in regards to the effective date and then add in the "priceValidUntil" optino found here: https://schema.org/Offer
                              Matt Zimmermann
                              Front-End Development Director / Miva, Inc.

                              Comment


                                #60
                                Originally posted by Matt Zimmermann View Post
                                Hi Bill,

                                You'll probably have to include a conditional in regards to the effective date and then add in the "priceValidUntil" optino found here: https://schema.org/Offer
                                But I would be able to pull all that data from Price Group correct?
                                Last edited by William Davis; 02-11-22, 04:41 PM.
                                Thank you, Bill Davis

                                Comment

                                Working...
                                X