Skip to content

Commit b69804c

Browse files
Mobile Theme: Show prices according to selected variant value, display of delivery time
1 parent 9fae3be commit b69804c

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

changelog.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Release Notes
1+
# Release Notes
22

33
## SmartStore.NET 2.2
44

@@ -60,7 +60,8 @@
6060
* #634 Bundle price in list should not differ from price in details if there is only one bundle item with one attribute
6161
* Do not copy associated product when copying a bundle product
6262
* Fixed: Product with inactive attribute combination could be moved onto wishlist, copied to cart and be ordered
63-
63+
* Mobile Theme: Show prices according to selected variant value, display of deliverytime
64+
* Bundles: Display base price according to Catalog Setting > Product Detail > Display Base Price
6465

6566
## SmartStore.NET 2.1.1
6667

src/Presentation/SmartStore.Web/Views/Product/_AddToCart.Mobile.cshtml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@
55
<div class="base-price muted @(!Model.IsBasePriceEnabled ? "hide fade" : "")">
66
@Model.BasePriceInfo
77
</div>
8+
9+
@if (Model.DisplayDeliveryTime && Model.IsShipEnabled)
10+
{
11+
<div class="delivery-time">
12+
<span class="delivery-time-label">@T("Products.DeliveryTime")</span>
13+
14+
@if (Model.DisplayDeliveryTimeAccordingToStock)
15+
{
16+
<span class="delivery-time-color" style="background-color:@(Model.DeliveryTimeHexValue);@(Model.DeliveryTimeHexValue.HasValue() ? "" : "display:none;")" title="@Model.DeliveryTimeName"></span>
17+
<span class="delivery-time-value">@Model.DeliveryTimeName</span>
18+
}
19+
else
20+
{
21+
<span class="delivery-time-color" style="display: none;" title="@Model.StockAvailability"></span>
22+
<span class="delivery-time-value">@Model.StockAvailability</span>
23+
}
24+
</div>
25+
}
26+
827
<div class="add-to-cart">
928
@if (Model.AddToCart.CustomerEntersPrice)
1029
{

src/Presentation/SmartStore.Web/Views/Product/_Price.Mobile.cshtml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,12 @@
2929
{
3030
@T("Products.Price")<text>:</text>
3131
}
32-
33-
34-
<span
35-
@if (String.IsNullOrWhiteSpace(Model.PriceWithDiscount))
36-
{
37-
<text>class="product-price"</text>
38-
}
39-
>
32+
33+
34+
<span @if (String.IsNullOrWhiteSpace(Model.PriceWithDiscount)) { <text> class="product-price product-price-without-discount" </text> }>
4035
@Html.Raw(Model.Price)
4136
</span>
42-
43-
44-
37+
4538
if (!String.IsNullOrWhiteSpace(Model.PriceWithDiscount))
4639
{
4740
<br />

0 commit comments

Comments
 (0)