Post by sonyrob » Tue Apr 27, 2010 11:49 pm

Is there a easy way to remove the add to cart button in my listings. I only need to remove the button on about 20 listings . I did a search on the forum and read a post which said paste

<style type="text/css">
.buttons { display: none; }
</style>

Into the source of your product description to remove the button but it don't work ?

Any help would be great cheers .. !

New member

Posts

Joined
Tue Mar 16, 2010 8:54 pm

Post by Qphoria » Wed Apr 28, 2010 8:17 am

if using 1.4.7 you can do this:

1. EDIT: catalog/view/theme/YOURTHEME/template/product/product.php

2. FIND:

Code: Select all

<div class="content"><?php echo $text_qty; ?>
3. BEFORE, ADD:

Code: Select all

<?php if ($product_info['quantity']) { ?>

4. FIND:

Code: Select all

</form>
5. BEFORE, ADD

Code: Select all

<?php } ?>

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by sonyrob » Thu Apr 29, 2010 3:01 am

Hey Q thank you for your help but the code you gave did not work the ( add to cart) button is still there . Any ideas mate? Cheers

New member

Posts

Joined
Tue Mar 16, 2010 8:54 pm

Post by Qphoria » Thu Apr 29, 2010 3:14 am

Sorry.. remove the ! at the front of
<?php if (!$product_info['quantity']) { ?>

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by sonyrob » Thu Apr 29, 2010 3:26 am

Whoooohoooo Thats it thank you once again Q .. Cheers ;D

New member

Posts

Joined
Tue Mar 16, 2010 8:54 pm

Post by wyocrook » Thu Jul 28, 2011 12:43 am

I have oc 1.5 Is there a way to change "add to cart" to "login to see price", if I show prices only to registered customers?

Newbie

Posts

Joined
Thu Jun 16, 2011 6:54 pm

Post by uksitebuilder » Thu Jul 28, 2011 1:03 am

Alas there is quite a lot of modification to get the Login to View prices working as it should

Currently a user can add products to basket and get as far as checkout before having to register and without seeing a price.

Ideally, your request for button replacement, and a redirect to the login page would work better IMHO

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by speedbit » Thu Jul 28, 2011 2:47 am

Hi, I need to get the same result, but this trick doesn´t work on OpenCart 1.5.1.1
Any suggestion that can help?

Thanks in advance!

Newbie

Posts

Joined
Thu Jul 28, 2011 2:44 am

Post by speedbit » Thu Jul 28, 2011 2:51 am

speedbit wrote:Hi, I need to get the same result, but this trick doesn´t work on OpenCart 1.5.1.1
Any suggestion that can help?

Thanks in advance!
Sorry... should I notice you, that I'm working with the DEFAULT theme/template?

Newbie

Posts

Joined
Thu Jul 28, 2011 2:44 am

Post by aansari » Sun Aug 14, 2011 3:04 am

Hi
Is possible to remove add to cart button for some product . Customer only view product but can not add to shopping basket.
Any suggestion that can help?

Thanks in advance!

New member

Posts

Joined
Wed May 26, 2010 7:20 am

Post by anupamrs » Tue Sep 13, 2011 10:10 pm

I am looking for a similar solution. As such, my visitors don't buy things on my site. I just refer them to the site with best possible price. So I would love to be able to disable the buying option and change the image from 'add to cart' to 'View more details'.

Can anyone help?

Thanks,
Anupam

Newbie

Posts

Joined
Tue Sep 13, 2011 10:06 pm

Post by rph » Wed Sep 14, 2011 12:44 am

I have a mod available that does that. Catalog Mode.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by anupamrs » Wed Sep 14, 2011 8:50 pm

@rph, Thanks a bunch! How much will this module cost me? I couldn't get the price. Please help.

Newbie

Posts

Joined
Tue Sep 13, 2011 10:06 pm

Post by kasapa » Fri Jan 27, 2012 1:35 am


Newbie

Posts

Joined
Fri Jan 27, 2012 1:26 am

Post by GoGo OpenCart » Mon Jan 30, 2012 7:12 am

Take a look at those two modules:

http://www.opencart.com/index.php?route ... on_id=4067

http://www.opencart.com/index.php?route ... on_id=4358

The first module disables the Add to Cart button of the products that have 0 price, and the second module disables the Add to Cart button of the products that have 0 quantity. Both modules can be tweaked according to your needs.

@cassiodorus: I noticed that you are using Shoppica theme, so if interested, just PM me, and we'll make it work.

See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart


User avatar
Active Member

Posts

Joined
Mon Nov 14, 2011 11:30 pm

Post by mavibrick » Fri Mar 16, 2012 3:37 am

sonyrob wrote:Hey Q thank you for your help but the code you gave did not work the ( add to cart) button is still there . Any ideas mate? Cheers
Do anyone know how to do this with 1.5.2.1 Please?

Newbie

Posts

Joined
Thu Mar 15, 2012 7:35 pm
Who is online

Users browsing this forum: No registered users and 96 guests