Post by cableintel » Fri Dec 04, 2020 7:54 pm

Opencart Version: 3.0.3.6
Theme: Default

Hi, we have some products that we want users to call us for pricing and not to be able to checkout with - I've made a change to currency.php to show specific wording instead of the price when it's zero, but now need to hide the Add To Cart Button everywhere in opencart for those specific products. Could anyone advise on this? Trying to learn to develop within opencart, so would prefer help with code as opposed extension recommendations (I know that there are some on the marketplace).

Newbie

Posts

Joined
Tue Feb 26, 2019 10:50 pm

Post by paulfeakins » Fri Dec 04, 2020 8:10 pm

You could set the stock level to 0 as a bit of a hack to achieve it?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by cableintel » Fri Dec 04, 2020 8:42 pm

Thanks Paul. Unfortunately due to an agreement we have with a manufacturer, the button needs to be completely gone. I think I have found an extension that'll do this though, may have to go down that route.

Newbie

Posts

Joined
Tue Feb 26, 2019 10:50 pm

Post by paulfeakins » Mon Dec 07, 2020 7:58 pm

cableintel wrote:
Fri Dec 04, 2020 8:42 pm
Thanks Paul. Unfortunately due to an agreement we have with a manufacturer, the button needs to be completely gone. I think I have found an extension that'll do this though, may have to go down that route.
Great! But if it doesn't work out you could pay a developer such as ourselves or post a job in the Commercial Support Forum.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by IP_CAM » Mon Dec 07, 2020 10:02 pm

Remove Price + Add To Cart Button When Price Is Zero
https://www.opencart.com/index.php?rout ... n_id=38097
Hide of Stock - Disabled Add to Cart Button
https://www.opencart.com/index.php?rout ... n_id=26742
No Add to Cart button for Out of Stock items
https://www.opencart.com/index.php?rout ... on_id=7095
found here:
https://www.opencart.com/index.php?rout ... dd to cart

My Github OC Site: https://github.com/IP-CAM
5'000 + FREE OC Extensions, on the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 18 guests