Jump to content

diba

Member
  • Posts

    2
  • Joined

  • Last visited

Everything posted by diba

  1. hey guys i want to customize my viewinvoice template but i have lots of problem, if any one have experience in it, please help me lots of problem to show variables in template from smarty. as you know in template file i have not access to run php so how can i access to this fields : _ rawamount or price:protected ( code has been attached ) _ product item quantity number ( default format like this "item Quantity x service name" in $LANG.invoicesdescription ) _ how can i set code to my product and show them in my invoice ? _ how can i sum $tax , $total, $subtotal values ? _ and where is disscount value ? Array ( [0] => Array ( [id] => 15 [type] => Addon [relid] => 2 [description] => ??????? ?? (domain.com) - ??? ????? ? ?????? ????? (2019/09/21 - 2020/09/20) [rawamount] => 390000.00 [amount] => WHMCS\View\Formatter\Price Object ( [price:protected] => 390000 [currency:protected] => Array ( [id] => 2 [code] => ???? [prefix] => ???? [suffix] => [format] => 4 [rate] => 1.00000 ) [defaultFormat:protected] => {PREFIX}{PRICE}{SUFFIX} [defaultCurrencyDescriptor:protected] => Array ( [format] => 1 [prefix] => [suffix] => ) ) [taxed] => 1 ) [1] => Array ( [id] => 16 [type] => [relid] => 0 [description] => domain [rawamount] => 29800.00 [amount] => WHMCS\View\Formatter\Price Object ( [price:protected] => 29800 [currency:protected] => Array ( [id] => 2 [code] => ???? [prefix] => ???? [suffix] => [format] => 4 [rate] => 1.00000 ) [defaultFormat:protected] => {PREFIX}{PRICE}{SUFFIX} [defaultCurrencyDescriptor:protected] => Array ( [format] => 1 [prefix] => [suffix] => ) ) [taxed] => 1 ) ) i could not find any solution for my problems in forums or WHMCS documentation. thanks in advance for your complete guide to resolve this problem
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated