Skip to content

Commit b08ed02

Browse files
committed
Fixes the delivery time in the order notifications may differ from delivery time on the product detail page
1 parent cce10e4 commit b08ed02

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
* #1449 IgnoreCharges of shipping methods is not working if a localized name is specified
4242
* Fixes "The object does not support the property or method 'startsWith'" on product edit page.
4343
* Wallet: Fixes "Child actions are not allowed to perform redirect actions" when there are cart warnings
44+
* Fixes the delivery time in the order notifications may differ from delivery time on the product detail page
4445

4546

4647
## SmartStore.NET 3.1.0

src/Libraries/SmartStore.Services/Messages/MessageModelProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ protected virtual object CreateModelPart(Product part, MessageContext messageCon
566566

567567
if (shoppingCartSettings.ShowDeliveryTimes && part.IsShipEnabled)
568568
{
569-
if (deliveryTimeService.GetDeliveryTimeById(part.DeliveryTimeId ?? 0) is DeliveryTime dt)
569+
if (deliveryTimeService.GetDeliveryTime(part) is DeliveryTime dt)
570570
{
571571
m["DeliveryTime"] = new Dictionary<string, object>
572572
{

0 commit comments

Comments
 (0)