Author Topic: Add a tax only to an especific payment method  (Read 5440 times)

Kurosaki

  • Beginner
  • *
  • Posts: 14
Add a tax only to an especific payment method
« on: December 17, 2007, 18:25:30 pm »
Hello.. I know there is an option to add a discount value (or charge) if the buyer uses an especific payment method, but what if I want to add a discount (or charge) but in percentaje, as a tax for using this specific payment method.

Thanks for your answers.

Kurosaki

  • Beginner
  • *
  • Posts: 14
Re: Add a tax only to an especific payment method
« Reply #1 on: December 19, 2007, 18:35:10 pm »
So, I only put an IF clause in the add() method of ps_checkout class, at the beggining asking if the current order's payment method is the ID that I want.

Not an ellegant solution indeed.

Josué (Yosu) Cadilla Andrés

  • News Team
  • Jr. Member
  • *
  • Posts: 167
Re: Add a tax only to an especific payment method
« Reply #2 on: December 20, 2007, 02:16:16 am »
Why change the code? It could lead to problems in the future.

Make a new paymen method and set rules accordingly. Guess I didn´t understand your problem.

Can you elaborate please?
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

Jafilia VM Affiliates 1.5 RC3 **Build 32** released on April, 17 2010.
ALL MANUAL HACKS HAVE BEEN REMOVED!

Get your own Affiliate Programe Creator and Affiliate Network Manager.
Visit our website at http://www.jafilia.com

Jafilia VM Affliliates is Free Open Source Software licensed under GNU.

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

Kurosaki

  • Beginner
  • *
  • Posts: 14
Re: Add a tax only to an especific payment method
« Reply #3 on: December 20, 2007, 02:33:12 am »
Do you remember when you are in the page of the add/modify payment method in the backend? Well.. there is an option to add a discount right? That means when anyone uses this method to pay he'll get that discount.

But the discount is a fixed value, not a percentaje of the order subtotal, which is what I need. For example, is anyone uses worldpay, he will have to pay 2% of tax. I repeat: ONLY IF HE USES THIS PAYMENT METHOD.

Josué (Yosu) Cadilla Andrés

  • News Team
  • Jr. Member
  • *
  • Posts: 167
Re: Add a tax only to an especific payment method
« Reply #4 on: December 20, 2007, 02:50:46 am »

Post a new feature request, in the mean time you could:

Create a nex tax or a new shiping cost and let users add it when using this payment method.
Standar shiping 3%
Shiping for payments with worldpay 5%

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

Jafilia VM Affiliates 1.5 RC3 **Build 32** released on April, 17 2010.
ALL MANUAL HACKS HAVE BEEN REMOVED!

Get your own Affiliate Programe Creator and Affiliate Network Manager.
Visit our website at http://www.jafilia.com

Jafilia VM Affliliates is Free Open Source Software licensed under GNU.

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

Kurosaki

  • Beginner
  • *
  • Posts: 14
Re: Add a tax only to an especific payment method
« Reply #5 on: December 20, 2007, 02:54:06 am »
Thats something similar what I did, but I didn't have any option to control that, so thats why in the code I ask if the payment method stored in the SESSION is the same ID that I previously know,, if that I apply the tax from the tax table. Crappy but I doesn't affect the rest.

Josué (Yosu) Cadilla Andrés

  • News Team
  • Jr. Member
  • *
  • Posts: 167
Re: Add a tax only to an especific payment method
« Reply #6 on: December 20, 2007, 03:00:37 am »
request a quote from http://www.vm-expert.com/
it is as easy as to modify the "add" operation for a "multiply" operation rigth where the final calculation is made, so you would imput a factor instead of a fixed value. but sorry I don´t know where to make that change.
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

Jafilia VM Affiliates 1.5 RC3 **Build 32** released on April, 17 2010.
ALL MANUAL HACKS HAVE BEEN REMOVED!

Get your own Affiliate Programe Creator and Affiliate Network Manager.
Visit our website at http://www.jafilia.com

Jafilia VM Affliliates is Free Open Source Software licensed under GNU.

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

Kurosaki

  • Beginner
  • *
  • Posts: 14
Re: Add a tax only to an especific payment method
« Reply #7 on: December 20, 2007, 16:45:38 pm »
By the way, that feature is new in the virtuemart 1.1 beta 2

Josué (Yosu) Cadilla Andrés

  • News Team
  • Jr. Member
  • *
  • Posts: 167
Re: Add a tax only to an especific payment method
« Reply #8 on: December 20, 2007, 17:05:46 pm »
Are you testing or working on a live site?
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

Jafilia VM Affiliates 1.5 RC3 **Build 32** released on April, 17 2010.
ALL MANUAL HACKS HAVE BEEN REMOVED!

Get your own Affiliate Programe Creator and Affiliate Network Manager.
Visit our website at http://www.jafilia.com

Jafilia VM Affliliates is Free Open Source Software licensed under GNU.

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-