Jump to content

Can the 'Add to Cart' block be removed on some products


Recommended Posts

Are you running 1.4, and should it be on both in- and out-of-stock products?

If you don't use the "online only" checkbox right now, you could start using that as a "Add to Cart option".

In the product.tpl file, you can wrap your add-to-cart element like so:

{if !$product->online_only}
<--! here you have your add to cart block -->
{/if}

Then the "Add to cart" will only be shown if "Only online" is NOT checked in the backoffice.

 

If you are using 1.5 and/or it's only 0 quantity products

Then there is already a built in function for handling this.

Edited by Carlsen (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...