VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: seyi on June 22, 2013, 11:41:47 AM

Title: Coupon double negative
Post by: seyi on June 22, 2013, 11:41:47 AM
Hello,

In vm 2.0.21 f, after applying a coupon code the
  + order detail in the backend
  + confirmation email
shows the discount as a double negative, example:

   --39.20
Title: Re: Coupon double negative
Post by: Milbo on June 22, 2013, 14:12:38 PM
I think we discussed about this in february or so. Please check your skype. We removed the minus imho. Long time you added a fix to your code to compensate this. Imho you just need to remove it ( a line, or a  * (-1), something like this.
Title: Re: Coupon double negative
Post by: seyi on June 22, 2013, 14:35:51 PM
Hi Milbo,

Yes, I did that, the discounting works fine, no problem with the logic.  The problem is the display of the discount in order detail and email.  Instead of showing
"-39.20"

It shows
"--39.20"

See what I mean in this image:
http://tinypic.com/view.php?pic=34g0d3b&s=5
Title: Re: Coupon double negative
Post by: K&K media production on June 24, 2013, 19:07:18 PM
Please take a look in your template override. It seems you have there a "-" on coupon discount.
Title: Re: Coupon double negative
Post by: seyi on June 24, 2013, 19:15:41 PM
Hello,

Can you override the administrator template?

In any case, I am using the default, the one that came with Virtuemart, nothing external.
Title: Re: Coupon double negative
Post by: K&K media production on June 24, 2013, 19:27:41 PM
Oh sorry, I have not read "BE" ... will fix it for next version