I need to display the block even when there are no items in the cart, presumably i just need to change part of this code in the uc_upsell_block.inc......
/**
* Renders upsell block
*/
function uc_upsell_block_contents($id = 0) {
// Get related cart items (sets $msg too)
if ($nodes = uc_upsell_resolve_associates($msg)) {
drupal_add_css(drupal_get_path('module', 'uc_upsell') .'/uc_upsell.css');
// Loop through the nodes and generate a link with thumbnail.
foreach ($nodes as $node) {
$content[] = theme('upsell_item', $node);
}
return array('subject' => $msg, 'content' => '
'. implode('
', $content) .'
', 'related' => $nodes);
}
else {
return array();
}
}
can anyone assist me ?
Comments
Comment #1
avpadernoI am closing this issue since it has been created for a project version that is now unsupported.
I apologize for bumping this issue.