Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @using ContentModels = Umbraco.Web.PublishedContentModels;
- @using UCommerce.EntitiesV2
- @inherits Umbraco.Web.Mvc.UmbracoViewPage<dynamic>
- @{
- Layout = "Master.cshtml";
- }
- <div class="container">
- <div class="row">
- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 text-page">
- </div>
- <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9 text-page">
- @using (Html.BeginUmbracoForm("AddProduct", "Test", new { model = Model }))
- {
- @Html.EditorForModel()
- <input type="submit" />
- }
- @foreach (var category in Category.All())
- {
- <div class="table-container">
- <h3 class="category-title">@category.Name</h3>
- <table class="table-shop table table-hover table-responsive">
- <tr>
- <td style="min-width:100px;">Artikel Nr.</td>
- <td>Product Naam</td>
- <td style="min-width:100px;">Prijs in €</td>
- <td style="min-width: 80px;"></td>
- </tr>
- @foreach (var product in category.Products)
- {
- <tr>
- <td style="min-width:100px;">@product.Sku</td>
- <td>@product.Name</td>
- <td style="min-width:100px;">
- @foreach (var price in product.ProductPrices)
- {
- <span>@price.Price.Amount</span>
- }
- </td>
- <td style="min-width: 80px;"><a href='@UCommerce.Api.TransactionLibrary.AddToBasket(1, "Artikel 23")'><i class="fa fa-shopping-cart"></i></a></td>
- </tr>
- }
- </table>
- </div>
- }
- @*<div class="row">
- @foreach (var product in Category.All().Where(x => x.Categories))
- {
- <div class="col-md-4">
- <div class="product-container">
- <h4>@product.Name</h4>
- <span>@product.Sku</span>
- @foreach (var price in product.ProductPrices)
- {
- <span>@price.Price.Amount</span>
- }
- </div>
- </div>
- }
- </div>
- <div class="row">
- @foreach (var product in Product.All().Where(x => x.ProductDefinition.Name == "Snoep"))
- {
- <div class="col-md-4">
- <div class="product-container">
- <h4>@product.Name</h4>
- <span>@product.Sku</span>
- @foreach (var price in product.ProductPrices)
- {
- <span>@price.Price.Amount</span>
- }
- </div>
- </div>
- }
- </div>*@
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement