Jump to content

Customizing confproduct to match on my formula


persis

Recommended Posts

Hi

I want to use WHMCS as computer and network maintenance.

I set up a product "Network maintenance"

and I set configurable options like this:

number of WORKSTATION

number of LAPTOPS

number of USER

number of SERVER

 

when a customer wants to calculate his network maintenance price , must fill configurable options. and the formula in WHMCS is:

(WORKSTATION*price)+(LAPTOPS*price)+(USER*price)+(SERVER*price)

but I need this formula:

((WORKSTATION + LAPTOPS + USER + SERVER)^0.9)*price

and I need a way to show the Customer , total hours that we go on site regularly with this formula:

(WORKSTATION + LAPTOPS + USER + SERVER)/2

and an option for customer to increase the on site hours.

 

and I want another option for customer , by click on "unlimited" increase the total with 30%.

 

Thank you.

Link to comment
Share on other sites

Hi,

 

when a customer wants to calculate his network maintenance price , must fill configurable options. and the formula in WHMCS is:

(WORKSTATION*price)+(LAPTOPS*price)+(USER*price)+(SERVER*price)

but I need this formula:

((WORKSTATION + LAPTOPS + USER + SERVER)^0.9)*price

i'm assuming that's a typo and should be... ((WORKSTATION + LAPTOPS + USER + SERVER)*0.9)*price

 

if so, then deducting 10% off your configurable option prices will be the same as the WHMCS formula... e.g if price is currently $10 for workstations, make it $9

 

for the other two issues, I think that you'll likely need to employ a developer to write you a custom solution as it's not the sort of thing that can be achieved via the config option settings or a quick template tweak... you can do that by posting in Service Offers & Requests.

Link to comment
Share on other sites

The formula is ((WORKSTATION + LAPTOPS + USER + SERVER)^0.9)*price

^ means power.

I am trying with "CartTotalAdjustment" and "OrderProductPricingOverride" hooks.

they are very good , but I need your help to finished it.

 

I think , I must set all configurable options price to 0 and calculate the order form with the hooks.

can you send me an example hook to do this?

Link to comment
Share on other sites

Hi,

 

The formula is ((WORKSTATION + LAPTOPS + USER + SERVER)^0.9)*price ^ means power.

I know that as I have a degree in Maths & Stats - I just assumed it was a typo by you. :)

 

I am trying with "CartTotalAdjustment" and "OrderProductPricingOverride" hooks.

they are very good , but I need your help to finished it.

regretfully, I don't have any such example hooks to hand.

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