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
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
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.
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
Check out: All my extensions | My FREE extensions
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?
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;
}
Would you happen to know the path to the stylesheet? I'm using the default template, however I'm finding several stylesheets. Thank you.
This looks very interesting, how can I accomplish using a second template when a user is logged in.This could be accomplished by using different templates when user is logged in vs when (s)he's not.
Thanks
OpenCart Newbie | Using v1.5.1.1
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:
and add right before your
the following code
Code: Select all
/catalog/view/theme/default/template/common/header.tpl
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 }?>
Who is online
Users browsing this forum: No registered users and 56 guests