Google seach console - new missing id error today on breadcumb

1 2 >
Posted: September 20, 2019 at 5:29 AM Quote #247754
Anyone else seen this?

Breadcrumbs > Missing field "id"

apparently the error is here in this block, just before end of product breadcrumb




    
                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                    <strong class="current-item" itemprop="name">Demonia V-Creeper-510 Black Vegan Leather, 2 inch Platform Court Pump Shoes</strong>
                    <span itemprop="item" itemscope itemtype="http://schema.org/Thing">
                        <link itemprop="url" href="/pleaser-usa-demonia-v-creeper-510-black-vegan-leather-2-inch-platform-court-pump-shoes">
                    </span>
                    <meta itemprop="position" content="3" />
                    
                </li>
            </ul>
    </div>


            <div class="master-column-wrapper">
            <div class="center-1">
    
    
<!--product breadcrumb-->

This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 20, 2019 at 7:05 PM Quote #247805
I also just started getting these errors today... Anyone have any thoughts or solutions to this?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Best regards,
OTH
Posted: September 23, 2019 at 3:09 AM Quote #247909
Update your _ProductBreadcrumb.cshtml in views for product name to this


<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                        <a href="@Url.RouteUrl("Category", new { SeName = category.SeName })" itemprop="item">
                            <span itemprop="name">@category.Name</span>
                        </a>
                        <span class="delimiter">@breadcrumbDelimiter</span>
                        <meta itemprop="position" content="@position" />
                    </li>


this is fixed in nop version 4.20
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 23, 2019 at 7:35 AM Quote #247932
thanks for the answer, awesome. 4.2 upgrade is due on our stores, so may just hold out for this.

Cheers
Jon
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 24, 2019 at 6:46 AM Quote #247986
No you are not  right.
The problem is in the last element in breadcumb list (the category tree  + product URL).
This element (product Url) doesn't have the link because it's a link to itself.

Open this file _ProductBreadcrumb.cshtml

Old code for nop 4.10 (not 4.20 has another HTML elements)


                    <span itemprop="item" itemscope itemtype="http://schema.org/Thing">
                        <link itemprop="url" href="@Url.RouteUrl("Product", new { SeName = Model.ProductSeName })">
                    </span>


new code

                    <span itemprop="item" itemscope itemtype="http://schema.org/Thing" id="@Url.RouteUrl("Product", new { SeName = Model.ProductSeName })">
                    </span>



Replace this line >link itemprop="url" href  with id.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 24, 2019 at 10:20 AM Quote #248002
So, is this issue fixed in Nop 4.20?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 24, 2019 at 10:23 AM Quote #248003
Thank you foxnetsoft

Also need to update

CategoryTemplate.ProductsInGridOrLines for catoegories, or any category template files derived/copied from this. Also themes may override CategoryTemplate.ProductsInGridOrLines

replace.........



<span itemprop="item" itemscope itemtype="http://schema.org/Thing">
                            <link itemprop="url" href="@Url.RouteUrl("Category", new {SeName = cat.SeName})" />
                        </span>


with........



<span itemprop="item" itemscope itemtype="http://schema.org/Thing" id="@Url.RouteUrl("Category", new {SeName = cat.SeName})">
                        </span>

This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 24, 2019 at 10:29 AM Quote #248006
>So, is this issue fixed in Nop 4.20?
Yes.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 24, 2019 at 10:32 AM Quote #248007
Thanks!
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 27, 2019 at 9:32 AM Quote #248198
foxnetsoft wrote:
No you are not  right.
The problem is in the last element in breadcumb list (the category tree  + product URL).
This element (product Url) doesn't have the link because it's a link to itself.

Open this file _ProductBreadcrumb.cshtml

Old code for nop 4.10 (not 4.20 has another HTML elements)


                    <span itemprop="item" itemscope itemtype="http://schema.org/Thing">
                        <link itemprop="url" href="@Url.RouteUrl("Product", new { SeName = Model.ProductSeName })">
                    </span>


new code

                    <span itemprop="item" itemscope itemtype="http://schema.org/Thing" id="@Url.RouteUrl("Product", new { SeName = Model.ProductSeName })">
                    </span>



Replace this line >link itemprop="url" href  with id.


Hi! so in 4.10 code should looks like below?
<span itemprop="item" itemscope itemtype="http://schema.org/Thing">
                        <link itemprop="id" href="@Url.RouteUrl("Product", new { SeName = Model.ProductSeName })">
                    </span>

Sorry i'm not a programmer :/
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Hmmm...
1 2 >
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.