Jump to content

GagalKoding

Retired Forum Member
  • Posts

    1
  • Joined

  • Last visited

About GagalKoding

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

GagalKoding's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hi there, I have returned $vars from EmailPreSend Hooks like this Array ( [messagename] => Other Product/Service Welcome Email [relid] => 805 [mergefields] => Array ( [service_first_payment_amount] => WHMCS\View\Formatter\Price Object ( [price:protected] => 350000 [currency:protected] => Array ( [id] => 1 [code] => IDR [prefix] => Rp [suffix] => IDR [format] => 3 [rate] => 1.00000 ) [defaultFormat:protected] => {PREFIX}{PRICE}{SUFFIX} [defaultCurrencyDescriptor:protected] => Array ( [format] => 1 [prefix] => [suffix] => ) ) How to print "350000" on price protected object from ['mergefields']['service_first_payment_amount'] I try $vars['mergefields']['service_first_payment_amount']->price; But i get message Error: Cannot access protected property WHMCS\View\Formatter\Price::$price
×
×
  • 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