Fix Simple Php script issue

Job ID: 34517393

Budget: $30 – $250 USD

I have this site that allows a user to sign up and purchase event tickets ,

when purchasing tickets the cart is miscalculating the ticket prices for some events.
it only is working for events that have one price, so events with Gender based pricing - Male and Female OR Type based like : General,VIP,VVIP OR Type and Gender based like General Male and Female VIP Male and Female VVIP Male and Female are not working.

The types are :
Regular - One Price for everyone
Gender based pricing - Male and Female
Type based like : General,VIP,VVIP
Type and Gender based like General Male and General Female VIP Male and VIP Female VVIP Male and VVIP Female

The type of tickets that are currently being created correctly are only the regular type, the others when they reach the cart
http://everythingisfete.com/cart.php

the calculations for the tickets are incorrect

For example if a user wants to buy 1 Female ticket for a Gender based event , so they are buying 1 $100 Female ticket and 0 OR NO $150 Male tickets the cart says the price is $250 so its miscalculating the ticket price, adding both prices in this case.

So the following event cart prices will be incorrect.
For example you cannot buy tickets for the following events: http://everythingisfete.com/eventdetails.php?urlID=63
http://everythingisfete.com/eventdetails.php?urlID=64
http://everythingisfete.com/eventdetails.php?urlID=61

I would like someone to quickly fix the calculation issue please
Related categories: PHP JavaScript Website Design MySQL Bootstrap