Hi Nicolas,
I did what you said (update to 1.6.0. and get rid of cutom.) on my backed up xampp environment but as expected it turned out to become a big mess as my site is highly customized with changes in many different files and not all changes done by recommended way via "views" (work on 1.5.8.). also submitting an order has no effect to my cart module...
I am unfortunately short of time (marketing campaign starting in less than 2 weeks) and I need to get the discount system running showing the correct figures on site and the email. I have for now achieved a basic workaround for the email notification (order creation) with the only problem remaining that I have to use a fixed figure and not a variable here (so I can´t use different levels of discounts):
if(bccomp($data->order_discount_price,0,5)){
echo '<tr><td colspan="4" style="text-align:right">'.JText::_('HIKASHOP_COUPON').' : ';
if($config->get('price_with_tax')){
echo $currencyHelper->format(($data->order_discount_price/1.2)*-1,$data->order_currency_id);
}else{
echo $currencyHelper->format(($data->order_discount_price-@$data->order_discount_tax)*-1,$data->order_currency_id);
}
Can you help and let me know if there is a solution for that. The code in the last line does reproduces VAT-discount*(1+tax rate) - in this case 20%). Also, how can I implement a subtotal without VAT as shown on the screenshot of my previous email. If there a a couple of products added I need this.
Thanks for your help!
regards
Christoph