BugBUG - Selected Plan Not Removed If You Go Back
I have found a bug.
If you go to create a listing, select a plan and press continue, then once you've moved off the 'choose a plan' page, you decide to go back and change your mind to select a different plan, you end up with two plans in your $order. This means that when you get to the 'select payment' page, you will be presented with a bill for two plans, and not just the final plan you selected. There is NO WAY at all to get rid of a plan from your order once you have moved from the 'select a plan' page. You could keep going back to this page, changing the plan selected, and your order value would just keep increasing.
There is no checking at all prior to the call to va_add_plan_to_order() to see if we need to remove a previously selected plan, nor is there any checking for this within that function....it simply does this:
$order->add_item( $plan->post_name, $plan_data['price'], $listing_id );
I have searched the Vantage files for any kind of va_remove_plan_from_order function, but can find nothing...
I know bugs take time to fix, but any suggestions on a quick solution pending an official bug release would be much appreciated.