Post by themirxa » Mon Oct 13, 2014 11:42 pm

I want to disable login/register and add to cart functions, please guide me how i will done this.

Newbie

Posts

Joined
Mon Oct 13, 2014 11:39 pm

Post by tacobandito » Wed Oct 15, 2014 1:33 am

The easiest way would be to simply remove references from the view.tpl files, rather than trying to adjust model/controller elements to render the function(s) useless.

For example, removing this code from the header.tpl

Code: Select all

<div id="welcome">
    <?php if (!$logged) { ?>
    <?php echo $text_welcome; ?>
    <?php } else { ?>
    <?php echo $text_logged; ?>
    <?php } ?>
  </div>

[module] PayPal Pro w/Recurring Profiles FREE
[module] 1 Click "Amazon Style" Checkout w/PayPal Pro FREE
[module] Adjustable PayPal Pro Fee FREE
[module] Add Sample To Cart LITE FREE
The guide to fixing just about everything wrong with OpenCart FREE!
Add INFINITE SCROLL to your homepage for FREE!
Live update product price for FREE!
Dynamic generation of Opencart coupon, FREE!
Hire me


User avatar
Active Member

Posts

Joined
Sat Mar 30, 2013 12:27 am
Location - Springfield, MA
Who is online

Users browsing this forum: No registered users and 7 guests