Post by mjutras » Sat Oct 15, 2016 1:40 am

I have OC 1.5.6 with theme Yoobeat
When I go to a product page I click on the product image and I see the colorbox effect properly.

When I look at the source code on that page I see in the headder:

Code: Select all

<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/colorbox/colorbox.css" media="screen" />
<script type="text/javascript" src="catalog/view/javascript/jquery/colorbox/jquery.colorbox-min.js"></script>
And I also see at the bottom something like this within a script tag:

Code: Select all

$(document).ready(function() {
	$('.colorbox').colorbox({
		overlayClose: true,
		opacity: 0.5,
		rel: "colorbox"
	});
});
Now I have a category page in which I have some text with links to some images, lots of them throughout the text.
However when I am on the category page none of these codes appear in the source.

Ive tried adding the css and js lines to the header.tpl and the other code to the category.tpl and I can see it in the source code but it is not working.

I am probably way off, some guidance would be appreciated.

New member

Posts

Joined
Sun Jan 13, 2013 12:28 am

Post by mjutras » Sat Oct 22, 2016 12:08 am

Just for the record.
I backup the files and database and then tried to upgrade to the latest OC version but that didn't work out at all and was not expecting it to work as I had a theme based on version 1.5.6

So I then restored files and database and it is now working.

I can't explain how or why but it works now.

New member

Posts

Joined
Sun Jan 13, 2013 12:28 am
Who is online

Users browsing this forum: No registered users and 13 guests