ehuk Posted January 27, 2009 Share Posted January 27, 2009 Hi There, I am trying to remove "£0.00 GBP Setup Fee" from the addons, this WHMCS setup will be for 1 subscription product with several Addons, and it is pointless to have a setup fee. I can't seem to figure out how to get rid of Setup Fee without getting rid of the recurring fee, all I can see is: (+{$addon.pricing}) Which encapsulates both the recurring fee and setup fee, is there a way to just remove the setup fee? All the addons are the same price, so I guess I can just use text rather than gathering the price from the DB, but I would like to avoid this if possible. Thanks, 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted January 27, 2009 Share Posted January 27, 2009 Try {$addon.pricing|regex_replace:"[\+ £0.00 GBP Setup Fee\]:""} but check that this is the EXACT spelling of the output. If need this to display on certain products or groups only, you can place this within an {if..}.something {else} something else{/if} statement 0 Quote Link to comment Share on other sites More sharing options...
ehuk Posted January 27, 2009 Author Share Posted January 27, 2009 Thanks for the tip, that one did not work, but after a bit of reading this worked: {$addon.pricing|replace:'+ £0.00 GBP Setup Fee':''} Thanks! 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted January 27, 2009 Share Posted January 27, 2009 I think it didn't work because my hack a set of double quotes after ]. Sorry about that, but glad I could point you in the right direction. 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.