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
@{
var warehouseLink = Url.Action("productdetails_warehousechange", "product");
}
<template v-if="PopupQuickViewVueModal.AllowToSelectWarehouse">
<template v-if="PopupQuickViewVueModal.ProductWarehouses.length > 0">
<div class="mb-3">
<label for="WarehouseId" class="col-form-label">@Loc["Products.Warehouse"]:</label>
@*One select for both cases. It used to branch on whether the product
has attributes and neither branch worked: the first called
vm.warehouse_change_handler(id) without the url it needs, the second
called warehouse_change_handler(...) with no vm. - and that is a
method on the root instance, not a global. The handler repricing
attribute products is now its own concern.*@
<select class="form-select form-control" name="WarehouseId" id="WarehouseId"
@@change="vm.warehouse_change_handler(PopupQuickViewVueModal.Id, '@warehouseLink')">
<template v-for="warehouse in PopupQuickViewVueModal.ProductWarehouses">
<option :selected="warehouse.Selected" :value="warehouse.WarehouseId">{{warehouse.Name}}</option>
</template>
</select>
</div>
</template>
</template>