Jump to content

Query OR php way to alter Payment Gateway on orders where total is greater than X


drosendo

Recommended Posts

Hi guys,

 

Some help... I added a new payment method to WHMCS and I want to change all the recurring payments where the total is greater than x$.

 

How can I achieve this either by query(what db tables) or if anyone has a php function please help.

 

Thanks,

David

Link to comment
Share on other sites

Got IT:

 

UPDATE tblhosting SET paymentmethod='xxx' WHERE amount > 30.50 AND paymentmethod like 'zzz';

UPDATE tblhostingaddons SET paymentmethod='xxx' WHERE recurring > 30.50 AND paymentmethod like 'zzz';

UPDATE tbldomains SET paymentmethod='xxx' WHERE recurringamount > 30.50 AND paymentmethod like 'zzz';

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated