This was a long time ago, but it's top of google for "zen cart itemize attributes", so I'll give a fix here to save people the trouble:
tpl_shopping_cart_default.php
Comment out:
Code:
<li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']); ?></li>
and insert this:
Code:
if((int)$value['options_values_price']){ $price=money_format('%i', $value['options_values_price'] ); }
if($price){ $display_price=" (".$value['price_prefix'] . " $" . $price . ")"; }
echo '<li>' . $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']) . $display_price . '</li>';
on includes/classes/order.php, comment out:
Code:
$this->products_ordered_attributes .= "\n\t" . $attributes_values->fields['products_options_name'] . ' ' . zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']);
and insert this:
Code:
if((int)$this->products[$i]['attributes'][$j]['price']){
$price=money_format('%i',$this->products[$i]['attributes'][$j]['price']);
$display_price=" (".$this->products[$i]['attributes'][$j]['prefix'] . " $" . $price . ")";
}
$this->products_ordered_attributes .= "\n\t" . $attributes_values->fields['products_options_name'] . ' ' . zen_decode_specialchars($this->products[$i]['attributes'][$j]['value'] . $display_price);
Bookmarks