nopcommerce

how to run SmartStore.NET in localpc

為{幸葍}努か 提交于 2019-12-04 20:43:54
How do I start smartstore.net in Visual Studio localhost? I downloaded the GitHub code and opened project file from SmartStoreNET-2.x\src\SmartStoreNET.sln The download link is: https://github.com/liuzengjun/smartstore prtk here some steps for build project 1.open you project/solution in visual studio 13 or you can use visual studio 12 but make sure that it must be fully updated because solution uses the latest version of mvc and all other controls. 2.build SmartStore.Web.Framework. 3.build SmartStore.Web 4.build SmartStore.Services 5.build SmartStore.Data 6.build SmartStore.Core 7.build

When we inject IWorkContext in WebStoreContext its gives error

浪尽此生 提交于 2019-12-04 17:12:52
I am trying to inject IWorkContext in WebStoreContext or StoreService . but when we run the project it give's errors. Error on ContainerManager.cs(line no 113) An unhandled exception of type 'System.StackOverflowException' occurred in Autofac.dll example private readonly IWorkContext _workContext = EngineContext.Current.Resolve<IWorkContext>(); Or private readonly IWorkContext _workContext; public ctor(IWorkContext workContex) { this._workContex = workContext; } Circular references are not allowed. WorkContext already depends on IStoreContext. You cannot make StoreContext already depends on

Razor HTML Helpers giving intellisense errors in Nop Commerce Plugin

拜拜、爱过 提交于 2019-12-04 15:01:33
问题 I am writing a plugin for Nop Commerce and my HTML helpers are giving me intellisense errors. I get red lines underlining them and the errors: Feature 'extension method' cannot be used because it is not part of the ISO-2 C# language specification Feature 'lambda expression' cannot be used because it is not part of the ISO-2 C# language specification Here is my code: @{ Layout = ""; } @model Nop.Plugin.Widgets.HelloWorld.Models.ConfigurationModel @using Nop.Web.Framework; @Html.Action(

Authentication approach to be use in asp.net Web api and angular js

此生再无相见时 提交于 2019-12-04 12:54:16
I am creating 1 website using Web api and angular js and i am so much confused about Authentication to be used in my web site. I have created one login.js in which there would be my Login method which will post my Username/Emailid and password to my Web Api and the method in web api will authenticate that user. Code: $scope.Login() { $.post("api/Authentication/Login",Username,Password) { } } Web api code: [Route] Public Task<object> Login([FromBody] username,password) { //method to authenticate user from database. //Now the tricky parts comes like after authenticating user should i //just

The request was aborted: Could not create SSL/TLS secure channel.System.Net.WebException

混江龙づ霸主 提交于 2019-12-04 12:48:35
问题 I am using PayPalStandard plugin of NopCommerce. When I placed the order & make payment with paypalstandard plugin after successful payment on paypal, it redirects to merchants site. At that time it gives error: The request was aborted: Could not create SSL/TLS secure channel. Also I am using Sandbox account of Paypal for testing. It throws error from this line: var sw = new StreamWriter(req.GetRequestStream() Here is code below: var req = (HttpWebRequest)WebRequest.Create(GetPaypalUrl());

Multiple MVC projects in a single solution

会有一股神秘感。 提交于 2019-12-04 10:16:08
问题 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 possible to use Controllers/Models etc. in different MVC projects? I would also like one main project and multiple sub MVC projects. How can this be done while sharing components? Any ideas? pointers? Note: Not interested in Areas. 回答1: Yes it is. See

How to display indian rupee symbol in iText PDF in MVC3

余生长醉 提交于 2019-12-04 03:58:42
问题 I want to display Special Character India Rupee Symbol in iTextPDf, My Code: Font fontRupee = FontFactory.GetFont("Arial", "₹", true, 12); Chunk chunkRupee = new Chunk(" ₹ 5410", font3); 回答1: It's never a good idea to store a Unicode character such as ₹ in your source code. Plenty of things can go wrong if you do so: Somebody can save the file using an encoding different from Unicode, for instance, the double-byte rupee character can be interpreted as two separate bytes representing two

HTML to nopCommerce theme

不想你离开。 提交于 2019-12-03 13:52:22
I am new to nopCommerce and trying to make HTML to theme on it I googled lots of things but not able to get proper way to create customized theme nopCommerce, can any one help, Thanks in advance wooncherk The easiest way: Copy the folder at ~/Themes/DarkOrange to ~/Themes/YOUR_THEME . Modify the corresponding items in theme.config. If you need to change any view, copy that view from ~/Views/SUB_FOLDER/FILE_NAME.cshtml and paste it under ~/Themes/YOUR_THEME/SUB_FOLDER/FILE_NAME.cshtml . For example, if you want to change the code in ~/Views/Shared/_ColumnsOne.cshtml , copy that file and paste

Razor HTML Helpers giving intellisense errors in Nop Commerce Plugin

假如想象 提交于 2019-12-03 09:14:10
I am writing a plugin for Nop Commerce and my HTML helpers are giving me intellisense errors. I get red lines underlining them and the errors: Feature 'extension method' cannot be used because it is not part of the ISO-2 C# language specification Feature 'lambda expression' cannot be used because it is not part of the ISO-2 C# language specification Here is my code: @{ Layout = ""; } @model Nop.Plugin.Widgets.HelloWorld.Models.ConfigurationModel @using Nop.Web.Framework; @Html.Action("StoreScopeConfiguration", "Setting", new { area = "Admin" }) @using (Html.BeginForm()) { <fieldset> <legend>

Display Google Analytics data on my web site?

五迷三道 提交于 2019-12-03 05:41:30
问题 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 after searching the web I found some examples using JavaScript, but I couldn't find a good tutorial for this. I have also looked into integrating Google Analytics with C#, and I found this example: http://biasecurities.com/2012/02/using-the-google