You could customize the files:
/includes/modules/pages/shopping_cart/header_php.php
Code:
$attributes = "SELECT popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix, pa.attributes_discounted, pa.products_attributes_id, pa.products_attributes_weight_prefix, pa.products_attributes_weight
Code:
// bof: show attribute price in cart
if ($attributes_values->fields['attributes_discounted'] == 1) {
// apply product discount to attributes if discount is on
// $new_attributes_price = $products_options->fields['options_values_price'];
$new_attributes_price = zen_get_attributes_price_final($attributes_values->fields["products_attributes_id"], 1, '', 'false');
$new_attributes_price = zen_get_discount_calc((int)$products[$i]['id'], true, $new_attributes_price);
} else {
// discount is off do not apply
$new_attributes_price = $attributes_values->fields['options_values_price'];
}
$attrArray[$option]['new_attributes_price'] = $new_attributes_price;
$attrArray[$option]['products_attributes_weight_prefix'] = $attributes_values->fields['products_attributes_weight_prefix'];
$attrArray[$option]['products_attributes_weight'] = $attributes_values->fields['products_attributes_weight'];
// eof: show attribute price in cart
/includes/templates/your_templates_dir/templates/tpl_shopping_cart_default.php
with:
Code:
<!-- ORIGINAL <li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']); ?></li> -->
<li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']) . ' [ ' . $value['price_prefix'] . $currencies->format($value['options_values_price']) . ' ] ' . $currencies->format($value['new_attributes_price']) . ($value['products_attributes_weight'] > 0 ? ' [ ' . $value['products_attributes_weight_prefix'] . $value['products_attributes_weight'] . 'lbs ] ' : ''); ?></li>
Bookmarks