I have just installed the new target coupon for V1.1.7 but i am still getting a problem when i use the percent discount and i want the discount to be taken before tax and shipping, in the mini cart the total shows correctly but in the main cart it is wrong, i have looked at the comments for a similar fault in V1.15 in ps_checkout.php but the code on the new version seems different, so i dont know what needs changing.