Post by Tobia » Mon Jul 25, 2011 7:50 pm

Hi, just working on customizing the layout of OC 1.5.1

I'm trying to add an extra button in the drop down cart preview panel at the top of the page that links to the shopping cart page. So users can go to the cart page or the checkout.

I've copied the following code from header.tpl;

Code: Select all

<a href="<?php echo $cart; ?>"><?php echo $text_cart; ?></a>
but this results in an undefined variable..

So I guess I need to know where to add these variables.

Cheers

Newbie

Posts

Joined
Mon Jul 25, 2011 7:32 pm

Post by efp » Mon Aug 08, 2011 4:52 pm

Hi.
Did you manage to get this working? I see no replies. :(
I've been searching the forum but havent found anything. I know there is a separate link to the Cart but just like 'Tobia', i want a button to appear in the Cart Preview.
Can someone help out?

efp
Newbie

Posts

Joined
Mon Aug 08, 2011 4:45 pm

Post by Tobia » Mon Aug 08, 2011 8:13 pm

No luck here, tried to modify the controller and language files to no avail and ended up just using the separate links that are already there.

Newbie

Posts

Joined
Mon Jul 25, 2011 7:32 pm

Post by efp » Wed Aug 10, 2011 6:18 am

Tobia wrote:No luck here, tried to modify the controller and language files to no avail and ended up just using the separate links that are already there.
I started a thread regarding the same thing and 'uksitebuilder' helped me out!
It works perfectly. Give it a go!
http://forum.opencart.com/viewtopic.php?t=38011

efp
Newbie

Posts

Joined
Mon Aug 08, 2011 4:45 pm
Who is online

Users browsing this forum: No registered users and 4 guests