Need bread crumb schema for our site

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wajake41
    Mega Mivite


    • Dec 2009
    • 2303

    #1

    Need bread crumb schema for our site

    Does Miva have a module that will create a bread crumb schema for our PROD page or do I need to create it using template code?
    We have bread curmbs on the PROD page I just need a way to create a schema from it.
    Cheers, Larry

    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en


  • wajake41
    Mega Mivite


    • Dec 2009
    • 2303

    #2
    Update: Asked ChatGPT about this and got a solution?
    The result validates at https://schemavalidator.org/validate...schema?tab=url so I presume it is valid?

    Chat's answer:
    <script type="application/ld+json">
    {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
    {
    "@type": "ListItem",
    "position": 1,
    "name": "Home",
    "item": "https://www.orange-traffic-cones.com/SFNT.html"
    },
    {
    "@type": "ListItem",
    "position": 2,
    "name": "&mvte:category:name;",
    "item": "&mvte:category:url;"
    },
    {
    "@type": "ListItem",
    "position": 3,
    "name": "&mvte:product:name;"
    }
    ]
    }
    </script>

    Opinions anyone.
    Cheers, Larry
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en


    Comment

    • wajake41
      Mega Mivite


      • Dec 2009
      • 2303

      #3
      Oops, fpund an issue. The Miva generated breadcrumb is truncating the product name.
      Example from page source: Lakeside Plastics 1850-00 18 inch O...
      <div id="page-header"> <div id="breadcrumbs"><ul>
      <li><a href="https://www.orange-traffic-cones.com/SFNT.html" class="breadcrumb-home">Home</a><span class="breadcrumb-border">&raquo;</span></li>
      <li><a href="https://www.orange-traffic-cones.com...fficcones.html">Cones</a><span class="breadcrumb-border">&raquo;</span></li>
      <li><span class="current-item">Lakeside Plastics 1850-00 18 inch O...</span></li>
      </ul>
      I need to use the abbreviated name in my breadcrumb schema as the schema must match the breadcrumb path exactly. So I need to find and modify the Miva breadcrumb template code for the Miva breadcrumb or somehow create the same abbreviated product name Miva variable for my schema.
      Looking for help on doing this.
      Thanks, Larry
      Larry
      Luce Kanun Web Design
      www.facebook.com/wajake41
      www.plus.google.com/116415026668025242914/posts?hl=en


      Comment

      • wajake41
        Mega Mivite


        • Dec 2009
        • 2303

        #4
        Found the solution. In Miva breadcrumb creation the product name length can be limited. I removed the limiting length and now my breadcrumb product name is the same as the pages breadcrumb product name.
        Larry
        Luce Kanun Web Design
        www.facebook.com/wajake41
        www.plus.google.com/116415026668025242914/posts?hl=en


        Comment

        • lesliekirk
          Super Moderator











          • Aug 2008
          • 9296

          #5
          Larry, FWIW, ChatGPT and I don't do "Miva" very well at all. But I have had successes with it and JavaScript. I guess we need to keep feeding the beast...
          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: X | Facebook | Pinterest

          Comment

          • wajake41
            Mega Mivite


            • Dec 2009
            • 2303

            #6
            I''m using Chat with everything I code. Principally PHP and JS. Even with Miva template code as seen above. BTW I got the breadcrumb schema working on 2 of our sites (with help from Miva support) and Google has rewarded us with an additional Rich Reward. It's been a good day!
            Larry
            Luce Kanun Web Design
            www.facebook.com/wajake41
            www.plus.google.com/116415026668025242914/posts?hl=en


            Comment

            • wajake41
              Mega Mivite


              • Dec 2009
              • 2303

              #7
              A bit more on Chat. Ran our Prod page through the Googhle Rich Rewards validator and Google said there was an error in our breadcrumb schema. Copied the generated schema code from PROD page source, opened the Chat side bar in Edge and copied the code into Chat asking what was wrong. Chat took a second and pointed out the error. Missing " in my JSON. Gotta love that Chat ;)
              Cheers, Larry
              Larry
              Luce Kanun Web Design
              www.facebook.com/wajake41
              www.plus.google.com/116415026668025242914/posts?hl=en


              Comment

              • wajake41
                Mega Mivite


                • Dec 2009
                • 2303

                #8
                Final solution:
                <mvt:comment> added bread crumbs 8/30/26 </mvt:comment>
                <script type="application/ld+json">
                {
                "@context": "https://schema.org",
                "@type": "BreadcrumbList",
                "@id": "https://www.xxxxxxxxxxxxx.com/PROD/&mvt:product:code;.html#breadcrumb",
                "itemListElement": [
                {
                "@type": "ListItem",
                "position": 1,
                "name": "Home",
                "item": "&mvt:breadcrumbs:homelink;"
                },
                {
                "@type": "ListItem",
                "position": 2,
                "name": "&mvte:category:name;",
                "item": "&mvt:breadcrumbs:links[1]:link;"
                },
                {
                "@type": "ListItem",
                "position": 3,
                "name": "&mvt:breadcrumbs:links[2]:name;",
                "item": "&mvt:breadcrumbs:links[2]:link;"
                }
                ]
                }
                </script>

                Google gave us a Rich Reward, for whatever that's worth, after adding this breadcrumb schema to our site.
                We also added an Organization schema to our site and scored another Rich Reward.

                IMHO the breadcrumb schema should be created by Miva as a service to all it's clients. Would be easy for them to do.
                Larry
                Luce Kanun Web Design
                www.facebook.com/wajake41
                www.plus.google.com/116415026668025242914/posts?hl=en


                Comment

                • Nick
                  Super Moderator











                  • Dec 2011
                  • 577

                  #9
                  Originally posted by wajake41 View Post
                  IMHO the breadcrumb schema should be created by Miva as a service to all it's clients. Would be easy for them to do.
                  This is actually built into the Shadows Framework. Shadows is shipped with a JavaScript Resource called "json-ld". The resource is added to the "footer_js" Resource Group and rendered in the Global Footer of the Shadows Framework.

                  Here is the breadcrumb section of the file: https://github.com/mivaecommerce/sha...ld.mvt#L37-L55

                  It is possible so add the "json-ld" to any framework as it is not specific to the Shadows Framework.
                  Nicholas Adkins
                  Technical Training Specialist / Miva, Inc.
                  [email protected]
                  https://www.miva.com/mivalearn

                  Comment

                  • wajake41
                    Mega Mivite


                    • Dec 2009
                    • 2303

                    #10
                    Thanks for the reply on this Nick, I wanted a Miva generated breadcrumb schema instead of building it myself.
                    Larry
                    Luce Kanun Web Design
                    www.facebook.com/wajake41
                    www.plus.google.com/116415026668025242914/posts?hl=en


                    Comment

                    • wajake41
                      Mega Mivite


                      • Dec 2009
                      • 2303

                      #11
                      I tried the Miva breadcode script. It has an error detected by both Google Rich Result and ChatGPT.
                      Chat found this error:
                      Invalid JSON — there is a stray comma before the BreadcrumbList object
                      code line 38 has the ,
                      I removed the comma and the result was accepted by Google and Chat
                      Cheers
                      Larry
                      Luce Kanun Web Design
                      www.facebook.com/wajake41
                      www.plus.google.com/116415026668025242914/posts?hl=en


                      Comment

                      Working...
                      X