• Hi Joe

    Wanted to report a very minor bug, which triggers unexpected behviour in a speciifc set of circumtances.

    If you have a ticket item, and set the price at 0.00 – if you try to book and your cart is free, my-tickets still triggers the gateway for payment (not the offline gateway). You have to use 0 as the ticket price.

    I followed your code through and it appears to fall down on line 1016 on mt-cart.php, (or arguably within mt_total_cart() on line 935). Setting the ticket value as 0.00 means that the float is compared to integer values on line 1016 and as you use the identical comparison operator in that if statement, it returns false and does not set the offline gateway.

    Certainly not a high priority bug and perhaps one that you can bundle up next time you update?

    Thanks for your time in building this plugin, it is truly an excellent piece of work. ALl the best,
    Ben

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug Report – 0.00 as value in mt-cart.php’ is closed to new replies.