| Project: | Ubercart Contributions |
| Component: | Code |
| Category: | |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | patch (to be ported) |
If Product SKU/Model is selected to be shown in settings, it shows up as a code without a field name that confuses the clients.
here is the patch:
inside uc_product.module line 2303,
change this code:
/**
* Format a product's model number.
*
* @ingroup themeable
*/
function theme_uc_product_model($model) {
$output = '<div class="model">';
$output .= t('!m', array('!m' => $model));
$output .= '</div>';
return $output;
}
with this code:
/**
* Format a product's model number.
*
* @ingroup themeable
*/
function theme_uc_product_model($model) {
$output = '<div class="model">';
$output .= t('SKU/Model: !m', array('!m' => $model)); //added the field name
$output .= '</div>';
return $output;
}
