Page 1 of 1
Opencart as catalog with no link to shopping cart
Posted: Fri Sep 17, 2010 3:50 pm
by gouwca
Need to use opencart as a catalog with no prices and no link to the shopping cart.
In admin you can disable the prices but not the link to the shopping cart.
When a customer is logged in he can view the prices and access the shopping cart .
But with no loggin no prices and no link to shopping cart must be displayed.
Can somebody help me with this setting or code. Thanks
Re: Opencart as catalog with no link to shopping cart
Posted: Sat Sep 18, 2010 1:52 am
by Qphoria
You can just remove the links to the cart and checkout page from the header.tpl and disable the cart module.
Then disable the add to cart button by removing it from the product.tpl file
Re: Opencart as catalog with no link to shopping cart
Posted: Sat Sep 18, 2010 4:10 pm
by gouwca
Thanks its working.
One problem how do i active the add to cart button when a customer is logged in. ?
Thanks
Re: Opencart as catalog with no link to shopping cart
Posted: Sat Sep 18, 2010 5:29 pm
by OC2PS
Well, you didn't ask the right question then. Seems what you want is that the cart should be available only when user is logged in.
This could be accomplished by using different templates when user is logged in vs when (s)he's not.
Re: Opencart as catalog with no link to shopping cart
Posted: Sat Sep 18, 2010 6:16 pm
by gouwca
Seems we are on the same track.
Will try this and let you know.
Thanks for the help.
Re: Opencart as catalog with no link to shopping cart
Posted: Fri Nov 12, 2010 3:58 pm
by kernel-stack
Has anyone any idea on how to completely remove the "add to cart" options all together? So far I have managed to remove all related tabs and "add to cart" options in product view but can't seem to find the code behind the 'button_add_small.png' which pops up next to the price everywhere. Where's that located?
Re: Opencart as catalog with no link to shopping cart
Posted: Fri Nov 12, 2010 10:39 pm
by Johnathan
The easiest way by far to remove all the add-to-cart buttons is to add the following in your theme's stylesheet.css file:
Code: Select all
.button_add_small {
display: none;
}
Re: Opencart as catalog with no link to shopping cart
Posted: Thu Mar 10, 2011 1:37 pm
by actionmedia
Would you happen to know the path to the stylesheet? I'm using the default template, however I'm finding several stylesheets. Thank you.
Re: Opencart as catalog with no link to shopping cart
Posted: Thu Mar 10, 2011 11:05 pm
by Johnathan
It should be:
Code: Select all
/catalog/view/theme/default/stylesheet/stylesheet.css
Re: Opencart as catalog with no link to shopping cart
Posted: Sun Jul 03, 2011 1:06 am
by Marcel
This could be accomplished by using different templates when user is logged in vs when (s)he's not.
This looks very interesting, how can I accomplish using a second template when a user is logged in.
Thanks
Re: Opencart as catalog with no link to shopping cart
Posted: Thu Jul 21, 2011 12:48 pm
by danieln
Instead of that, why not on the same template just make a check. If the user is not logged, hide the buttons. when they are logged in then show the buttons.
I think this will be easier to be done

Re: a solution based on posts from above
Posted: Sun Nov 06, 2011 9:54 pm
by ciprianz
Based on what other have said before me and a small addition by me, for Opencart Version 1.5.1.3 to remove
All add to cart buttons you should modify:
Code: Select all
/catalog/view/theme/default/template/common/header.tpl
and add right before your
the following code
Code: Select all
<?php if (!$logged) {?>
<style type="text/css">
.button_add_small {
display: none!important;
}
.cart {
display:none!important;
}</style>
<?php }?>
Re: Opencart as catalog with no link to shopping cart
Posted: Sun Nov 06, 2011 10:14 pm
by dimko
Qphoria wrote:and disable the cart module.
And how exactly can you disable the cart module? I can't find such a module within the Admin panel...