Opencart 1.5.2.x core file modifications for Paypal Standard bugfixes
1.5.2.x
1.2.3
mhccorp.com
data['discount_amount_cart'] = 0;]]>
data['discount_amount_cart'] -= $total;]]>
data['currency_code'] = $order_info['currency_code'];]]>
getTotals($order_info['currency_code']);
$this->data['sub_total_value'] = 0.00;
$this->data['discount_value'] = 0.00;
$this->data['handling_value'] = 0.00;
$this->data['shipping_value'] = 0.00;
$this->data['shipping_title'] = '';
$this->data['low_order_fee_value'] = 0.00;
$this->data['low_order_fee_title'] = '';
$this->data['shipping'] = 0.00;
$this->data['tax_value'] = 0.00;
$this->data['total_value'] = 0.00;
foreach ($totals as $total) {
if ($total['code'] == 'reward') {
$this->data['discount_value'] += -(float)$total['value'];
} else if ($total['code'] == 'credit') {
$this->data['discount_value'] += -(float)$total['value'];
} else if ($total['code'] == 'coupon') {
$this->data['discount_value'] += -(float)$total['value'];
} else if ($total['code'] == 'voucher') {
$this->data['discount_value'] += -(float)$total['value'];
} else if ($total['code'] == 'shipping') {
$this->data['shipping_value'] = (float)$total['value'];
$this->data['shipping_title'] = $total['title'];
} else if ($total['code'] == 'handling') {
$this->data['handling_value'] += (float)$total['value'];
} else if ($total['code'] == 'low_order_fee') {
$this->data['low_order_feee_value'] = (float)$total['value'];
$this->data['low_order_fee_title'] = $total['title'];
} else if ($total['code'] == 'tax') {
$this->data['tax_value'] += (float)$total['value'];
} else if ($total['code'] == 'sub_total') {
$this->data['sub_total_value'] = (float)$total['value'];
} else if ($total['code'] == 'total') {
$this->data['total_value'] = (float)$total['value'];
}
}
$this->data['store_name'] = $this->config->get('config_name');
]]>
]]>
cart->getTaxes();
if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {
$this->load->model('setting/extension');
$sort_order = array();
$results = $this->model_setting_extension->getExtensions('total');
foreach ($results as $key => $value) {
$sort_order[$key] = $this->config->get($value['code'] . '_sort_order');
}
array_multisort($sort_order, SORT_ASC, $results);
foreach ($results as $result) {
if ($this->config->get($result['code'] . '_status')) {
$this->load->model('total/' . $result['code']);
$this->{'model_total_' . $result['code']}->getTotal($total_data, $total, $taxes);
}
}
$sort_order = array();
foreach ($total_data as $key => $value) {
$sort_order[$key] = $value['sort_order'];
}
array_multisort($sort_order, SORT_ASC, $total_data);
if ($this->config->get('config_currency') != $currency) {
foreach ($total_data as $key => $total) {
$total_data[$key]['value'] = $this->currency->convert( $total['value'], $this->config->get('config_currency'), $currency );
}
}
}
return $total_data;
}
]]>
]]>
= $sub_total_value) { ?>
" />
]]>
]]>
0.00) { ?>
" />
0.00) { ?>
" />
0.00) { ?>
" />
0.00) { ?>
" />
0.00) { ?>
" />
]]>