tomb Posted September 23, 2015 Share Posted September 23, 2015 (edited) We noticed that WHMCS v5 displays the Setup Fee on the Upgrade/Downgrade section for all Hosting plans. e.g. Hosting costs + setup fee. Usually customers already paid a Setup Fee on their previous orders. How can I hide the Setup fee? Thanks for your help. Edited September 23, 2015 by tomb 0 Quote Link to comment Share on other sites More sharing options...
AzeDK Posted March 18, 2021 Share Posted March 18, 2021 This is still an issue with latest theme in 2021. Now with the child theme feature, its possible to make your own upgrade.tpl file with modified pricing: {if $upgradepackage.pricing.monthly}<option value="monthly">{$upgradepackage.pricing.monthly}</option>{/if} {if $upgradepackage.pricing.quarterly}<option value="quarterly">{$upgradepackage.pricing.quarterly}</option>{/if} {if $upgradepackage.pricing.semiannually}<option value="semiannually">{$upgradepackage.pricing.semiannually}</option>{/if} {if $upgradepackage.pricing.annually}<option value="annually">{$upgradepackage.pricing.annually}</option>{/if} {if $upgradepackage.pricing.biennially}<option value="biennially">{$upgradepackage.pricing.biennially}</option>{/if} {if $upgradepackage.pricing.triennially}<option value="triennially">{$upgradepackage.pricing.triennially}</option>{/if} My guess is to change "{$upgradepackage.pricing.annually}" to a version without the setup fee included. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 18, 2021 Share Posted March 18, 2021 8 hours ago, AzeDK said: My guess is to change "{$upgradepackage.pricing.annually}" to a version without the setup fee included. you might as well just use a hook to change the pricing shown... i'm not sure if a setup fee actually gets charged on upgrade (haven't checked in a while), but the fee is still shown on the upgrade page pricing. 1 Quote Link to comment Share on other sites More sharing options...
AzeDK Posted March 18, 2021 Share Posted March 18, 2021 @brian! They dont get charged for upgrading existing products, and this is why its confusing to customers, and causes extra support questions. Setup fee should only be visible when ordering new products. But I think in an older thread another company wanted specifically charge for setup fees during upgrades, and so John WHMCS added it back in many years ago. Could a hook target "upgradepackage.pricing" ? Then it should not affect regular pricing for new product pricing. 0 Quote Link to comment Share on other sites More sharing options...
AzeDK Posted March 18, 2021 Share Posted March 18, 2021 @tomb Did you ever solve your own issue with this? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 18, 2021 Share Posted March 18, 2021 1 hour ago, AzeDK said: Could a hook target "upgradepackage.pricing" ? Then it should not affect regular pricing for new product pricing. easily - i'm cheating here by just checking if the cycle contains +, ideally it should check to see if there is a setup fee separately... but you can let me know if this current version fails! <?php # Upgrade Remove Setup Fees Hook # Written by brian! function upgrade_remove_setup_fees_hook($vars) { $upgrades = $vars['upgradepackages']; $billingcycles = array('onetime','monthly','quarterly','semiannually','annually','biennially','triennially'); foreach ($upgrades as $key => $product) { foreach ($billingcycles as $cycle) { if (strpos($product['pricing'][$cycle],'+') !== false) { $upgrades[$key]['pricing'][$cycle] = strstr($product['pricing'][$cycle],' +', true); } } } return array("upgradepackages" => $upgrades); } add_hook("ClientAreaPageUpgrade", 1, "upgrade_remove_setup_fees_hook"); 1 Quote Link to comment Share on other sites More sharing options...
AzeDK Posted March 18, 2021 Share Posted March 18, 2021 38 minutes ago, brian! said: easily - i'm cheating here by just checking if the cycle contains +, ideally it should check to see if there is a setup fee separately... but you can let me know if this current version fails! Thanks Brian! I am in happy tears, its been an issue for me past 8+ years. 1 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.