Page 1 of 1

Removing the ability to buy?

Posted: Tue Jan 13, 2009 5:01 am
by captaincrunnk
Hey guys, I'm new here.

I'd like to know how I would go about removing the actual um..commerce aspects of OpenCart. I would like to use it for an online catalog but I don't want people to be able to actually buy the items from us or add them to their cart, etc.

Thanks for any help!

Re: Removing the ability to buy?

Posted: Tue Jan 13, 2009 5:35 am
by Qphoria
1. Delete Add to Cart button on the product pages
EDIT: catalog/template/default/content/product.tpl
DELETE:

Code: Select all

<td align="right"><input type="submit" value="<?php echo $button_add_to_cart; ?>"></td>
2. Delete the links to your account, cart, checkout, etc. from the header menu.
EDIT: catalog/template/default/module/header.tpl
DELETE:

Code: Select all

  <a href="<?php echo $account; ?>"><?php echo $text_account; ?></a>
  <?php if (@$login) { ?>
  <a href="<?php echo $login; ?>"><?php echo $text_login; ?></a>
  <?php } else { ?>
  <a href="<?php echo $logout; ?>"><?php echo $text_logout; ?></a>
  <?php } ?>
  <a href="<?php echo $cart; ?>"><?php echo $text_cart; ?></a>
  <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>
3. Remove payment icons from footer:
EDIT: catalog/template/default/module/footer.tpl
DELETE:

Code: Select all

<div class="a"><img src="catalog/template/<?php echo $this->directory?>/image/paypal.png" alt="PayPal"> <img src="catalog/template/<?php echo $this->directory?>/image/visa.png" alt="Visa"> <img src="catalog/template/<?php echo $this->directory?>/image/master.png" alt="Master Card"></div>
That's the quick'n'dirty way and should work for you.

Re: Removing the ability to buy?

Posted: Tue Jan 13, 2009 6:39 am
by hm2k
This isn't the first time this has been requested. Possible FAQ, possible feature request.

Re: Removing the ability to buy?

Posted: Tue Jan 13, 2009 1:18 pm
by captaincrunnk
Thanks alot you guys.

I have been trying to figure this out for about a week and it was the only thing standing in the way of getting the site under construction.