Page 1 of 1

Add "view cart" button to ajax shopping cart preview (1.5.1)

Posted: Mon Jul 25, 2011 7:50 pm
by Tobia
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

Re: Add "view cart" button to ajax shopping cart preview (1.

Posted: Mon Aug 08, 2011 4:52 pm
by efp
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?

Re: Add "view cart" button to ajax shopping cart preview (1.

Posted: Mon Aug 08, 2011 8:13 pm
by Tobia
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.

Re: Add "view cart" button to ajax shopping cart preview (1.

Posted: Wed Aug 10, 2011 6:18 am
by efp
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