Hello people,
The shop I'm working on is a single product shop (only 1 product forever). The cart page is skipped and for customer there's no way of modifying previously added items.
To prevent any unwanted amount of purchase, a simple workaround would be to empty the cart before adding some more.
I just don't know which file is safe to hack and how exactly.
thank you very much
ok. here's what I did for VM 2.0.20b:
I simply added the following line $cart->emptyCart();
immediately after if($cart)
in functions add()
and addJS()
from
components/com_virtuemart/helpers/cart.php
I don't know if it's a safe way of doing it. It just works, just like win95 did. :) )