Code:
<mvt:while expr="g.current_page LE g.total_pages">
<mvt:assign name="g.api_request" value="'https://api.resellerratings.com/v1/product/reviews/full.json?sku=' $ g.code $ '&per_page=100' $ '&page=' $ g.current_page" />
<mvt:call action="g.api_request" method="'GET'" headers="'Authorization:Bearer ' $g.rr_token $ asciichar( 13 ) $ asciichar( 10 )">
<mvt:if expr="s.callobjecttype EQ 'tag' AND tolower(s.callobjectelement) EQ 'br'">
<mvt:comment>
none of these work on the call value... will identify the tag, but you can't alter it here.
<mvt:assign name="g.ishtml" value="miva_html_strip( s.callvalue, ' ' )" />
<mvt:assign name="g.return_value1" value="glosub( s.callobjectelement, s.callobjectelement, 'test1' )" />
<mvt:assign name="g.return_value2" value="glosub( s.callobjectelement, '<br />', 'test2' )" />
<mvt:assign name="g.return_value3" value="glosub( g.raw_results , 's.callobjectelement', 'test3' )" />
<mvt:assign name="g.return_value4" value="glosub( s.callvalue , 'br', 'test4' )" />
</mvt:comment>
</mvt:if>
<mvt:assign name="g.raw_results" value="g.raw_results $ s.callvalue" />
<mvt:assign name="g.allowed_tags" value="''" />
<mvt:comment>works here... </mvt:comment>
<mvt:assign name="g.raw_results" value="miva_html_strip( g.raw_results, g.allowed_tags )" />
</mvt:call>
<mvt:assign name="g.current_page" value="g.current_page + 1" />
</mvt:while>
<mvt:assign name="l.success" value="miva_json_decode(g.raw_results , l.settings:review_data)" />
<mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:review_data), ',', '<br>'))" />
Leave a comment: