[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Credit card surcharge on Checkout.html
> I want to add 4.1% surcharge on credit card transactions only.
>
> I have searched the mail archives and come up with
>
> [discount ALL_ITEMS] $s * 1.041 [/discount] at the top of
> ord/checkout.html
>
> This would seem to add a blanket 4.1% surcharge irrespective of
> if the order
> is by PO or Credit card.
>
> Could I put this code in to the page as suggested below?
>
> Or would it simply be applied to the [total-cost] variable in
> ord/checkout.html with an <if> statement?
>
> Has anyone else achieved this result?
>
> Thanx in advance
>
> [or value payment_method eq credit]
> [then]
>
> <input type=hidden name=mv_order_profile value=credit_card>
>
> [discount ALL_ITEMS] $s * 1.041 [/discount]
>
> <p> </p>
>
> <!--- credit card information --->
[snip]
Put the code right at the top of the page:
[if value payment_method eq credit]
[discount ALL_ITEMS] $s * 1.041 [/discount]
[else]
[discount ALL_ITEMS][/discount]
[/else][/if]
Jonathan
Webmaint.