Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: "At least one of ratingCount or reviewCount is required." #65

Merged
merged 1 commit into from
Mar 11, 2019
Merged

Fix: "At least one of ratingCount or reviewCount is required." #65

merged 1 commit into from
Mar 11, 2019

Commits on Mar 10, 2019

  1. Fix: "At least one of ratingCount or reviewCount is required."

    Initially if you enable the plugin with Google Rich Snippet support and
    you don't have any reviews yet the markup is not valid. The
    AggregateRating object is created, but it has two missing required
    fields:
    
    - Field ratingValue may not be empty.
    - At least one of ratingCount or reviewCount is required.
    
    If we have no score yet, we do not create the AggregateRating object at
    all.
    
    Closes #64
    Julian Vega committed Mar 10, 2019
    Configuration menu
    Copy the full SHA
    5595836 View commit details
    Browse the repository at this point in the history