Post by gouwca » Fri Sep 17, 2010 3:50 pm

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

Newbie

Posts

Joined
Thu Sep 16, 2010 6:37 pm

Post by Qphoria » Sat Sep 18, 2010 1:52 am

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by gouwca » Sat Sep 18, 2010 4:10 pm

Thanks its working.
One problem how do i active the add to cart button when a customer is logged in. ?
Thanks

Newbie

Posts

Joined
Thu Sep 16, 2010 6:37 pm

Post by OC2PS » Sat Sep 18, 2010 5:29 pm

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.

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by gouwca » Sat Sep 18, 2010 6:16 pm

Seems we are on the same track.
Will try this and let you know.
Thanks for the help.

Newbie

Posts

Joined
Thu Sep 16, 2010 6:37 pm

Post by kernel-stack » Fri Nov 12, 2010 3:58 pm

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?

Newbie

Posts

Joined
Wed Nov 10, 2010 8:42 pm

Post by Johnathan » Fri Nov 12, 2010 10:39 pm

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;
} 

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by actionmedia » Thu Mar 10, 2011 1:37 pm

Would you happen to know the path to the stylesheet? I'm using the default template, however I'm finding several stylesheets. Thank you.

Newbie

Posts

Joined
Mon Nov 23, 2009 11:53 am

Post by Johnathan » Thu Mar 10, 2011 11:05 pm

It should be:

Code: Select all

/catalog/view/theme/default/stylesheet/stylesheet.css

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Marcel » Sun Jul 03, 2011 1:06 am

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

OpenCart Newbie | Using v1.5.1.1


New member

Posts

Joined
Tue Mar 09, 2010 3:04 am
Location - Colorado

Post by danieln » Thu Jul 21, 2011 12:48 pm

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 ;)

Newbie

Posts

Joined
Wed Feb 23, 2011 11:48 am

Post by ciprianz » Sun Nov 06, 2011 9:54 pm

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

Code: Select all

 </head>

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 }?>

Newbie

Posts

Joined
Sun Nov 06, 2011 9:44 pm

Post by dimko » Sun Nov 06, 2011 10:14 pm

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...

Using OpenCart v1.5.1.3


Active Member

Posts

Joined
Sun Sep 25, 2011 2:10 am
Who is online

Users browsing this forum: No registered users and 56 guests