Created
July 28, 2017 22:32
-
-
Save svaustin66/16ac2d6cc0fd19432b7802bce5625971 to your computer and use it in GitHub Desktop.
Shopper Approved Product Reviews Snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h3>Product Reviews from Verified Customers</h3> | |
<script type="text/javascript"> | |
var sa_products_count = 10; var sa_date_format = 'F j, Y'; var sa_product = '{{ product.handle }}'; | |
function saLoadScript(src) { var js = window.document.createElement("script"); js.src = src; | |
js.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(js); } | |
saLoadScript('//www.shopperapproved.com/product/XXXXX/'+sa_product+'.js'); | |
</script> | |
<div id="shopper_review_page"><div id="review_header"></div> | |
<div id="product_page"></div> | |
<div id="review_image"><a href="http://www.shopperapproved.com/reviews/YourStoreURL.com/" | |
onclick="var nonwin=navigator.appName!='Microsoft Internet Explorer'?'yes':'no'; | |
var certheight=screen.availHeight-90; | |
window.open(this.href,'shopperapproved','location='+nonwin+',scrollbars=yes,width=620,height='+certheight+',menubar=no,toolbar=no'); | |
return false;" target="_blank" rel ="nofollow"></a> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment