News:

Looking for documentation? Take a look on our wiki

Main Menu

Product with 0.0 price does not show Add to Cart

Started by Alkhamsa, August 19, 2020, 19:17:26 PM

Previous topic - Next topic

Alkhamsa

VirtueMart 3.8.4

I created a product with a price of 0.0 (free) but the product display does not show add to cart.  How do I fix this?

Jörgen

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Alkhamsa

Thank you so much!  That was the ticket!  Do you mind explaining why that works and/or where it is documented?

GJC Web Design

It works because prices are stored to 6 decimal places and rounded for display..

If the real price is 0.000000 then the add to cart will not show
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Jörgen

Glad to be of help  :)

As GJC said the rounding makes it look zero but in fact it is non zero. Selling very large quantities will eventually show a non zero result in the checkout. But use it wisely and it will help You  8)

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Alkhamsa