View Single Post
  #7  
Old 12-12-2005, 02:03 PM
 
ultimatephysique ultimatephysique is offline
 

Advanced Member
  
Join Date: Dec 2005
Location: Victoria, Australia
Posts: 33
 

Default

Quote:
Originally Posted by B00MER
Code:
if($paymentid=="1") { smarty->assign("paymentby","cc") } elseif ($paymentid=="2") { smarty->assign("paymentby","moneyorder") }

You could do something like the above in cart.php

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?

i've read the smarty docs, and i see that it's for assigning values to the template, but where did they come from and what exactly do they represent? The code that i am replacing differs from the above.

lbl_order_processed when i looked it up just said "Order Processed" which didnt help.

Code:
$smarty->assign("main","order_message"); $location[] = array(func_get_langvar_by_name("lbl_order_processed"), "");

Can somone point me in the right direction
__________________
X-Cart 4.1.6
Reply With Quote