Nyan Posted November 10, 2016 Share Posted November 10, 2016 I must set JPY and USD in Currencies for SSL Pligin for WHMCS 7.0.1. But I want to deal only JPY. I hid USD in ClientArea and my client can select only JPY. And I set Curencies as setting_curencies.png. But if client use credit balance, I have a problem. I set the following code in viewcart.tpl. I use standard_cart. {if $clientsdetails.credit > 0} {assign var="inttotal" value=$total|replace:$currency.suffix:''} {assign var="inttotal" value=$inttotal|replace:$currency.prefix:''} {assign var="inttotal" value=$inttotal|replace:',':''} <div class="recurring-totals clearfix"> <span class="pull-left">{$LANG.statscreditbalance}: </span> <span class="pull-right recurring-charges">{$clientsstats.creditbalance}</span> </div> {if $clientsdetails.credit > $inttotal} <div class="total-due-today total-due-today-padded"> <span class="amt">{$currency.prefix}0.00{$currency.suffix}</span> <span>{$LANG.ordertotalduetoday}</span> </div> {else} {assign var="total" value=$inttotal-$clientsdetails.credit} {assign var="total" value=$total|number_format:2} <div class="total-due-today total-due-today-padded"> <span class="amt">{$currency.prefix}{$total}{$currency.suffix}</span> <span>{$LANG.ordertotalduetoday}</span> </div> {/if} {else} <div class="total-due-today total-due-today-padded"> <span class="amt">{$total}</span> <span>{$LANG.ordertotalduetoday}</span> </div> {/if} Please look at cart.png. Total is 2,700.00. I need Total 2,700. I meet error in PayPal. Please teach me how to resolve. 0 Quote Link to comment Share on other sites More sharing options...
Nyan Posted November 10, 2016 Author Share Posted November 10, 2016 I resolve display cart in WHMCS. But I can not resolve in PayPal. I select Automatically forward the user to the payment gateway in Auto Redirect on Checkout of General Settings. *viewcart.tpl {if $clientsdetails.credit > 0} {assign var="inttotal" value=$total|replace:$currency.suffix:''} {assign var="inttotal" value=$inttotal|replace:$currency.prefix:''} {assign var="inttotal" value=$inttotal|replace:',':''} <div class="recurring-totals clearfix"> <span class="pull-left">{$LANG.statscreditbalance}: </span> <span class="pull-right recurring-charges">{$clientsstats.creditbalance}</span> </div> {if $clientsdetails.credit > $inttotal} <div class="total-due-today total-due-today-padded"> <span class="amt">{$currency.prefix}0{$currency.suffix}</span> <span>{$LANG.ordertotalduetoday}</span> </div> {else} {assign var="total" value=$inttotal-$clientsdetails.credit} {assign var="total" value=$total|number_format:0} <div class="total-due-today total-due-today-padded"> <span class="amt">{$currency.prefix}{$total}{$currency.suffix}</span> <span>{$LANG.ordertotalduetoday}</span> </div> {/if} {else} <div class="total-due-today total-due-today-padded"> <span class="amt">{$total}</span> <span>{$LANG.ordertotalduetoday}</span> </div> {/if} *checkout.tpl {if $clientsdetails.credit > 0} {assign var="inttotal" value=$total|replace:$currency.suffix:''} {assign var="inttotal" value=$inttotal|replace:$currency.prefix:''} {assign var="inttotal" value=$inttotal|replace:',':''} {if $clientsdetails.credit > $inttotal} <div class="alert alert-success text-center large-text" role="alert"> {$LANG.ordertotalduetoday}: <strong>{$currency.prefix}0{$currency.suffix}</strong> </div> {else} {assign var="total" value=$inttotal-$clientsdetails.credit} {assign var="total" value=$total|number_format:0} <div class="alert alert-success text-center large-text" role="alert"> {$LANG.ordertotalduetoday}: <strong>{$currency.prefix}{$total}{$currency.suffix}</strong> </div> {/if} {else} <div class="alert alert-success text-center large-text" role="alert"> {$LANG.ordertotalduetoday}: <strong>{$total}</strong> </div> {/if} 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.