I have a site where the products in the cart are related to webform submissions. I want to be able to display a link under each item so that customer with multiple products can see which product relates to which submsision.
I tried using
<?php
function my_module_product_description($product) {
// if (isset($product->data['sid']) &&
// isset($product->data['nid'])) {
$element = array();
$element['submission_url'] = array(
'#markup' => l("view your entry",'node/'.$product->data['nid'].'/submission/'.$product->data['sid'])
);
return $element;
//}
}
?>but I don't see any output so I guess I'm misunderstanding something...
Any help appreciated!

)