Hello UC,
I need to do something that Views cannot provide for me, so I am going old school with my own PHP.
Important: I am doing this through a block that I am displaying on product pages beneath the product currently being viewed.
To get most of the data without doing a bunch of queries, I am using
node_load($my_variable, NULL, FALSE);
where my_variable is the node ID I am loading.
Usually, to get the shopping cart links through my node-product-tpl.php I'd use
->content['add_to_cart']["#value"];
but this doesn't return anything after using node_load in my block. So I tried another method I know of,
->[body];
But this only returns the body itself without any cart links. I then used print_r to see what is available and the cart links are in fact absent from the entire loaded node array!
So I am wondering how can I get more data when I am working in a block and not in the theme template file? I really don't want to make a bunch of queries to manually code HTML for the cart links because I am using AJAX cart and AJAX attribute calculations modules, and I haven't even looked into what HTML and Javascript I'll need to code to get the same function as if the node was being loaded by itself.
Thank you for your help!
Regards,
BigMike

