Code: Select all
foreach ($option['option_value'] as $option_value) {
if (!$option_value['subtract'] || ($option_value['quantity'] > 0)) {
$option_value_data[] = array(
'product_option_value_id' => $option_value['product_option_value_id'],
'option_value_id' => $option_value['option_value_id'],
'name' => $option_value['name'],
'price' => (float)$option_value['price'] ? $this->currency->format($this->tax->calculate($option_value['price']+$product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax'))) : false,
'price_prefix' => ''
);
}
}
Product 1 - $5.00
- option 1
- option 2 ($8.50)
What i'd like to have is
Product 1 - $5.00
- option 1 ($5.00)
- option 2 ($8.50)
I can get round this by setting Option 1 price to something small like 0.0001 so it gets rounded to $5.00 anyway, but it's not very elegant solution..
Bigger problem is when I set Special on the product, then I get:
Product 1 - $5.00 (crossed), now $2.99
- option 1 ($5.00)
- option 2 ($8.50)
Any suggestions?