Jump to content

GetCode error from Demo site


Chris Gurney

Recommended Posts

I tried your demo [What a great addon]

 

Products by brand

 

 

I copied the code without any changes

 

<div data-userrating="1" data-editorrating="1" data-summary="20" data-jr_brand="apple" data-count="3" data-wid="TsKSV" data-action="listings/many"><img src="http://demo.reviewsforjoomla.com/images/logo.png" alt="image"> <br> View your favorite brand products at <a href="http://demo.reviewsforjoomla.com/search/search-results?order=rdate&criteria=8&jr_brand=apple">demo.reviewsforjoomla.com</a></div>
<script>(function(d,o,j,w,m){w=d.createElement(o),m=d.getElementsByTagName(o)[0];
w.async=1;w.src=j;m.parentNode.insertBefore(w,m)
})(document,'script','//demo.reviewsforjoomla.com/components/com_jreviews_addons/widgetfactory/views/js/widget.loader.min.js');</script>

 

And the script worked fine

 

But if I change the default of User Rating = Yes  to No

 

<div data-editorrating="1" data-summary="20" data-jr_brand="apple" data-count="3" data-wid="TsKSV" data-action="listings/many"><img src="http://demo.reviewsforjoomla.com/images/logo.png" alt="image"> <br> View your favorite brand products at <a href="{url}">demo.reviewsforjoomla.com</a></div>
<script>(function(d,o,j,w,m){w=d.createElement(o),m=d.getElementsByTagName(o)[0];
w.async=1;w.src=j;m.parentNode.insertBefore(w,m)
})(document,'script','//demo.reviewsforjoomla.com/components/com_jreviews_addons/widgetfactory/views/js/widget.loader.min.js');</script>

 

I get an error on the third party website

 

View your favorite brand products at demo.reviewsforjoomla.com

 

Please check the widget code and install again.

 

 

Cheers

Chris

Link to comment
×
×
  • Create New...