Announcement

Collapse
No announcement yet.

schema ld+json and rich snippets brand does not display

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

    schema ld+json and rich snippets brand does not display

    Why does a custom field for brand not display in either rich snippets or ld+json schema?

    The only difference I can see in the rich snippets and ld+json if the fact that the custom field code in the store is all caps. However, I tried using all caps as well and still no display in view source of my browser.

    This is a Miva Merchant 10.00.06, Shadows 2.00.05

    Apologies for images, but for some reason, I can't copy/paste to the forum and cannot use the <code> tags.


    This is what is on the PROD page template for rich snippets:

    rich-snippets.png

    This is what is on the PROD page template for ld+json:
    schema_ld-json.png

    Thanks,

    Jamie
    Jamie Donaldson
    JSDVS Web Design / Development
    Web Design | Web Development | E-commerce Design & Integration

    #2
    Believe you have to read the product code first.

    It should not have to be all caps

    Code:
    <mvt:item name="customfields" param="Read_Product_Code( l.settings:product:code, 'brand', g.brand )" />
    <mvt:if expr="NOT ISNULL g.brand">
    "name": "&mvtj:global:brand;"
    <mvt:else>
    "name": "&mvtj:global:store:name;"
    </mvt:if>
    Nick Harkins
    www.loveisarose.com

    Comment


      #3
      Customfield brand now displays in the json+ld with the below:

      Originally posted by SidFeyDesigns View Post
      Believe you have to read the product code first.

      It should not have to be all caps

      Code:
      <mvt:item name="customfields" param="Read_Product_Code( l.settings:product:code, 'brand', g.brand )" />
      <mvt:if expr="NOT ISNULL g.brand">
      "name": "&mvtj:global:brand;"
      <mvt:else>
      "name": "&mvtj:global:store:name;"
      </mvt:if>
      Had to change name to brand in the below for the rich snippets.

      Code:
      <mvt:item name="customfields" param="Read_Product_Code( l.settings:product:code, 'brand', g.brand )" />
      <mvt:if expr="NOT ISNULL g.brand">
      "brand": "&mvtj:global:brand;"
      <mvt:else>
      "name": "&mvtj:global:store:name;"
      </mvt:if>
      Thanks so much for pointing out my error! You are so very much appreciated!!

      Jamie

      Jamie Donaldson
      JSDVS Web Design / Development
      Web Design | Web Development | E-commerce Design & Integration

      Comment


        #4
        jsdva You're welcome, happy to help!
        Nick Harkins
        www.loveisarose.com

        Comment

        Working...
        X