I need some help with a very basic problem. I am working on a freight module for UC and I need to get a handle on a CCK field value from the module.
I wrongly assumed that a product's CCK value would get passed to the module function with the $products item.
<?php
function uc_freight_rate_request($origin, $destination, $products) {
foreach ($products as $product) {
$items[] = array(
'Class' => $product->field_freight_class, // CCK field
);
}
}
?>The CCK field name is field_freight_class, how do I get a handle on it from my function?





Joined: 12/16/2007