Jump to content

How do I remove the 'Add to Cart' button for some products?


Recommended Posts

Hi,


I have some products in my shop that the manufacturers won't allow me to sell via any sort of "buy it now" function.

Is it possible for me to remove the "add to cart" button for some products replacing it with a "request Further Info" button whilst leaving other products to be available as "add to cart"




Thanks in advance for any help anybody can give.


Matt


www.autobotics.co.uk/shoponline

Link to comment
Share on other sites

hi,

If you don't have a lot of products you can do that in the product-list.tpl with something like this (it's an exemple) :

{if ($product.id_category_default == 'ID' OR $product.id_product == 'ID' OR $product.id_product == 'ID' ) }
{l s='Ask for a estimate' mod='interestedinproduct'}
                   {else}    



before this

               {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2}
{l s='Add to cart'}
               {else}
{l s='Add to cart'}
               {/if}



In this exemple it's using the module interestedinproduct for asking more information.
Change the ID by the ID of the products or the categorie if they are all in the same categorie

You have to modify the product.tpl too

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...