Tổng Bài đăng:
46
Karma:
264
Đã tham gia:
20/11/2017
Vị trí:
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
Tổng Bài đăng:
392
Karma:
5323
Đã tham gia:
22/04/2014
Vị trí:
India
What error are you getting?
Tổng Bài đăng:
46
Karma:
264
Đã tham gia:
20/11/2017
Vị trí:
United Kingdom
This is the error that i get: Compiler Error Message: CS0103: The name 'EngineContext' does not exist in the current context thanks
Tổng Bài đăng:
392
Karma:
5323
Đã tham gia:
22/04/2014
Vị trí:
India
Add the following lines at the top of the page @using Nop.Core.Infrastructure @using Nop.Services.Catalog
Tổng Bài đăng:
46
Karma:
264
Đã tham gia:
20/11/2017
Vị trí:
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
Tổng Bài đăng:
392
Karma:
5323
Đã tham gia:
22/04/2014
Vị trí:
India
That's weird. Can you share the entire view file?
Tổng Bài đăng:
1
Karma:
5
Đã tham gia:
16/09/2020
Vị trí:
India
This code works for me, But count refreshing only after reload page, while adding product to compare list from products home page