Quote:
Originally Posted by ultimatephysique
Quote:
Originally Posted by B00MER
Code:
if($paymentid=="1") {
smarty->assign("paymentby","cc")
} elseif ($paymentid=="2") {
smarty->assign("paymentby","moneyorder")
}
|
Programming Logic Question: What does the "paymentby" and "cc" do, i assume the later is the payment method, but where does the "paymentby" come from?
|
$smart->assign("paymentby","cc");
Does nothing more than set a variable called "paymentby" to smarty's templates with a value of "cc".
So I can now use {$paymentby} in my .tpl file to show its value or to do conditions, etc.
