VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: maceide on January 25, 2013, 21:42:39 PM

Title: Remove "Add to cart"-button on some products
Post by: maceide on January 25, 2013, 21:42:39 PM
Hi,

I am constructing a site/store wich mostly is going to be used as kind of a catalouge. The idea is to disable the "Add to cart"-button on those items that are just for display, but yet keep the price viewable. Is there any way of having this sort of functionality? That way we can show peapole all are products anc prices, but not have it all for sale.

Does anyone know of this?

Best regards,
Andreas
Title: Re: Remove "Add to cart"-button on some products
Post by: jenkinhill on January 26, 2013, 15:09:06 PM
If you select Use only as catalogue  in configuration/shop the prices are shown with no add-to-cart for all products.

If you need to incude the add-to-cart function for certain products only then you can use a template override for productdetails with the cart code block removed for those that are catalogue products. You can select the overrides to be used by category of for individual products.
Title: Re: Remove "Add to cart"-button on some products
Post by: chicago on March 01, 2013, 13:07:44 PM
Quote from: jenkinhill on January 26, 2013, 15:09:06 PM
If you select Use only as catalogue  in configuration/shop the prices are shown with no add-to-cart for all products.

If you need to incude the add-to-cart function for certain products only then you can use a template override for productdetails with the cart code block removed for those that are catalogue products. You can select the overrides to be used by category of for individual products.

I've located the code which displays the 'Add to Cart' button in the product view, and have successfully 'removed' the block of code to give me a product view without 'Add to Cart' button.

How do I associate this new .php file with specific products (as an override)? where would I save the file? what would I call it?

Thanks for any help you can give
Title: Re: Remove "Add to cart"-button on some products
Post by: jenkinhill on March 01, 2013, 16:01:54 PM
http://forum.virtuemart.net/index.php?topic=113527.msg381835#new