Post by proxisoft.net » Tue Jun 28, 2011 3:58 pm

I put this piece of code in the header.tpl but it works only in the homepage. Why? ??? (I'm using OC 1.4.9.3)

Code: Select all

<script type="text/javascript"> 
$(document).ready(function(){
	$('#module_cart').insertAfter('.box');
});
</script>

Newbie

Posts

Joined
Sun Mar 13, 2011 12:40 am

Post by SXGuy » Tue Jun 28, 2011 7:01 pm

Place that code in the view file that relates to #module_cart and not the header.tpl file.

Header.tpl file should contain the link to the javascript file that uses this function.

So if its the cart module you wish to change, place that code in catalog/view/theme/yourtheme/template/module/cart.tpl

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by proxisoft.net » Wed Jun 29, 2011 3:17 pm

I've tried your solution putting the code in cart.tpl BUT it doesn't work properly. As I said, it works only in the home page and NOT on the other pages.

Newbie

Posts

Joined
Sun Mar 13, 2011 12:40 am

Post by proxisoft.net » Thu Jun 30, 2011 4:03 pm

The piece of code I put here is only an example you can cut & paste into an installation of OC 1.4.x because uses two divs already present.

Newbie

Posts

Joined
Sun Mar 13, 2011 12:40 am
Who is online

Users browsing this forum: Bing [Bot] and 101 guests