Hi,
Is this is a downloadable product?
Normally If you type 0.00 to price field, the product will get "Call for Price" button instead of add to cart button. This is also same in Virtuemart, because by default, Virtuemart is not ready-to-go for selling downloadable products (or purchasing free physical products) this is why some 3rd party plugins are required to add support of selling digital products to Virturmart.
Currently; this "check" prevents addToCart button to appear (in category page and the product details page)
empty($product->prices['salesPrice'])
This condition should be removed from the PHP files. -OR- if this product is a "downloadable" media product; then the below condition should be added additionally;
and !$this->product->images[0]->file_is_downloadable
So the "ask for price"(instead of add to cart) button will show off only
IF product price is zero and
IF NOT it is a downloadable product.
Open the category browse and product details PHP files and eliminate this "check price condition" or add the extra condition to check if the product is not downloadable.
(THIS WILL WORK ONLY IF YOUR PRODUCTS ARE DOWNLOADABLE MEDIA PRODUCT - like PDF, ZIP etc..), then you will be able to see the add to cart button even though the product price is empty.
For category browse page:
/templates/YOUR_TEMPLATE/html/com_virtuemart/category/default.php
(default.php or flexv2.php which ever layout you are currently using)
For the product details page:
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default_addtocart.php
I can't provide you any further instruction codes-by code, because this is beyond our free support.
You may consider purchasing premium support through
www.flexiblewebdesign.com/premium-support
and let us do those custom coding modifications for you depends on your needs.
Regards,
Support.