Jump to content

hide the recurring option when the invoice has a domain item


Recommended Posts

Hi guys,

Wondering if someone has a hook at hand...to check the invoiced items in the dbase and if there is any domain item in the invoice hide the recurring payment button option?

I guess should query the dbase, make the check and then return the $paymentbutton variable.

Any hook that i can modify will be great too.

Thanx in advance!

Link to comment
Share on other sites

16 hours ago, plusplushosting said:

I guess should query the dbase, make the check and then return the $paymentbutton variable.

if you're talking about viewinvoice, then you may not need to query the database - you should be able to loop through the invoiceitems array, check for type values and if it finds DomainRegister, DomainTransfer or Domain (used for renewals), then it modifies the button code to remove the recurring option... though that modification process might be different depending upon which payment gateway you're wanting to modify.

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