•

Payment method fee 2.1

25 replies to this topic

#1 garrone

garrone
• Members
• 84 posts
• Real Name:Giovanni Putignano
• Location:Ceglie Messapica, Brindisi (Puglia)

Posted 24 March 2006 - 11:40

This is the topic to discuss Payment method fee 2.1 contribution.

Edited by garrone, 24 March 2006 - 11:43.

Giovanni Putignano

#2 shaytaan

shaytaan
• Members
• 185 posts

Posted 24 March 2006 - 14:24

This is the topic to discuss Payment method fee 2.1 contribution.

Thanks for the contribution, but how to add %?

#3 garrone

garrone
• Members
• 84 posts
• Real Name:Giovanni Putignano
• Location:Ceglie Messapica, Brindisi (Puglia)

Posted 24 March 2006 - 14:40

Thanks for the contribution, but how to add %?

You have to use this form: cc:2:0.195
The first value (2) is a costant value (\$ 2) the last is the % value, you have to divide by 100 1.95 -> 0.0195.
The script use the higher value.
To add more payment fees use a "," cc:2:0.195,cod:5:0.02
This version calculate taxes on subtotal of the order, I'm working on an improvement to let the script to calculate taxes on the total.
Giovanni Putignano

#4 shaytaan

shaytaan
• Members
• 185 posts

Posted 25 March 2006 - 05:49

You have to use this form: cc:2:0.195
The first value (2) is a costant value (\$ 2) the last is the % value, you have to divide by 100 1.95 -> 0.0195.
The script use the higher value.
To add more payment fees use a "," cc:2:0.195,cod:5:0.02
This version calculate taxes on subtotal of the order, I'm working on an improvement to let the script to calculate taxes on the total.

Very cool, thanks alot It solved my problem with different cart types

#5 kabuca

kabuca
• Members
• 41 posts
• Real Name:Jason Miller

Posted 07 April 2006 - 16:30

Thanks for the contrib

I am trying to get this to work with creloaded 6.15..

I can see the mod on the order total in admin, but I can not get it to show up during the check out process.

Any ideas?

I am only wanting to add \$8.75 to cod orders.. and this is how I have it set up

cod:8.75:0.00

#6 Economist

Economist
• Members
• 4 posts
• Real Name:Gareth

Posted 07 April 2006 - 21:43

Hi Jason,

Same problem for me - I've currently got "paypal:0:0.04" in the admin module bit, but it's not showing up at the checkout when PayPal is chosen. I've also got fast easy checkout installed and am wondering if it has anything to do with that...

#7 kabuca

kabuca
• Members
• 41 posts
• Real Name:Jason Miller

Posted 07 April 2006 - 21:47

well mine is a fresh install so I doubt it is your mod.

I will have to look into this further.. or write something just for CRE

#8 RogerSwiss

RogerSwiss
• Members
• 5 posts
• Real Name:Roger Gerl

Posted 11 April 2006 - 14:10

It doesn't work for me me either I use "cod:15,cc:0:0.04". This works good for the fixed value for COD but gives 0.00 for the Credit Card. It should result in 4%.

Furthermore, there should be different descriptions like "COD fees" and "CreditCard fees" so the customer understands what the amount means. Sorry I'm not that much into PHP so I don't know how to change the contrib to work as I need it to.

Thanks
Roger

#9 RogerSwiss

RogerSwiss
• Members
• 5 posts
• Real Name:Roger Gerl

Posted 12 April 2006 - 13:22

It doesn't work for me me either I use "cod:15,cc:0:0.04". This works good for the fixed value for COD but gives 0.00 for the Credit Card. It should result in 4%.

Furthermore, there should be different descriptions like "COD fees" and "CreditCard fees" so the customer understands what the amount means. Sorry I'm not that much into PHP so I don't know how to change the contrib to work as I need it to.

Thanks
Roger

Ok, since this contribution doesn't work well and as it is the same like the old "fixed payment type charge" I have made a change to the original contrib to accept both a fixed value and a percentage from the total. You can find it here : http://www.oscommerc...ntributions,251

It allows to enter either a fixed value or a percentage of the total payment, e.g.

cod:15,cc:%3.5

This example will add \$15 to the total amount for COD or 3.5% of the total with Credit Card payment.

For an upgrade just copy the file /includes/modules/order_total/ot_fixed_payment_chg.php over the current one and andjust in the admin section of your shop.

- Roger, Switzerland

#10 shaytaan

shaytaan
• Members
• 185 posts

Posted 12 April 2006 - 21:15

Ok, since this contribution doesn't work well and as it is the same like the old "fixed payment type charge" I have made a change to the original contrib to accept both a fixed value and a percentage from the total. You can find it here : http://www.oscommerc...ntributions,251

It allows to enter either a fixed value or a percentage of the total payment, e.g.

cod:15,cc:%3.5

This example will add \$15 to the total amount for COD or 3.5% of the total with Credit Card payment.

For an upgrade just copy the file /includes/modules/order_total/ot_fixed_payment_chg.php over the current one and andjust in the admin section of your shop.

- Roger, Switzerland

Garrones update working very good...
You have to use it like this
cc:1.95:0.001,mastercard:1.95:0.005,netbank:1.95:0.003,cod:50

cc charges \$1.95 and 0.10%
mastercard charges \$1.95 and 0.50%
netbank charges \$1.95 and 0.30%
cod charges \$50

