Plugin Author
berkux
(@berkux)
Hi,
try
[jsoncontentimporter parser=twig url=”http://bws.buscape.com.br/service/v2/topOffers/lomadee/31524358323074664f354d3d/BR/?format=json&results=100&page=1sourceId=34487665″%5D
totalResultsAvailable: {totalResultsAvailable}
offerName: {subloop-array:offer:-1}{offer.offerName}<br>{/subloop-array:offer}
<hr>
{subloop:details:-1}applicationID:{details.applicationID}<br>{/subloop:details}
[/jsoncontentimporter]
pro would do this in this way:
[jsoncontentimporterpro parser=twig url=”http://bws.buscape.com.br/service/v2/topOffers/lomadee/31524358323074664f354d3d/BR/?format=json&results=100&page=1sourceId=34487665″%5Ddetails.applicationID: {{details.applicationID}}
{% for of in offer %}
{{ of.offerName}}
{% endfor %}
[/jsoncontentimporterpro]
Feel free to donate 😉
Bernhard
-
This reply was modified 6 years, 11 months ago by
berkux.
not works yet:
Something went wrong fetching URL with JSON-data: Não foi fornecido um URL válido.error: get of json-data failed – plugin aborted: check url of json-feedproblems with JSON-structure: check basenode-param
Plugin Author
berkux
(@berkux)
maybe removing the ” helps. sometimes copypastes inserts invalid “…
I noticed you had 2 characters of different double quotes: (this “and this”). Fix and it worked. Now perciso more practice in the design of results. Thank you and soon will buy the PRO version.
Congratulations for the work and support provided.
Dear, I am trying to display images and links but I can not because they are in deeper sub levels of json.
offer[0].links.link[0].url
offer[0].thumbnail.url
offer[0].seller.thumbnail.url
This is the code:
[jsoncontentimporter parser=twig url=”http://bws.buscape.com.br/service/v2/topOffers/lomadee/31524358323074664f354d3d/BR/?format=json&results=100&page=1sourceId=34487665″%5D
totalResultsAvailable: {totalResultsReturned}
{subloop-array:offer:-1}{offer.offerName}
Desconto: {offer.discountPercent}%
De: R$ {offer.priceFromValue}
Por: R$ {offer.priceValue}
Comprar
Vendido e entregue por: {subloop:offer.seller:-1}{offer.seller.sellerName}{/subloop:offer.seller}
{/subloop-array:offer}ULTIMO
{subloop:details:-1}applicationID:{details.applicationID}<br>{/subloop:details}
[/jsoncontentimporter]
Thanks
PS: In PRO version is more simple, easy?
Plugin Author
berkux
(@berkux)