• Resolved elcul

    (@elcul)


    I import my product data from an open source 3rd party site. The site has ratings with data for “average” and “count”.

    “rating”: {“count”: 26, “average”: 4.92}

    Is it possible to import this data onto my product pages and display them on my product pages without using written reviews? How would I do that?

    Would this plugin help with that?

    Any help appreciated!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    No, not unless you can get a list of all users who rated along with their rating. If you can get that, then you can automate creating a review for each user with their corresponding rating.

    The average rating number doesn’t help, as this is calculated automatically by Site Reviews from the sum of all existing 1-5 star review ratings.

    Thread Starter elcul

    (@elcul)

    Well it’s possible but not economical. I’d have to scrape the site or search by every username in the database or something because it’s not directly part of the API.

    My options are
    https://api.discogs.com/releases/11873456/rating
    https://api.discogs.com/releases/11873456/rating/12-Inch-Love

    Getting those usernames isn’t directly possible from the API from what I can tell. I could get them manually by looking at the site here…
    https://www.discogs.com/release/stats/11873456

    …but there are thousands of products. Is it possible to name them all “collected from discogs.com”? It’s open source so it’s a legitimate source.

    I’ve seen other ecommerce sites doing similar:
    https://www.mountainsteals.com/product/carhartt-men-s-surrey-bib-overall_10247148
    (but yes, they have the username here, not just the “collected on moosejaw” part.

    • This reply was modified 5 years, 6 months ago by elcul.
    Plugin Author Gemini Labs

    (@geminilabs)

    …but there are thousands of products. Is it possible to name them all “collected from discogs.com”? It’s open source so it’s a legitimate source.

    Site Reviews is built around reviews (which have ratings). Because the rating average is dynamically adjusted when new reviews are submitted or deleted, it would not work to add the average rating yourself.

    You could always try to import the discogs ratings yourself to your own product meta_key and display them in your theme template separate from (or in addition to) Site Reviews.

    Plugin Author Gemini Labs

    (@geminilabs)

    As there has been no reply in over a week, I will mark this topic as resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Import ratings from open source site’ is closed to new replies.