Questions tagged [nopcommerce]

Open source E-commerce Shopping Cart Solution based on ASP.NET MVC and Entity Framework. Notable differentiators are multi-store and multi-vendor capabilities.

nopCommerce is an open source e-commerce solution that is .NET 6 based (C#) with a MS SQL 2008 (or above) or MS SQL Compact 4.0 (or above) backend database. It is built on ASP.NET Core MVC (targeting .NET 6) with Linq2Db (Entity Framework for 4.2 or below) Code First approach. Notable differentiators are multi-store and multi-vendor capabilities.

The homepage is http://www.nopcommerce.com.

The official nopCommerce discussion forum is https://www.nopcommerce.com/en/boards.

The GitHub page is https://github.com/nopSolutions/nopCommerce

1275 questions
28
votes
5 answers

Display Google Analytics data on my web site?

I'm trying to figure out a way to display data collected from Google Analytics on my web site. I'm using NopCommerce, and I want to display this information/statistics in a view in the Admin Section. There might be many ways to achieve this, and…
22
votes
5 answers

ASP.NET CORE Hosting - Error Internal Server Error Handler "aspNetCore" has a bad module "AspNetCoreModule" in its module list

I'm hosting ASP.NET Core 2 site and getting below error message. HTTP Error 500.21 - Internal Server Error Handler "aspNetCore" has a bad module "AspNetCoreModule" in its module list My application is using nopCommerce 4.00 and server side already…
21
votes
4 answers

Add Meta tag in View page using MVC-5

I have two meta tag in _Layout.cshtml master page and now i want to add meta tags in someone.cshtml view page. and i also try with this code put in _layout.cshtml master page @RenderSection("metatags",false); put in someone.cshtml like @section…
Jatin Gadhiya
  • 706
  • 2
  • 7
  • 24
19
votes
2 answers

When using services.AddHttpClient, where is the HttpClient created?

I am trying to understand how HttpClient has been implemented for Captcha in Nop Commerce and for the sake of testability how creating new instance of HttpClient has been manage in Nop Commerce project. I came across ValidateCaptchaAttribute and…
I Love Stackoverflow
  • 6,738
  • 20
  • 97
  • 216
18
votes
5 answers

How to set a default page on an MVC app?

I would like to have my base URL go to a specific category of an online store (a NopCommerce online store if that makes a difference). The URL of the category is: http://myUrl.com/c/6 After reading a few posts including Scott Gutherie's post about…
Abe Miessler
  • 82,532
  • 99
  • 305
  • 486
16
votes
1 answer

Multiple MVC projects in a single solution

I have seen in NopCommerce project that there is a solution and there are multiple MVC projects within the solution. I have some questions about it such as : How is it possible to share a main layout, or use different layout on demand? How is it…
DarthVader
  • 52,984
  • 76
  • 209
  • 300
13
votes
4 answers

Debugging Entity Framework SQL statements

I am having a weird pattern of response time when using the Entity Framework for SQL communication. This is from my web host: This is from my local server: It's the increase in response time I am worried about. I have narrowed the problem down to…
Anders
  • 567
  • 1
  • 7
  • 23
13
votes
4 answers

Is there an equivalent to "HttpContext.Response.Write" in Asp.Net Core 2?

I'm trying to append some HTML and Javascript content on page using ActionFilter in Asp.Net Core 2. In MVC, it's working with filterContext.HttpContext.Response.Write(stringBuilder.ToString()); but in Core it not working. I tried to implement with…
Raju Paladiya
  • 778
  • 2
  • 12
  • 35
13
votes
5 answers

Override a virtual method in a partial class

I am currently working with the nopCommerce source code and trying my best to avoid editing the source at all, but instead using partial classes and plugins that are separate from the source code, should we ever need to upgrade versions. I want to…
DevDave
  • 6,700
  • 12
  • 65
  • 99
10
votes
6 answers

Why repository pattern is extensively used in entity framework as though it is complex?

I am creating a demo project which contains crud operations using a repository pattern and dependency injection. This is my structure: Approach 1 (very popular, used by many developers) My repository interface: public partial interface…
10
votes
1 answer

Implementing Google Analytics in Mvc4/C#?

I’m trying to implement Google Analytics in my MVC website. First, I tried creating a GA account. Unfortunately, I’m developing locally on localhost which isn't a valid site URL, but I found a fix that will hopefully work here…
WhoAmI
  • 1,188
  • 6
  • 17
  • 47
10
votes
1 answer

A lambda expression with a statement body cannot be converted to an expression tree in nopCommerce

I try to create a linq join query in the nopCommerce 3.0. i join two table in linq and write the code successfully. but the visual studio intellicence shows the error like A lambda expression with a statement body cannot be converted to an…
Ragesh P Raju
  • 3,879
  • 14
  • 101
  • 136
9
votes
5 answers

How to add new tables to NOPCommerce v2.4

I am new to NopCommerce v2.4 and wondering where do I write my code (by creating new model in admin or nop.web section)
user1299582
  • 91
  • 1
  • 3
8
votes
2 answers

NopCommerce customization

I am starting an eCommerce website and decided to start with NopCommerce V4.00. I have developed other websites using WordPress and other CMS systems along with C#, .NET, MVC etc. but I am not familiar with NopCommerce and I am looking for some…
Andy Braham
  • 9,594
  • 4
  • 48
  • 56
8
votes
4 answers

EF, ASP MVC + dependency injection. Issues with multiple concurrent requests and DB connectivity

I'm working on a NopCommerce-based project which uses ASP MVC, Autofac and Entity Framework. I'm having exceptions which happen when calling a method on a service from inside an MVC Route which will make a call to the DB using EF. During dev,…
1
2 3
84 85