marblemsn Posted February 14, 2014 Share Posted February 14, 2014 Hello, Is it possible to make the 'Add to Cart' block not appear or make it invisible? Any help would be appreciated. Thank you. Raja Link to comment Share on other sites More sharing options...
Carlsen Posted February 14, 2014 Share Posted February 14, 2014 (edited) 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 February 14, 2014 by Carlsen (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now