function uc_product_field_extra_fields in Ubercart 7.3
Implements hook_field_extra_fields().
Adds the "Product information".
File
- uc_product/
uc_product.module, line 931 - The product module for Ubercart.
Code
function uc_product_field_extra_fields() {
$extra = array();
foreach (uc_product_types() as $type) {
$extra['node'][$type] = array(
'display' => array(
'display_price' => array(
'label' => t('Display price'),
'description' => t('High-visibility sell price.'),
'weight' => -1,
),
'model' => array(
'label' => t('SKU'),
'description' => t('Product SKU/model.'),
'weight' => 0,
),
'list_price' => array(
'label' => t('List price'),
'description' => t('The listed MSRP.'),
'weight' => 2,
),
'cost' => array(
'label' => t('Cost'),
'description' => t("Your store's cost."),
'weight' => 3,
),
'sell_price' => array(
'label' => t('Sell price'),
'description' => t('Customer purchase price.'),
'weight' => 4,
),
'weight' => array(
'label' => t('Weight'),
'description' => t('Physical weight (lbs, kg, etc.).'),
'weight' => 5,
),
'dimensions' => array(
'label' => t('Dimensions'),
'description' => t('Physical dimensions of the packaged product.'),
'weight' => 6,
),
'add_to_cart' => array(
'label' => t('Add to cart form'),
'description' => t('Add to cart form'),
'weight' => 10,
),
),
);
}
return $extra;
}