I am using the Calguy E-commerce modules (versions below) and I have defined a few text fields in product manager. I am now trying to display one of those fields (product_code) in the Viewcart template.
Cart = 1.4.2 | Orders = 1.5.3 | Products = 2.4.3
I can usually manipulate templates without a problem but this one has me stumped.
My viewcart template looks like this:
Code: Select all
<pre>
{$cartitems|print_r}
</pre>
{foreach from=$cartitems item='oneitem'}
Product Code = {$oneitem->flds->product_code->value} <br /> {* ****** This line doesn't work ********** *}
{/foreach}
Code: Select all
stdClass Object
(
[product_id] => 183
[quantity] => 1
[attributes] => Array
(
)
[weight] => 1
[base_price] => 40.56
[unit_price] => 40.56
[summary] => Car Key Ring Torch (CDU)
[file_location] => http://192.168.11.3/ecotronic/uploads/Products/product_183
[flds] => Array
(
[large_image] => stdClass Object
*RECURSION*
[product_code] => stdClass Object
*RECURSION*
[dimensions] => stdClass Object
*RECURSION*
[pack_size] => stdClass Object
*RECURSION*
)
[categories] => Array
(
)
[quantity_box] =>
)
Array
Product Code =
Can anyone help me out?
Thanks,
Bob