Support » Plugin: JSON Content Importer » no feed coming through

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author berkux

    (@berkux)

    Hi,

    try

    [jsoncontentimporter url=https://www.trustatrader.com/api/consumer-reviews?username=CWYAONE&format=json numberofdisplayeditems=-1 basenode=consumer_reviews_api urlgettimeout=5 debugmode=10 ]{subloop:trader:-1}
    company_name: {company_name}
    {/subloop:trader}
    <br>
    {subloop-array:reviews:-1}
    reviewer_name: {reviewer_name}<br>
    {/subloop-array:reviews}
    [/jsoncontentimporter]
    Plugin Author berkux

    (@berkux)

    bluesmarty

    (@bluesmarty)

    Amazing, thank you so much! It all becomes clear!

    bluesmarty

    (@bluesmarty)

    One more question, if I wanted to show the 5 star ratings as font-awesome star \f005, do I add in template? eg under reviews {overall_rating}

    Plugin Author berkux

    (@berkux)

    Well, with the free plugin you can build “\f00{overall_rating}”

    If overall_rating is 4 you get a heart:
    https://fontawesome.com/icons/heart?style=solid
    etc.

    If this is ok…

    If not: The pro plugin can do if-then-else to set whatever you want.

    Bernhard

    bluesmarty

    (@bluesmarty)

    It will most likely be the pro version! Many thanks for all your help Bernhard.
    Justin

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.