jumonjii,
You need to create a custom module to show the sku (this is not as hard as it sounds)
1. In /sites/all/modules/ on your web server create a folder called uc_showsku.
2. In the uc_showsku folder create two text files uc_showsku.info and uc_showsku.module
3. Paste this code into uc_showsku.info
; $Id$
name = Show SKU
description = Add SKU column to Product and Cart tables
dependencies = uc_cart
package = "Ubercart - core (optional)"4. Paste this code into uc_showsku.module
<?php
/**
* Implementation of TAPIr's hook_table_alter().
*/
function uc_showsku_table_alter($table_id, $op, $args = null) {
if($table_id == 'uc_cart_view_table') {
switch ($op){
case 'fields':
$fields[] = array('name' => 'model',
'title' => t('SKU'),
'weight' => 1,
'enabled' => true,
);
return $fields;
case 'data':
foreach ($args['#parameters'][1] as $item) {
$data['model'][] = $item->model;
}
return $data;
}
}
}5. Enable your module in www.yoursite.com/admin/build/modules
6. Enable "SKU" in www.yoursite.com/admin/store/settings/tables/uc_cart_view_table



Joined: 02/10/2008