VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: fstltna on August 08, 2012, 21:21:07 PM

Title: Free items not getting a "add to cart" link
Post by: fstltna on August 08, 2012, 21:21:07 PM
I want to have a free downloadable item but when i set the price at zero the "add to cart" button goes away. Is this a bug in vm2.x or is there something i need to do? Items with a price can be downloaded fine.

Please help!

Marisa
Title: Re: Free items not getting a "add to cart" link
Post by: ivus on August 09, 2012, 02:57:13 AM
Hi fstltna,

No this is not a bug. VM requires a price value above 0 in order to do calculations. It assumes that if the price is 0, then it can't be purchased. To get around this, you can assign a real-world value (price) to the item, and then override the final price to 0, which will ultimate mean a 100% discount. To the user, it'll just look like they're getting a very good deal.

I hope this helps.  :D
Title: Re: Free items not getting a "add to cart" link
Post by: Milbo on August 09, 2012, 19:54:18 PM
Also using 0.001 when your currency uses only cents works, because the price is the rounded to 0.00
Title: Re: Free items not getting a "add to cart" link
Post by: reddeer on August 20, 2012, 22:18:23 PM
I like the way you think Milbo!  8)

Thanks!