#11 SteveODNet

SteveODNet
• Members
• 35 posts
• Real Name:Steve
• Location:Seattle

Posted 15 April 2006 - 05:27

Keep in mind that in some places it's illegal to charge extra for accepting credit cards. The way around this is to say that there is a discount for certain payment types rather than a surcharge for credit cards.

#12 jonyp

jonyp
• Members
• 3 posts
• Real Name:Jon

Posted 18 May 2006 - 07:28

Garrones update working very good...
You have to use it like this
cc:1.95:0.001,mastercard:1.95:0.005,netbank:1.95:0.003,cod:50

cc charges \$1.95 and 0.10%
mastercard charges \$1.95 and 0.50%
netbank charges \$1.95 and 0.30%
cod charges \$50

Got this module working, but it doesnt seem to add the Fixed Payment Type Charge: value to the Total

#13 hrhstephen

hrhstephen
• Members
• 45 posts
• Real Name:Stephen
• Location:UK

Posted 15 June 2006 - 15:43

Ok, since this contribution doesn't work well and as it is the same like the old "fixed payment type charge" I have made a change to the original contrib to accept both a fixed value and a percentage from the total. You can find it here : http://www.oscommerc...ntributions,251

It allows to enter either a fixed value or a percentage of the total payment, e.g.

cod:15,cc:%3.5

This example will add \$15 to the total amount for COD or 3.5% of the total with Credit Card payment.

For an upgrade just copy the file /includes/modules/order_total/ot_fixed_payment_chg.php over the current one and andjust in the admin section of your shop.

- Roger, Switzerland

I seem to have found a bug in both contributions. Payment type charge and payment method fee. I f there is a shipping cost, VAT is calculated correctly. If there is no shipping, i.e. free shipping, VAT is calculated on the original price and not the discounted price.

Is there a simple way to correct this like the patch for gift vouchers, or is it more complicated...

Regards

HRH S II

#14 hrhstephen

hrhstephen
• Members
• 45 posts
• Real Name:Stephen
• Location:UK

Posted 16 June 2006 - 05:14

I seem to have found a bug in both contributions. Payment type charge and payment method fee. I f there is a shipping cost, VAT is calculated correctly. If there is no shipping, i.e. free shipping, VAT is calculated on the original price and not the discounted price.

Is there a simple way to correct this like the patch for gift vouchers, or is it more complicated...

Regards

HRH S II

Sorry my mistake, tax is always charged according to the total before the discount/fee, I have read somewhere that this is because tax is calculated whenever you buy something and is included in the price (if using display prices with tax), so it is not calculated at the final checkout pages. How do I fix this please?

#15 sdk

sdk
• Members
• 36 posts
• Real Name:SdK

Posted 05 August 2006 - 17:06

Can someone take a look at: http://forums.oscomm...howtopic=221510 ?

#16 jonlai9

jonlai9
• Members
• 98 posts
• Real Name:Jon

Posted 28 November 2006 - 03:25

How can I get this working with Paypal?

#17 arnoldl

arnoldl
• Members
• 6 posts
• Real Name:arnold

Posted 11 January 2007 - 18:15

to make this contrib work i had to add two lines in ot_fixed_payment_chg.php

it proberly has to do with that i have no tax_class set. but this made it work.

just before the line :
`if (MODULE_FIXED_PAYMENT_CHG_TAX_CLASS > 0) {`
`\$od_amount=\$od_am;`

you need to do this twice (for two functions)

grtx , arnold

#18 yocompia

yocompia
• Members
• 48 posts
• Real Name:Jacob

Posted 13 June 2007 - 02:58

having some trouble getting this contrib to work in conjunction with CCGV. have made the mods as described in install.txt and catalog/checkout_confirmation.php loads up without the COD charge that i've set in the admin area.

the contrib shows up fine under Modules > Order Total > Fixed Payment Type Charge. fee payment type is set to

cod:8.5:0

so that only COD orders get charged and it's a flat rate of 8.50 USD (what fedex charges us). however, this is not appearing on the checkout_confirmation page. after choosing "Cash on Delivery" the following shows up on the checkout_confirmation page:

Sub-Total: \$60.00
Free Shipping: (Free Shipping (2-4 Days)): \$0.00
state sales tax: \$3.75
Total: \$63.75

i have added so many contribs to this store that it would be hard to list them all. i have made the edits exactly as suggested and believe that this charge is getting washed out by some component of CCGV. clues appreciated.

#19 yocompia

yocompia
• Members
• 48 posts
• Real Name:Jacob

Posted 14 June 2007 - 04:21

fixed the problem. in includes/modules/order_total/ot_fixed_payment_charge.php note that \$od_amount is only set equal to \$od_am when the extra charge is set as taxable under the admin menu. moving the \$od_amount = \$od_am line down so that it happens for taxable and non-taxable charges fixes the problem.

#20 francewavidok

francewavidok
• Members
• 1 posts
• Real Name:AbdUllah

Posted 03 January 2008 - 07:28

not working for me, i am not sure what i am doing wrong so if you guys could please check and see if you could help me fix it, it would be fantastic. my site is www.games2go.co.nz. I am trying to use this with paymate and in that box i have PAYMATE:%3.5 . Am i doing something wrong here? i have done all i should be doing. Need some help guys, it would be much appreciated.