Jump to content

How to hide price and [add to cart] button?


Recommended Posts

I'm sorry but I can't help with instructions. I'm not a programmer
I 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 :lol:
As amwdesign points out above, there are also other files involved which I don't know about.

Link to comment
Share on other sites

While amwdesign is busy helping everyone else, you could try this
Remember 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 changes

In 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 out

For 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 file

I 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

×
×
  • Create New...