wex.alpha Posted June 22, 2012 Share Posted June 22, 2012 How can i disable cart options for all products? Ideally If I can disable some products and others are for sale. Thanks Link to comment Share on other sites More sharing options...
tomerg3 Posted June 22, 2012 Share Posted June 22, 2012 Do you want to show the products and just not make them available for purchase (to anyone?) Link to comment Share on other sites More sharing options...
wex.alpha Posted June 23, 2012 Author Share Posted June 23, 2012 Exactly like that. Just show it without buying option. Link to comment Share on other sites More sharing options...
tomerg3 Posted June 23, 2012 Share Posted June 23, 2012 For all customers, or just for a certain group / not logged in? Link to comment Share on other sites More sharing options...
wex.alpha Posted June 23, 2012 Author Share Posted June 23, 2012 For all customers, or just for a certain group / not logged in? For all customers Thanks Link to comment Share on other sites More sharing options...
tomerg3 Posted June 23, 2012 Share Posted June 23, 2012 I would use one of the existing product fields as an indicator (IE the location or supplier reference), set that to 1, and then modify product.tpl and product-list.tpl to hide the add to cart button if $product->location == 1 Link to comment Share on other sites More sharing options...
wex.alpha Posted June 23, 2012 Author Share Posted June 23, 2012 I would use one of the existing product fields as an indicator (IE the location or supplier reference), set that to 1, and then modify product.tpl and product-list.tpl to hide the add to cart button if $product->location == 1 Thanks for the tip. I will try that Link to comment Share on other sites More sharing options...
wex.alpha Posted June 24, 2012 Author Share Posted June 24, 2012 I would use one of the existing product fields as an indicator (IE the location or supplier reference), set that to 1, and then modify product.tpl and product-list.tpl to hide the add to cart button if $product->location == 1 In product.tpl (existing theme) I have added the following block {if $product.location == '1'} //what to pu there to disable cart button completely? {/if} Also you have mentioned product-list.tpl... what code do I need to add there? Sorry for all these question, but this is kinda urgent. Thank you Link to comment Share on other sites More sharing options...
tomerg3 Posted June 25, 2012 Share Posted June 25, 2012 $product->location is for the product.tpl file $product.location should work for product-list.tpl 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