Welcome, Guest. Please login or register.
Login with username, password and session length


VirtueMart 1.1.8 - [SECURITY RELEASE] is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: [1]   Go Down
Print
Author Topic: Custom payment method based on cash on delivery  (Read 796 times)
punkrazio
Newbie
*
Posts: 7


« on: February 22, 2011, 06:01:14 AM »

Hi all
I've tried to look around to find more information about PHP code for simply calculate a cash on delivery rate.

For example i need:

if totalamount is less than 516€
CODcharge is 3.7€
else
CODcharge is (totalamount - 516)/100*1.4

Is it possible to do it in the configuration of the payment inside vm and not creating payment file and stuff...Huh
For the moment i've setted the payment for address only, probably to use PHP I need to set it on HTML bases??
I know PHP code needed is pretty simple but I don't know how to interact with vm and the dev manual is pretty poor of information about this.

Hope you could help me
Thank you
Bye
Logged
Pages: [1]   Go Up
Print
Jump to: