Hello All,
I am trying to following part of code within the viewinvoice page but the paymentbutton is not updated. Is the smarty->assign option still supported?
<?php
function custom($vars)
{
global $smarty;
if ($vars['filename'] == 'viewinvoice' && $vars['status'] == 'Unpaid') {
$smarty->assign('paymentbutton', "BG");
}
}
add_hook('ClientAreaPage', 1, 'custom');
?>
The hook seems to run but the paymentbutton is not updated. Does anyone have the same issue? How can we update the paymentbutton?