Fixed "The model item passed into the ViewDataDictionary is of type 'Smartstore.Web.Models.Cart.ShoppingCartModel', but this ViewDataDictionary instance requires a model item of type 'Smartstore.Web.Models.Cart.WishlistModel'."
This commit is contained in:
parent
29a5c0d9f9
commit
0837df2213
@ -810,7 +810,8 @@ namespace Smartstore.Web.Controllers
|
||||
}
|
||||
|
||||
var wishlist = await _shoppingCartService.GetCartAsync(pageCustomer, ShoppingCartType.Wishlist, storeId);
|
||||
var model = await wishlist.MapAsync(!customerGuid.HasValue);
|
||||
var model = new WishlistModel();
|
||||
await wishlist.MapAsync(model, !customerGuid.HasValue);
|
||||
|
||||
NotifyInfo(T("Products.SelectProducts"), true);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user