Is it possible to dynamically skip a step (in this case, the select shipping/billing) in the checkout process? I know I can remove the step, but that doesn't seem to set the payment and shipping options. So far, I have in the OnPreRender event:
InfoDataSet<ShippingOptionInfo> shippingOptions = ShippingOptionInfoProvider.GetShippingOptions(CurrentSite.SiteID, true);
InfoDataSet<PaymentOptionInfo> paymentOptions = PaymentOptionInfoProvider.GetPaymentOptions(CurrentSite.SiteID, true);
if ((shippingOptions.Items.Count == 1) && (paymentOptions.Items.Count == 1))
selectShipping.ShippingID = shippingOptions.Items.ShippingOptionID;
selectPayment.PaymentID = paymentOptions.Items.PaymentOptionID;
int _nextStep = ShoppingCartControl.CurrentStepIndex + 1;
The last two lines that I have commented out throw errors. Is there a command that I can call here that can stop loading this step and move to the next one?