File tree Expand file tree Collapse file tree 5 files changed +28
-30
lines changed
src/Presentation/SmartStore.Web Expand file tree Collapse file tree 5 files changed +28
-30
lines changed Original file line number Diff line number Diff line change @@ -197,9 +197,9 @@ public ProductDetailsModel PrepareProductDetailsPageModel(
197
197
HasSampleDownload = product . IsDownload && product . HasSampleDownload ,
198
198
IsCurrentCustomerRegistered = _services . WorkContext . CurrentCustomer . IsRegistered ( ) ,
199
199
IsAssociatedProduct = isAssociatedProduct ,
200
- CompareEnabled = _catalogSettings . CompareProductsEnabled && ( product . VisibleIndividually || ! isAssociatedProduct ) ,
201
- TellAFriendEnabled = _catalogSettings . EmailAFriendEnabled && ( product . VisibleIndividually || ! isAssociatedProduct ) ,
202
- AskQuestionEnabled = _catalogSettings . AskQuestionEnabled && ( product . VisibleIndividually || ! isAssociatedProduct )
200
+ CompareEnabled = ! isAssociatedProduct && _catalogSettings . CompareProductsEnabled ,
201
+ TellAFriendEnabled = ! isAssociatedProduct && _catalogSettings . EmailAFriendEnabled ,
202
+ AskQuestionEnabled = ! isAssociatedProduct && _catalogSettings . AskQuestionEnabled
203
203
} ;
204
204
205
205
// Social share code
@@ -1075,8 +1075,7 @@ public ProductDetailsModel PrepareProductDetailModel(
1075
1075
model . AddToCart . DisableBuyButton = product . DisableBuyButton || ! _services . Permissions . Authorize ( StandardPermissionProvider . EnableShoppingCart ) ;
1076
1076
model . AddToCart . DisableWishlistButton = product . DisableWishlistButton
1077
1077
|| ! _services . Permissions . Authorize ( StandardPermissionProvider . EnableWishlist )
1078
- || product . ProductType == ProductType . GroupedProduct
1079
- || ( product . ParentGroupedProductId > 0 && ! product . VisibleIndividually ) ;
1078
+ || product . ProductType == ProductType . GroupedProduct ;
1080
1079
1081
1080
if ( ! displayPrices )
1082
1081
{
Original file line number Diff line number Diff line change 18
18
19
19
this . createGallery ( opts . galleryStartIndex ) ;
20
20
21
-
22
21
// Update product data and gallery
23
22
$ ( el ) . find ( ':input' ) . change ( function ( e ) {
24
23
var ctx = $ ( this ) . closest ( '.update-container' ) ;
42
41
}
43
42
} ) ;
44
43
}
45
-
46
44
}
47
45
} ) ;
48
46
} ) ;
Original file line number Diff line number Diff line change 18
18
<div class =" pd-variant-picture img-center-container" >
19
19
@if (Model .DetailsPictureModel .DefaultPictureModel .ImageUrl .HasValue ())
20
20
{
21
- <img src =" @Model.DetailsPictureModel.DefaultPictureModel.ImageUrl"
21
+ <img class =" pd-dyn-thumb"
22
+ src =" @Model.DetailsPictureModel.DefaultPictureModel.ImageUrl"
22
23
alt =" @Model.DetailsPictureModel.AlternateText"
23
24
title =" @Model.DetailsPictureModel.DefaultPictureModel.Title" />
24
25
}
Original file line number Diff line number Diff line change 22
22
<div class =" pd-bundle-item-top row no-space" >
23
23
@if (item .DetailsPictureModel .DefaultPictureModel .ImageUrl .HasValue () && ! item .BundleItem .HideThumbnail )
24
24
{
25
- <div class =" pd-bundle-item-image col-xs pd-dyn-thumb " style =" min-width : @(item.ThumbDimensions)px ; max-width : @(item.ThumbDimensions)px ;" >
25
+ <div class =" pd-bundle-item-image col-xs" style =" min-width : @(item.ThumbDimensions)px ; max-width : @(item.ThumbDimensions)px ;" >
26
26
<img src =" @item.DetailsPictureModel.DefaultPictureModel.ImageUrl"
27
- class =" img-fluid"
27
+ class =" img-fluid pd-dyn-thumb "
28
28
alt =" @item.DetailsPictureModel.AlternateText"
29
29
title =" @item.DetailsPictureModel.DefaultPictureModel.Title" />
30
30
</div >
Original file line number Diff line number Diff line change 137
137
}
138
138
</aside >
139
139
</section >
140
- }
141
- </div >
142
140
143
- @if (Model .ProductType == ProductType .GroupedProduct )
144
- {
145
- <section class =" pd-section pd-section-variants" >
146
- @if (Model .AssociatedProducts .Count == 0 )
141
+ if (Model .ProductType == ProductType .GroupedProduct )
147
142
{
148
- <div class =" pd-no-associated-products alert alert-warning" >
149
- @T( " Products.NoAssociatedProducts" )
150
- </div >
151
- }
152
- else
153
- {
154
- foreach (var product in Model .AssociatedProducts )
155
- {
156
- var dataDictProduct = new ViewDataDictionary ();
157
- dataDictProduct .TemplateInfo .HtmlFieldPrefix = string .Format (" product_{0}" , product .Id );
158
- Html .RenderPartial (" Product.AssociatedProduct" , product , dataDictProduct );
159
- }
143
+ < section class = " pd-section pd-section-variants" >
144
+ @if (Model .AssociatedProducts .Count == 0 )
145
+ {
146
+ < div class = " pd-no-associated-products alert alert-warning" >
147
+ @T (" Products.NoAssociatedProducts" )
148
+ < / div >
149
+ }
150
+ else
151
+ {
152
+ foreach (var product in Model .AssociatedProducts )
153
+ {
154
+ var dataDictProduct = new ViewDataDictionary ();
155
+ dataDictProduct .TemplateInfo .HtmlFieldPrefix = string .Format (" product_{0}" , product .Id );
156
+ Html .RenderPartial (" Product.AssociatedProduct" , product , dataDictProduct );
157
+ }
158
+ }
159
+ < / section >
160
160
}
161
- </ section >
162
- }
161
+ }
162
+ </ div >
163
163
164
164
<!-- Bottom Content: Full Description, Specification, Review etc. -->
165
165
<section class =" pd-section pd-section-bottom" >
You can’t perform that action at this time.
0 commit comments