Skip to content

Instantly share code, notes, and snippets.

@paulslugocki
Created August 23, 2011 12:05
Show Gist options
  • Save paulslugocki/1164952 to your computer and use it in GitHub Desktop.
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)
$('.pr_snippet_product').bind('click', function(event) {
if(event.target.hash == "#ReviewHeader") {
event.preventDefault();
window.location = "http://www.example.com/foo.html";
}
});
@paulslugocki
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment