Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
<div class="checkout-data" v-if="vmorder.BillingAddress">
@await Component.InvokeAsync("Widget", new { widgetZone = "checkout_billing_address_top" })
<div class="section select-billing-address">
<label for="billing-address-select">@Loc["Checkout.SelectBillingAddressOrEnterNewOne"]</label>
<div>
<select name="BillingAddressId" id="billing-address-select" ref="billingSelect" class="form-select address-select" title="" onchange="vmorder.vBilling.newAddress(!this.value)">
<template v-for="address in vmorder.BillingExistingAddresses">
<option :value="address.Id">
{{address.FirstName}}
{{address.LastName}}
<template v-if="address.StreetAddressEnabled && address.Address1 !== null">
, {{address.Address1}}
</template>
<template v-if="address.CityEnabled && address.City !== null">
, {{address.City}}
</template>
<template v-if="address.StateProvinceEnabled && address.StateProvinceName !== null">
, {{address.StateProvinceName}}
</template>
<template v-if="address.ZipPostalCodeEnabled && address.ZipPostalCode !== null">
, {{address.ZipPostalCode}}
</template>
<template v-if="address.CountryEnabled && address.CountryName !== null">
, {{address.CountryName}}
</template>
</option>
</template>
<option value="" :selected="vmorder.BillingNewAddressPreselected">@Loc["Checkout.NewAddress"]</option>
</select>
</div>
</div>
@await Component.InvokeAsync("Widget", new { widgetZone = "checkout_billing_address_middle" })
<div class="section new-billing-address" id="billing-new-address-form" v-if="vmorder.BillingNewAddressPreselected">
<div class="enter-address">
<div asp-validation-summary="All" class="message-error"></div>
@{
var dataDictAddress = new ViewDataDictionary(ViewData)
{
TemplateInfo =
{
HtmlFieldPrefix = "BillingNewAddress"
}
};
<partial name="Partials/CreateOrUpdateAddress" model="Model.BillingAddress.BillingNewAddress" view-data="dataDictAddress"/>
}
</div>
<template v-if="vmorder.billingAddressErrors !== null">
<div class="alert alert-danger">
<ul class="m-0 p-0">
<template v-for="message in vmorder.billingAddressErrors">
<li>
{{message}}
</li>
</template>
</ul>
</div>
</template>
</div>
@await Component.InvokeAsync("Widget", new { widgetZone = "checkout_billing_address_bottom" })
</div>