I am trying to display the product image in a colorbox on the category page but the colorbox doesn't show up.
Here's the link to my test site: Test Site
Error Details:
Timestamp: 10/27/2012 6:42:12 PM
Error: TypeError: $.data(this, colorbox) is undefined
Source File: http://woodanta.6point9.in/catalog/view ... olorbox.js
Line: 246
Can anyone help me on this?
It's a little trick to make colorbox work on the category and search page. Here it is ..
I believe you want to insert the following javascript taken from product page:
Be aware that the category and search page already have their scripts for displaying the grid and the list and bringing near them the colorbox would make a conflict. So do not put the colorbox script in the front of the others; just let it be the last on the page and everything would go fine.
Hope this helps.
I believe you want to insert the following javascript taken from product page:
Code: Select all
<script type="text/javascript"><!--
$('.colorbox').colorbox({
overlayClose: true,
opacity: 0.5
});
//--></script>
Hope this helps.
Who is online
Users browsing this forum: No registered users and 72 guests