Welcome to MonJoomla forum board.

[solved] Taxes

[solved] Taxes

Is there an easy way to add taxes to the certificates and to send this taxe amount to paypal before proceeding the payment ?

Edited By: AGiX
Nov-29-12 20:44:57

AGiX
useravatar
Offline
9 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Taxes

Hello

Most of my customer integrate the tax in the amount, but it's easy to add a field in the component options.

Check this weekend I will release a fast update with this new feature.

Thanks for the suggestion

Thanks for your support

If you like my Joomla apps, please help support them with a review here:
http://extensions.joomla.org/

Thank you!

lebill
useravatar
Offline
1701 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Taxes

Me again

I just take a look for the tax thing, and the best way to do that it in Paypal directly.

In your business account you can set the tax with Paypal.

Regards

Thanks for your support

If you like my Joomla apps, please help support them with a review here:
http://extensions.joomla.org/

Thank you!

lebill
useravatar
Offline
1701 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Taxes

lebill wrote:


Most of my customer integrate the tax in the amount, but it's easy to add a field in the component options.

Great, I'm pretty sure it's easy since I already did it before... Just I haven't find yet the files with the Paypal code I'm looking for... unless it is in java ?

AGiX
useravatar
Offline
9 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Taxes

Hello

I was doing the feature for you this morning, but when I get to Paypal I realize most of the people use the tax system in Paypal, this is why I stop doing the new feature.

It is useless to have the tax in my component if your Paypal is set to charge the tax.

If you want to do it without setting the tax in Paypal, you can do it in

/components/com_kocustomgiftcard/views/tmpl/previz.php

at the end you have all the hidden field for Paypal

Line 64 you have this, the total amount for Paypal

Code:

<input type="hidden" name="amount" value="<?php echo($this->amount[0]) ?>">

you need to calculate the tax base on this amount.

When you have the tax amount, you need to add a new hidden field for it

Code:

<input type="hidden" name="tax" value="<?php echo($YOUR_TAX_AMOUNT) ?>">

This should do the job you ask

Regards

Thanks for your support

If you like my Joomla apps, please help support them with a review here:
http://extensions.joomla.org/

Thank you!

lebill
useravatar
Offline
1701 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Taxes

Thanks a lot Bill, I'll check this file.

Last time I checked at the Paypal API, we could not add one tax over the other correctly... and you know in Quebec, it's such a problem adding a tax... It's the reason we must custom the tax in our case...

AGiX
useravatar
Offline
9 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Taxes

Ahh yeah you'r right

Here's the trick I use here for the tax, if you didn't know it

Code:

$taxes =    ($grand_total * 1.14975) - $grand_total ; 

You can use the same multiplier in Paypal

Thanks

Thanks for your support

If you like my Joomla apps, please help support them with a review here:
http://extensions.joomla.org/

Thank you!

lebill
useravatar
Offline
1701 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
820
Total Polls:
0
Total Posts:
167772681
Posts this week:
3
User Info:
 
Total Users:
4347
Newest User:
drafgon
Members Online:
0
Guests Online:
327

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked