- $cust_main->getfield('ship_last'). ', '. $cust_main->ship_first. '<BR>';
- print $cust_main->ship_company. '<BR>' if $cust_main->ship_company;
- print $cust_main->ship_address1. '<BR>';
- print $cust_main->ship_address2. '<BR>' if $cust_main->ship_address2;
- print $cust_main->ship_city. ', '. $cust_main->ship_state. ' '. $cust_main->ship_zip. '<BR>';
- print $cust_main->ship_country. '<BR>'
- if $cust_main->ship_country && $cust_main->ship_country ne $countrydefault;
+ $cust_main->get("${pre}last"). ', '.
+ $cust_main->get("${pre}first"). '<BR>';
+ print $cust_main->get("${pre}company"). '<BR>'
+ if $cust_main->get("${pre}company");
+ print $cust_main->get("${pre}address1"). '<BR>';
+ print $cust_main->get("${pre}address2"). '<BR>'
+ if $cust_main->get("${pre}address2");
+ print $cust_main->get("${pre}city"). ', '.
+ $cust_main->get("${pre}state"). ' '.
+ $cust_main->get("${pre}ship_zip"). '<BR>';
+ print $cust_main->get("${pre}country"). '<BR>'
+ if $cust_main->get("${pre}country")
+ && $cust_main->get("${pre}country") ne $countrydefault;