Created
August 23, 2011 12:05
-
-
Save paulslugocki/1164952 to your computer and use it in GitHub Desktop.
List your Shopzilla reviews on a separate page to your main product description (see comment)
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
$('.pr_snippet_product').bind('click', function(event) { | |
if(event.target.hash == "#ReviewHeader") { | |
event.preventDefault(); | |
window.location = "http://www.example.com/foo.html"; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quick snippet JQuery to catch clicks to the "Read X Reviews" links on Shopzilla reviews 'snippet' and send to a separate URL (usually just links to "#ReviewHeader"). Allows you to have the main widget that lists all of the reviews of a product on a separate page to your main product description page.
Just add to your document ready and replace the example URL with the correct link to the page featuring the list of reviews.