Hi,
I need to program a plugin for Virtuemart 2.6 that executes a code whenever a product is added to cart.
Specifically I need to update the cart session data so that "paymentCurrency" is set to current front-end chosen currency.
What class do I need to tap into in order to update cart session when product is added to cart?
Maybe a better solution would be to program the plugin to trigger whenever currency is changed, if that is possible?
Basically so cart session is updated with current currency data at all times.
Hi again,
After some considerations I have found out that a plugin is not needed for this.
I simply need to apply PHP script to update cart session with custom HTML/PHP module and assign it to check out page.
in vm3, the trigger is
plgVmPrepareCartProduct
Your method wont work in vm3, cause it would be recognised as manipulation and deleted.