Jump to content

Help me about database structure


yarantoos

Recommended Posts

I want to add a new currency. and bulk update pricing . There is no tools in whmcs and I would like do it via SQL Command.

I just insert new pricing to tblpricing table but no happen and the new currency price for all products is empty yet.

 

Here is my example of insert :

INSERT INTO tblpricing ( type, currency, relid, msetupfee, qsetupfee, ssetupfee, asetupfee, bsetupfee, tsetupfee, monthly, quarterly, semiannually, annually, biennially, triennially) VALUES('domainaddons', 3, 0, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00');
INSERT INTO tblpricing (type, currency, relid, msetupfee, qsetupfee, ssetupfee, asetupfee, bsetupfee, tsetupfee, monthly, quarterly, semiannually, annually, biennially, triennially) VALUES( 'product', 3, 1, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '200000.00', '-1.00', '-1.00', '-1.00', '-1.00', '-1.00');
INSERT INTO tblpricing ( type, currency, relid, msetupfee, qsetupfee, ssetupfee, asetupfee, bsetupfee, tsetupfee, monthly, quarterly, semiannually, annually, biennially, triennially) VALUES( 'product', 3, 21, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '12.00', '45000.00', '48000.00', '48000.00', '50000.00', '750000.00');
INSERT INTO tblpricing ( type, currency, relid, msetupfee, qsetupfee, ssetupfee, asetupfee, bsetupfee, tsetupfee, monthly, quarterly, semiannually, annually, biennially, triennially) VALUES( 'product', 3, 22, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '5000.00', '15000.00', '45000.00', '90000.00', '100000.00', '-1.00');

INSERT INTO tblpricing ( type, currency, relid, msetupfee, qsetupfee, ssetupfee, asetupfee, bsetupfee, tsetupfee, monthly, quarterly, semiannually, annually, biennially, triennially) VALUES( 'product', 3, 23, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '-1.00', '-1.00', '-1.00', '-1.00', '-1.00', '-1.00');

 

Please help me

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