Post by 6point9 » Sat Oct 27, 2012 9:16 pm

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?

Newbie

Posts

Joined
Sat Oct 27, 2012 9:07 pm

Post by Alsaru » Wed Apr 03, 2013 11:39 pm

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:

Code: Select all

<script type="text/javascript"><!--
$('.colorbox').colorbox({
	overlayClose: true,
	opacity: 0.5
});
//--></script>
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.

New member

Posts

Joined
Wed Feb 29, 2012 1:33 am
Who is online

Users browsing this forum: No registered users and 72 guests