VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: cleoni on January 23, 2015, 17:55:26 PM

Title: Applying a custom discount
Post by: cleoni on January 23, 2015, 17:55:26 PM
Hello, I am using VM 2.6.0 for an ecommerce to be launched soon.

I was trying to tweak it so that if I select one of a set of payment methods (typically card+paypal) you get an additional 5$ discount.

I have tried looking for some documentation on methods that can be called or data structures that I can work on inside the php source, but I have found very little or no hints at all.

Can anyone point me in the right direction?

--Chris
Title: Re: Applying a custom discount
Post by: GJC Web Design on January 23, 2015, 23:27:58 PM
have you tried adding negative numbers in the payment methods Discounts and Fees? (I haven't)
if not hack it into the payment method - it is responsible for the final figure

and if your really using 2.6.0 not only have you missed out on dozens of bug fixes but->
http://virtuemart.net/news/latest-news/462-security-release-of-vm2-6-10-and-vm2-9-9b