Advertisement
Guest User

Untitled

a guest
Dec 5th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. @using ContentModels = Umbraco.Web.PublishedContentModels;
  2. @using UCommerce.EntitiesV2
  3. @inherits Umbraco.Web.Mvc.UmbracoViewPage<dynamic>
  4.  
  5. @{
  6. Layout = "Master.cshtml";
  7. }
  8.  
  9.  
  10. <div class="container">
  11. <div class="row">
  12. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 text-page">
  13.  
  14. </div>
  15. <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9 text-page">
  16. @using (Html.BeginUmbracoForm("AddProduct", "Test", new { model = Model }))
  17. {
  18. @Html.EditorForModel()
  19. <input type="submit" />
  20. }
  21.  
  22. @foreach (var category in Category.All())
  23. {
  24. <div class="table-container">
  25. <h3 class="category-title">@category.Name</h3>
  26. <table class="table-shop table table-hover table-responsive">
  27. <tr>
  28. <td style="min-width:100px;">Artikel Nr.</td>
  29. <td>Product Naam</td>
  30. <td style="min-width:100px;">Prijs in €</td>
  31. <td style="min-width: 80px;"></td>
  32. </tr>
  33.  
  34. @foreach (var product in category.Products)
  35. {
  36. <tr>
  37. <td style="min-width:100px;">@product.Sku</td>
  38. <td>@product.Name</td>
  39. <td style="min-width:100px;">
  40. @foreach (var price in product.ProductPrices)
  41. {
  42. <span>@price.Price.Amount</span>
  43. }
  44. </td>
  45. <td style="min-width: 80px;"><a href='@UCommerce.Api.TransactionLibrary.AddToBasket(1, "Artikel 23")'><i class="fa fa-shopping-cart"></i></a></td>
  46. </tr>
  47. }
  48.  
  49. </table>
  50. </div>
  51. }
  52.  
  53. @*<div class="row">
  54. @foreach (var product in Category.All().Where(x => x.Categories))
  55. {
  56. <div class="col-md-4">
  57. <div class="product-container">
  58. <h4>@product.Name</h4>
  59. <span>@product.Sku</span>
  60. @foreach (var price in product.ProductPrices)
  61. {
  62. <span>@price.Price.Amount</span>
  63. }
  64. </div>
  65. </div>
  66. }
  67. </div>
  68. <div class="row">
  69. @foreach (var product in Product.All().Where(x => x.ProductDefinition.Name == "Snoep"))
  70. {
  71. <div class="col-md-4">
  72. <div class="product-container">
  73. <h4>@product.Name</h4>
  74. <span>@product.Sku</span>
  75. @foreach (var price in product.ProductPrices)
  76. {
  77. <span>@price.Price.Amount</span>
  78. }
  79. </div>
  80. </div>
  81. }
  82. </div>*@
  83. </div>
  84. </div>
  85. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement