OK, I figured it out.
Now I will post how to print a Resellers demographics on the packing slip instead of your stores demographics using the Super Orders and Dual Pricing mods.
You will only be modifying the super_packingslip.php file in your admin folder.
1. Around line 96, select the following code and cut it to be moved up to below line 84:
PHP Code:
<?php
$order_check = $db->Execute("SELECT cc_cvv, customers_name, customers_company, customers_street_address,
customers_suburb, customers_city, customers_postcode,
customers_state, customers_country, customers_telephone,
customers_email_address, customers_address_format_id, delivery_name,
delivery_company, delivery_street_address, delivery_suburb,
delivery_city, delivery_postcode, delivery_state, delivery_country,
delivery_address_format_id, billing_name, billing_company,
billing_street_address, billing_suburb, billing_city, billing_postcode,
billing_state, billing_country, billing_address_format_id,
payment_method, cc_type, cc_owner, cc_number, cc_expires, currency,
currency_value, date_purchased, orders_status, last_modified
FROM " . TABLE_ORDERS . "
WHERE orders_id = '" . (int)$oID . "'");
?>
2. In the SELECT statement, insert customers_id:
PHP Code:
$order_check = $db->Execute("SELECT cc_cvv, customers_id, customers_name, customers_company, customers_street_address,
3. Now, insert this code around line 104:
PHP Code:
<!-- mod print reseller info on packing slip if reseller - 122912-->
<?php
$c_whole = $db->Execute("SELECT customers_whole
FROM " . TABLE_CUSTOMERS . "
WHERE customers_id = '" . $order_check->fields['customers_id'] . "'");
if ($c_whole->fields['customers_whole'] > '0') {?>
<td class="pageHeading"><?php echo $order_check->fields['customers_company']?><br />
<?php echo $order_check->fields['customers_street_address']?><br />
<?php echo $order_check->fields['customers_city'] ?>
<?php echo $order_check->fields['customers_state'] ?>
<?php echo $order_check->fields['customers_postcode']?><br />
<?php echo $order_check->fields['customers_telephone']?><br />
<?php echo $order_check->fields['customers_email_address'];?></td>
<td class="pageHeading" align="right"><?php echo TEXT_PACKING_SLIP; ?></td>
<?
}
else {
?>
<!-- end mod reseller packing slip -->
4. This is what your final modded code should look like. Mine starts on line 89 and goes through line 129. Pay attention to the last 3 lines to close off your IF/ELSE statement.
PHP Code:
<?php
$order_check = $db->Execute("SELECT cc_cvv, customers_id, customers_name, customers_company, customers_street_address,
customers_suburb, customers_city, customers_postcode,
customers_state, customers_country, customers_telephone,
customers_email_address, customers_address_format_id, delivery_name,
delivery_company, delivery_street_address, delivery_suburb,
delivery_city, delivery_postcode, delivery_state, delivery_country,
delivery_address_format_id, billing_name, billing_company,
billing_street_address, billing_suburb, billing_city, billing_postcode,
billing_state, billing_country, billing_address_format_id,
payment_method, cc_type, cc_owner, cc_number, cc_expires, currency,
currency_value, date_purchased, orders_status, last_modified
FROM " . TABLE_ORDERS . "
WHERE orders_id = '" . (int)$oID . "'");
?>
<!-- mod print reseller info on packing slip if reseller - rh - 122912-->
<?php
$c_whole = $db->Execute("SELECT customers_whole
FROM " . TABLE_CUSTOMERS . "
WHERE customers_id = '" . $order_check->fields['customers_id'] . "'");
if ($c_whole->fields['customers_whole'] > '0') {?>
<td class="pageHeading"><?php echo $order_check->fields['customers_company']?><br />
<?php echo $order_check->fields['customers_street_address']?><br />
<?php echo $order_check->fields['customers_city'] ?>
<?php echo $order_check->fields['customers_state'] ?>
<?php echo $order_check->fields['customers_postcode']?><br />
<?php echo $order_check->fields['customers_telephone']?><br />
<?php echo $order_check->fields['customers_email_address'];?></td>
<td class="pageHeading" align="right"><?php echo TEXT_PACKING_SLIP; ?></td>
<?
}
else {
?>
<!-- end mod reseller packing slip -->
<td class="pageHeading"><?php echo nl2br(STORE_NAME_ADDRESS); ?></td>
<td class="pageHeading" align="right"><a href="<?php echo FILENAME_SUPER_PACKINGSLIP . '?' . zen_get_all_get_params(); ?>"><?php echo zen_image(DIR_WS_IMAGES . HEADER_LOGO_IMAGE)?></a><br /><?php echo TEXT_PACKING_SLIP; ?></td>
<?
}
?>
You may want to notify your Resellers to verify their billing information as this is what will print in the upper left of the super packing slip. You may also want to inform them that anything they put in the Special Instructions will also print on the packing slip and will be seen by their customers.