投稿総数:
46
カルマ:
264
参加:
2017/11/20
ロケーション:
United Kingdom
Hi, I am using NopCommerce version 3.90. I have added an <li> item to the headerlinks.cshtml file for the comparison list. i would like to include the number of items in the comparison list next to the text. e.g. "Comparison List (12)". Has anyone figured out a way to do this? Thanks
投稿総数:
392
カルマ:
5323
参加:
2014/04/22
ロケーション:
India
What error are you getting?
投稿総数:
46
カルマ:
264
参加:
2017/11/20
ロケーション:
United Kingdom
This is the error that i get: Compiler Error Message: CS0103: The name 'EngineContext' does not exist in the current context thanks
投稿総数:
392
カルマ:
5323
参加:
2014/04/22
ロケーション:
India
Add the following lines at the top of the page @using Nop.Core.Infrastructure @using Nop.Services.Catalog
投稿総数:
46
カルマ:
264
参加:
2017/11/20
ロケーション:
United Kingdom
Hi, Thanks for that, i still have an error. In visual studio it says 'IEngine.Resolve<T>()' is a method, which is not valid in the given context
投稿総数:
392
カルマ:
5323
参加:
2014/04/22
ロケーション:
India
That's weird. Can you share the entire view file?
投稿総数:
1
カルマ:
5
参加:
2020/09/16
ロケーション:
India
This code works for me, But count refreshing only after reload page, while adding product to compare list from products home page