Post by sniffertje » Sat Sep 21, 2013 5:14 pm

I buy items from customers, so I don't want to give a minus amount when using a voucher ,but want to give them extra money.

How to change this that discount voucher is working in reverse mode?

New member

Posts

Joined
Fri Jan 08, 2010 10:42 pm

Post by sniffertje » Sat Sep 21, 2013 7:06 pm

catalog/model/total/coupon.php

I changed

$total_data[] = array(
'code' => 'coupon',
'title' => sprintf($this->language->get('text_coupon'), $this->session->data['coupon']),
'text' => $this->currency->format(-$discount_total),
'value' => -$discount_total,
'sort_order' => $this->config->get('coupon_sort_order')
);

$total -= $discount_total;


To


$total_data[] = array(
'code' => 'coupon',
'title' => sprintf($this->language->get('text_coupon'), $this->session->data['coupon']),
'text' => $this->currency->format(+$discount_total),
'value' => +$discount_total,
'sort_order' => $this->config->get('coupon_sort_order')
);

$total += $discount_total;



Is this enough?

New member

Posts

Joined
Fri Jan 08, 2010 10:42 pm
Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 42 guests