Need some more help please

Posts: 73
Joined: 12/16/2007
Uber Donor

Thanks for the help Lyle. When I dump $product I get this for the CCK field:

<?php
[field_freight_class] => Array
        (
            [
0] => Array
                (
                    [
value] => 50
               
)
        )
?>

The problem is I'm not sure what to do with this information.

So for this routine in the function how would I get a handle on the CCK value? I've tried everything I could think of without success. This just seems to tricky to me.

<?php
foreach ($products as $product) {
    
$items[] = array(
   
'Class' => $product->'* How do I reference the CCK value? *',
   
'Weight' => $product->weight * $product->qty,
     )
?>

Thanks again for your help!

Complete Computer Care | The Cosmic Gift | Florida Fossils | Team Hope Evangelism

Getting CCK field value from $products? By: setfree (5 replies) Mon, 05/12/2008 - 14:48