Post by mehwishmalik » Sat Sep 15, 2018 2:36 pm

Hi, I use OpenCart version 2.2. What is the way to remove the Add to Cart Button of inquiry products from wishlist page.

see the Attachment file

Attachments

inquiry.png

inquiry.png (82.99 KiB) Viewed 214 times


New member

Posts

Joined
Fri Feb 16, 2018 7:37 pm

Post by kestas » Sat Sep 15, 2018 3:42 pm

mehwishmalik wrote:
Sat Sep 15, 2018 2:36 pm
Hi, I use OpenCart version 2.2. What is the way to remove the Add to Cart Button of inquiry products from wishlist page.

see the Attachment file
find in catalog/view/theme/default/template/account/wishlist.tpl
this:

Code: Select all

<td class="text-right"><button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>');" data-toggle="tooltip" title="<?php echo $button_cart; ?>" class="btn btn-primary"><i class="fa fa-shopping-cart"></i></button>
                <a href="<?php echo $product['remove']; ?>" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-times"></i></a></td>
and replace with:

Code: Select all

<td class="text-right"> <!--<button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>');" data-toggle="tooltip" title="<?php echo $button_cart; ?>" class="btn btn-primary"><i class="fa fa-shopping-cart"></i></button>-->
                <a href="<?php echo $product['remove']; ?>" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-times"></i></a></td>
Cheers

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by khnaz35 » Sat Sep 15, 2018 3:44 pm

mehwishmalik wrote:
Sat Sep 15, 2018 2:36 pm
Hi, I use OpenCart version 2.2. What is the way to remove the Add to Cart Button of inquiry products from wishlist page.

see the Attachment file
Try to go with this free extension and see if it does help you "https://www.opencart.com/index.php?rout ... n_id=27683"

and this one

https://www.opencart.com/index.php?rout ... n_id=25187

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by mehwishmalik » Sat Sep 15, 2018 7:33 pm

Hey Kestas, Thank u so much for your help your code is working fine for my theme Thank u once again :)

New member

Posts

Joined
Fri Feb 16, 2018 7:37 pm

Post by khnaz35 » Sat Sep 15, 2018 7:47 pm

mehwishmalik wrote:
Sat Sep 15, 2018 7:33 pm
Hey Kestas, Thank u so much for your help your code is working fine for my theme Thank u once again :)
Don't forget to mark the topic as Solved :)

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 36 guests