robinmacharg Posted January 17, 2012 Share Posted January 17, 2012 When ordering a product I would like to modify the price shown in the cart based on a couple of custom fields. Two fields are necessary (interval - daily, monthly etc) and a number). A user orders a product and provides the two custom field values. The cost is then calculated e.g. like this: base_cost + (interval * number * unit_multiplier) I *think* the correct place to do this is in the PreCalculateCartTotals hook but can't see how I would modify the product price dynamically since no value is expected to be returned from this hook. Does anyone have any idea how I could go about this? Does this sound like something that requires an API-based custom order page, or does WHMCS support this natively? Thanks for your replies. Robin 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.