Show Bill To address on gift receipt
A packing slip for an order can be displayed one of two ways - either as a general packing slip (with prices, totals and bill to address) or as a gift receipt (with no prices, totals or bill to address).
To modify the gift receipt so that the bill to address still shows, use the following modification (for version 2.8x files):
-
Open the packlist.php file in the /includes/ directory of the /storeadmin/ folder.
-
Change the lines:
if ($pr == "y")
echo "BILL TO: ";
else
echo "NOTES ";to:
echo "
BILL TO: "; -
Change the lines:
if ($pr == "y")
echo "Name: $invname ";
else
echo "$message ";to:
echo "
Name: $invname "; -
Remove the line:
if ($pr == "y")
just above the line:
echo "
Company: $invcompany ";and just above the line:
echo "
Address: $invaddress ";and just above the line:
echo "
City: $invcity ";and just above the line:
echo "
State: $invstate ";and just above the line:
echo "
Zip Code: $invzip ";and just above the line:
echo "
Country: $invcountry ";and just above the line:
echo "
Phone: $phone ";and just above the line:
echo "
Email: $email "; -
Add the line:
if($pr == "n" AND !empty($message)) echo "
Notes:";
$messagejust above the lines:
}
else
echo "No Records Found";
?> -
Save and reload the file.