In the
/admin/includes/classes/order.php
add it to the select then the build:
$attributes = $db->Execute("select products_options, products_options_values, options_values_price,
price_prefix, products_attributes_weight,
product_attribute_is_free
from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . "
where orders_id = '" . (int)$order_id . "'
and orders_products_id = '" . (int)$orders_products->fields['orders_products_id'] . "'");
if ($attributes->RecordCount()>0) {
while (!$attributes->EOF) {
$this->products[$index]['attributes'][$subindex] = array('option' => $attributes->fields['products_options'],
'value' => $attributes->fields['products_options_values'],
'prefix' => $attributes->fields['price_prefix'],
'price' => $attributes->fields['options_values_price'],
'weight' => $attributes->fields['products_attributes_weight'],
'product_attribute_is_free' =>$attributes->fields['product_attribute_is_free']);
$subindex++;
$attributes->MoveNext();
}
}
/admin/orders.php
reference it as:
$order->products[$i]['attributes'][$j]['weight']
NOTE: you can add prefix too if you like in there ...
Linda McGrath
If you have to think ... you haven't been zenned ...
**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!