[BUG] WooCommerce Product Category Page Schema Error

  • Hi,

    Product categories page schema markup shows … at the end and not closing }, ].

    Details:

    • WordPress: 5.3
    • WooCommerce version: 3.8.1
    • PHP version: 7.3.11-1+ubuntu18.04.1+deb.sury.org+1
    • MySQL version: 5.5.5-10.2.27-MariaDB-1:10.2.27+maria~bionic

    How to reproduce
    Using the storefront theme and adding more product descriptions to each product, then display more products on the category page like 24. Make sure that products are in the same category then check the ld+json for that category page, it should have … at the end, if not add more descriptions/products in the same category.

    Don’t know if there is a limit for ld+json, I know that we should optimize product description according to google and limit characters but since I want to migrate to RM and don’t have time right now to update all product descriptions.

    Suggestion
    I think that on a category page schema should take the description from category page backend and thumbnail, but also don’t know if this shouldn’t be a Collection Page.

    I don’t think a larger product description should break the schema for your page if there is no limitation from ld+json or search engine.

    Thanks,
    Marius

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I am afraid that I cannot reproduce this issue on my end with over 30 products on the same category. Could you please investigate whether this could be as result of some custom code on your theme by performing these steps:

    Confirming a Theme/Plugin Conflict With Rank Math

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hi,

    This was a clean install with default theme. Can you add longer product description to each product? Also make sure that listing like 24 or more products at once.

    I just added sample products from woocommerce, then add more description to each product (like 4-5 paragraphs to each), bulk edit and add all to accessories category, duplicate most of them then in theme option select 4 columns and 6 rows (24 products) display on each category page. Visit accessories category page and check generated schema.

    I’ll try tomorrow to confirm if there is plugin conflict since I’m away from computer right now.

    Hope that helps if you’ll have time to try it before I’ll come with response ASAP regarding plugins conflict.

    Thanks

    I can confirm that even using the default theme (Twenty Nineteen) and only RankMath and WooCommerce plugins activated I had the same problem.

    I saw that … are added at the end after 10.000 characters in ld+json output.

    Let me know if you can reproduce this but as a rule of thumb when visit a category page try to create a ld+json output that are bigger then 10.001 characters.

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    Temporary Login Without Password

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    WP Security Audit Log

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    I’ve let all the options default when I setup RankMath using the WooCommerce storefront theme.

    You can check generated schema for accessories category here: http://rankmathdebug.mariusmateoc.com/product-category/accessories/

    In the end you will find “…”

    Let me know if you need anything.

    Have a nice day,
    Marius

    Hello,

    Thank you for contacting Rank Math today.

    The JSON-LD data on the page is correct, here is a screenshot of how this looks on my end:
    Schema

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    I’m on macOS Mojave and I had tested this in Google Chrome, Opera, Safari and Google Chrome Canary and I get “…” at the end as you can see in the image:
    Screenshot-2019-12-02-at-21-47-33

    The only browser that shows me all the code is Firefox and Firefox Developer Edition. It is pretty strange to me.

    On what OS did you test it and on what browser?

    Thanks,
    Marius

    Hi there,

    Thanks for getting back to us.

    I have tested this on a Windows 10 PC using Chrome browser Version 78.0.3904.108 (Official Build) (64-bit).
    Could you please test this on a different computer?

    We are looking forward to helping you. Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)

You must be logged in to reply to this ticket.