Jump to content

Update Domain Pricing by fixed percentage


CMYKreative

Recommended Posts

check the domain order extended module

just so you know, sentq is referring to the ModulesGarden addon, "Domain Orders Extended For WHMCS" - it's a $100 per year, but does far more than just update the pricing!

 

https://www.whmcs.com/appstore/2950/Domain-Orders-Extended-For-WHMCS.html

 

in theory, you could update the domain pricing using SQL, e.g. to update domain renewal prices for existing customers, you could use the following - ALWAYS REMEMBER TO BACKUP THE DATABASE BEFORE TRYING THIS!

 

UPDATE tbldomains SET recurringamount = recurringamount*1.1;

that would update the current renewal price by 10%

 

however, to do the same for the register, transfer and new renewal prices is more involved,. e.g if you wanted to change the 1-year register price by 10%, you could use...

 

UPDATE tblpricing SET msetupfee = msetupfee*1.1 where type = 'domainregister' and msetupfee != '-1';

the complicated part would be using one query to combine all 10 years and the three domain types...

 

unless you were intending to do this on a regular basis (and are using all 10 years), if it were me, i'd be running 3 basic queries for each year (register/transfer and renew) - that would lessen the risk of errors being introduced.

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