caroldaley Posted March 1, 2015 Share Posted March 1, 2015 Is there a way to combine the setup and recurring amount of a product, so instead of displaying: $240.00 + $159.00 Setup Fee Just $399.00 is displayed. Any assistance would be greatly appreciated! 0 Quote Link to comment Share on other sites More sharing options...
RyanK Posted March 23, 2015 Share Posted March 23, 2015 Under whmcs\templates\orderforms\$yourform\ordersummary.tpl you should have something like this (taken from the modern form): {if $producttotals.pricing.setup}<tr><td>{$LANG.cartsetupfees}:</td><td class="textright">{$producttotals.pricing.setup}</td></tr>{/if} {foreach from=$producttotals.pricing.recurringexcltax key=cycle item=recurring} <tr><td>{$cycle}:</td><td class="textright">{$recurring}</td></tr> {/foreach} {if $producttotals.pricing.tax1}<tr><td>{$carttotals.taxname} @ {$carttotals.taxrate}%:</td><td class="textright">{$producttotals.pricing.tax1}</td></tr>{/if} {if $producttotals.pricing.tax2}<tr><td>{$carttotals.taxname2} @ {$carttotals.taxrate2}%:</td><td class="textright">{$producttotals.pricing.tax2}</td></tr>{/if} </table> {/if} <div class="summaryproduct"></div> <table width="100%"> <tr><td colspan="2" class="textright">{$LANG.ordertotalduetoday}: <b>{$producttotals.pricing.totaltoday}</b></td></tr> </table> Since the total is already provided at the bottom you can simply delete the lines that display the recurring fee and setup fee. Change the above to: {if $producttotals.pricing.tax1}<tr><td>{$carttotals.taxname} @ {$carttotals.taxrate}%:</td><td class="textright">{$producttotals.pricing.tax1}</td></tr>{/if} {if $producttotals.pricing.tax2}<tr><td>{$carttotals.taxname2} @ {$carttotals.taxrate2}%:</td><td class="textright">{$producttotals.pricing.tax2}</td></tr>{/if} </table> {/if} <div class="summaryproduct"></div> <table width="100%"> <tr><td colspan="2" class="textright">{$LANG.ordertotalduetoday}: <b>{$producttotals.pricing.totaltoday}</b></td></tr> </table> I haven't tested this but it should work for you. 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.