Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Created October 14, 2014 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulsahay19/4e77a5683686d211a8cc to your computer and use it in GitHub Desktop.
Save rahulsahay19/4e77a5683686d211a8cc to your computer and use it in GitHub Desktop.
if (shippingOptions != null)
{
var selectedOption = shippingOptions.SelectedShippingOptionDetails;
result.SelectedShippingOption = selectedOption;
result.ShowDeliveryMethodInformation = cartResponse.ShippingInfo.RequiresDelivery;
result.ShowSelectedShippingOption = selectedOption != null && !string.IsNullOrEmpty(selectedOption.Id);
if (_contactsSettings.Current.EndUserContact.Mode != ContactSettingsMode.Off)
{
result.ShowEndUserContactInformation = true;
}
else
{
result.ShowEndUserContactInformation = false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment