Advertisement
Guest User

Untitled

a guest
Mar 1st, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. @using Access.Feature.Shop.Models
  2. @inherits Glass.Mapper.Sc.Web.Mvc.GlassView<Access.Feature.Shop.ViewModels.ProductListingViewModel>
  3.  
  4.  
  5. <div class="standard-product-list ecommerce" id="ecommerce">
  6.  
  7. <div class="standard-product-list__inner">
  8.  
  9. @if (Model.Results != null)
  10. {
  11. foreach (var product in Model.Results.Products)
  12. {
  13.  
  14. <div class="standard-product-list__item">
  15.  
  16. @if (product.MainImage != null)
  17. {
  18. <img src="@product.MainImage.Src" class="standard-product-list__item-image" alt="@product.MainImage.Alt" />
  19. }
  20. <h3 class="standard-product-list__item-heading">@product.Name</h3>
  21. @if (product.Price != null)
  22. {
  23. <span class="standard-product-list__item-price">£@product.Price.Amount</span>
  24. }
  25. <p>@Html.Raw(@product.FullDescription)</p>
  26.  
  27. <product-cart-btns :key="ecommerceCommonData.updateKey" product-id="@product.Id.ToString()" product-price="@product.Price.Amount"></product-cart-btns>
  28. </div>
  29.  
  30. }
  31.  
  32.  
  33.  
  34.  
  35. }
  36.  
  37. <!-- this is where we get injected -->
  38. <div class="standard-product-list__item" v-for="item in ecommerceCommonData.moreItems" v-html="item"></div>
  39. <!-- this is where we get injected end -->
  40.  
  41.  
  42.  
  43. </div>
  44. @if (Model.ShowMoreLink)
  45. {
  46. <a class="load-more-products" v-show="ecommerceCommonData.showLoadMoreBtn" v-on:click="loadMore()" href="@Model.NextPageLink">View More</a>
  47. }
  48. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement