Page 1 of 1

Editing Side Boxes/Modules

Posted: Fri Nov 26, 2010 11:23 pm
by chungflung
How do I edit the side cart, I want to remove "view cart - checkout" so it just displays the product and price?

Re: Editing Side Boxes/Modules

Posted: Sat Nov 27, 2010 7:31 pm
by WhiteBirch
opencart\catalog\view\theme\default\template\module\cart.tpl

Around line 29 remove or comment out:

Code: Select all

<div style="padding-top:5px;text-align:center;clear:both;"><a href="<?php echo $view; ?>"><?php echo $text_view; ?></a> | <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>

Re: Editing Side Boxes/Modules

Posted: Mon Nov 29, 2010 10:00 pm
by chungflung
Superstar, thank you ;D

Re: Editing Side Boxes/Modules

Posted: Tue Nov 30, 2010 3:20 pm
by chungflung
WhiteBirch wrote:opencart\catalog\view\theme\default\template\module\cart.tpl

Around line 29 remove or comment out:

Code: Select all

<div style="padding-top:5px;text-align:center;clear:both;"><a href="<?php echo $view; ?>"><?php echo $text_view; ?></a> | <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
Hi, I have done this now, but when I add a product, it goes to the module as I want it too, but still displays the view checkout etc, if I refresh the page the view checkout link disapears, any clues?

Re: Editing Side Boxes/Modules

Posted: Mon Jun 20, 2011 12:05 am
by roberttimes
Yeah for some reason the cart module is hardcoded and styled in cart.php (controller/module/cart/php) You have to edit the code there as well.