Remitur Posted September 23, 2017 Share Posted September 23, 2017 If 'apply credit to invoices automatically' in setup is set to "no", using credit to pay is quite complicated for the customer: he needs to go on with another kind of payment (i.e. wire transfer), and only at last passage he's finally proposed to use available credit to pay. This is causing a lot of confusion in customers, and it's timewasting. It would be nice that a "pay with credit" would be proposed as any other payment instrument, so the customer freely can choose if paying with available credit or go on and pay with other instruments... Years ago in this forum was posted a fix ( https://forum.whmcs.com/showthread.php?31405-Pay-with-Credit-Balance&p=271762#post271762 ) but it apply only to old, deprecated "modern cart" template, and i didn't dound any way to apply it to new versions... Any idea? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 23, 2017 Share Posted September 23, 2017 Years ago in this forum was posted a fix ( https://forum.whmcs.com/showthread.php?31405-Pay-with-Credit-Balance&p=271762#post271762 ) but it apply only to old, deprecated "modern cart" template, and i didn't dound any way to apply it to new versions...Any idea? for standard_cart/viewcart.tpl, it would roughly be (you could trim it down further for v7, but they'd be no real benefit)... {if $clientsdetails.credit gt 0} {assign var="inttotal" value=$total|replace:$currency.suffix:''|replace:$currency.prefix:''} <span>{$LANG.statscreditbalance}: {$clientsstats.creditbalance}</span> {if $clientsdetails.credit gt $inttotal} <span>{$LANG.ordertotalduetoday}: {$currency.prefix}0.00{$currency.suffix}</span> {else} {assign var="total" value=($inttotal-$clientsdetails.credit)|number_format:2} <span>{$LANG.ordertotalduetoday}: {$currency.prefix}{$total}{$currency.suffix}</span> {/if} {else} <span>{$LANG.ordertotalduetoday}: {$total}</span> {/if} the layout may need to be tweaked for your own purposes, but the output should be correct. 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.