File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed
src/Modules/SimplCommerce.Module.Catalog Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,6 @@ public class ProductThumbnail
3232
3333 public string ThumbnailUrl { get ; set ; }
3434
35- public int NumberVariation { get ; set ; }
36-
3735 public int ReviewsCount { get ; set ; }
3836
3937 public double ? RatingAverage { get ; set ; }
@@ -56,7 +54,6 @@ public static ProductThumbnail FromProduct(Product product)
5654 IsAllowToOrder = product . IsAllowToOrder ,
5755 IsCallForPricing = product . IsCallForPricing ,
5856 ThumbnailImage = product . ThumbnailImage ,
59- NumberVariation = product . ProductLinks . Count ,
6057 ReviewsCount = product . ReviewsCount ,
6158 RatingAverage = product . RatingAverage
6259 } ;
Original file line number Diff line number Diff line change 3232 </ul >
3333 </div >
3434 </a >
35- <div class =" buttons" >
36- @if (Model .NumberVariation > 0 || ! Model .IsAllowToOrder || Model .StockQuantity <= 0 )
37- {
38- <a href =" ~/@Model.SeoTitle" class =" btn btn-add-cart-style" role =" button" ><i class =" fa fa-shopping-cart" ></i > @Localizer ["View options "]</a >
39- }
40- else
41- {
42- <form class =" inline" >
43- <input type =" hidden" name =" productId" value =" @Model.Id" />
44- <button type =" button" class =" btn btn-add-cart-style btn-add-cart" role =" button" ><i class =" fa fa-shopping-cart" ></i > @Localizer ["Add to cart "]</button >
45- </form >
46- }
47- </div >
4835</div >
You can’t perform that action at this time.
0 commit comments