Hi,
I could remove the disabled attributes from the order_product so that they won't appear in shopping cart and invoice.
Writing down code line if some one wants to use
/**
* Implementation of hook_cart_item
*/
function my_module_cart_item($op, &$item) {
switch ($op) {
case 'load':
$attributes = $item->data['attributes'];
//TODO: currently the attribute ids are rememberd and added conditions on top of that.Need to use labels for identifying the attributes
if($attributes[2] == 5) {
unset($item->data['attributes'][7]);
}
uc_cart_update_item($item);
break;
}
}Thanks to all the people who helped me to get this functionaltiy
