target_locked Posted July 31, 2008 Share Posted July 31, 2008 Hi there,I would like to know how to hide the price and [add to cart] button?Because some show room does not need to show up price, and there is no online order activity.Thanks. Link to comment Share on other sites More sharing options...
ejectcore Posted July 31, 2008 Share Posted July 31, 2008 You are talking about catalogue only store which is a feature not yet implemented Link to comment Share on other sites More sharing options...
target_locked Posted August 1, 2008 Author Share Posted August 1, 2008 @ amwdesign,Do you know any plan for that feature ? Link to comment Share on other sites More sharing options...
jtyana Posted August 1, 2008 Share Posted August 1, 2008 Couldn't you just remove the add to cart and price information by editing the product.tpl and product-list.tplAlso uninstall the Cart Module Link to comment Share on other sites More sharing options...
ejectcore Posted August 1, 2008 Share Posted August 1, 2008 Yes you could do that as a quick fix.but you would almost need to edit all the template files including some of the modules :roll: Link to comment Share on other sites More sharing options...
target_locked Posted August 3, 2008 Author Share Posted August 3, 2008 Couldn't you just remove the add to cart and price information by editing the product.tpl and product-list.tpl @ jtyana,Could you pls instruct me exactly what to modify in product.tpl and product-list.tpl?Thanks. Link to comment Share on other sites More sharing options...
jtyana Posted August 3, 2008 Share Posted August 3, 2008 I'm sorry but I can't help with instructions. I'm not a programmerI know enough html to work things out as I go but my knowledge level is too weak to help others. I do things by trial and error and hope I don't break things As amwdesign points out above, there are also other files involved which I don't know about. Link to comment Share on other sites More sharing options...
ejectcore Posted August 3, 2008 Share Posted August 3, 2008 I will look into this later tonight no time at the momentbut all you need to do is play around with product_list.tpl & product.tpl in your themes directory & uninstall cart in your backoffice. I will help more if needed later Link to comment Share on other sites More sharing options...
jtyana Posted August 4, 2008 Share Posted August 4, 2008 While amwdesign is busy helping everyone else, you could try thisRemember to keep a backup of your current files ie copy the file and keep it in a safe place in case the change doees not work or breaks something. Always backup before making any changesIn product.tpl, at line 182 or therabouts, you will see quantity == 0} style="display:none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /> The "submit" is the Add to Cart button. Comment out that code or delete it if you do not know how to comment outFor product-list.tpl, the code is at Line 120 {if ($product.allow_oosp OR $product.quantity > 0)} {l s='Add to cart'} {else} {l s='Add to cart'} {/if} In product-list.tpl, the button is the Again, either comment out that code or delete it. test it to see if that works. If not, roll back to the original copy of the fileI see that the Add to Cart button is also in the features block on the front page. Find the file that controls the features block and do the same. I do not know what that file is at the moment. When you find it, just look for either the If this solution works, please post back here to help others Link to comment Share on other sites More sharing options...
Recommended Posts