No replies
ludao's picture
Offline
Joined: 12/11/2007
Juice: 48
Was this information Helpful?

Because of a rather complex layout (20 odd products in a grid layout), i'm trying to load nodes individually into each table cell, as using views for this would be very tricky.

Fortunately, the only button I need is 'add to cart' - however when I do, no cart button shows up.

<?php
$node1
= node_load(168);print $node1->content['add_to_cart']['#value'];
?>

The context is i'm in a node already, and just loading a bunch of other nodes, and having the 'add to cart' button show up, seems pretty straight-forward, but the UC product variables don't seem to be available in this way. anybody have any ideas? Thanks in advance!