nopcommerce

How To Avoid TempTable in Union All when queries contain DIFFERENT order by and inner join?

百般思念 提交于 2019-12-24 18:42:26
问题 What i am trying to do is always sending Product with 0 quantity to the end of an already sorted temp Table without losing current sorting (as i described in the following question How to send Zero Qty Products to the end of a PagedList<Products>?) I have one Sorted temptable which is filled (it is sorted by what user has selected like Alphabetic , by Price or by Newer product,sorting is based identity id) : CREATE TABLE #DisplayOrderTmp ( [Id] int IDENTITY (1, 1) NOT NULL, [ProductId] int

How to load records from Setting table of NopCommerce v3.5

China☆狼群 提交于 2019-12-24 11:56:24
问题 I'm trying to use NopCommerce v3.5 and trying to replace Autofac with Ninject v3.2. I've been searching how NopCommerce load records from Setting table, it's still not clear. And if ever, I want to load the settings using Ninject. Thank you for any help. Here's a sample code in Nop.web.Framework.DependencyRegistrar.cs builder.RegisterType<SettingService>().As<ISettingService>() .WithParameter(ResolvedParameter.ForNamed<ICacheManager>("nop_cache_static")) .InstancePerLifetimeScope(); builder

Why is it not recommended to host receive endpoints in a web application using MassTransit?

隐身守侯 提交于 2019-12-24 01:53:53
问题 I am working on an ASP.NET MVC 5 application (based on nopCommerce). I want to use MassTransit to communicate with another application that is used for inventory management, billing, etc. It would be easier if I could add receive endpoints directly into the web application and not have to create a Windows service for that. But the MassTransit documentation says it is not recommended and there is no explanation as to why that is. MassTransit in a web application Configuring a bus in a web site

How to override a nopcommerce view file with a view file inside the plugin?

北慕城南 提交于 2019-12-23 12:45:00
问题 I am trying to override the nopcommerce View that is located in: Nop.Admin/Views/Category/Tree.cshtml with a view that I have developed in my plugin folder: Views/Misc/Tree.cshtml How can I do it? 回答1: Try this detailed article I've written: 3 Ways to Display Views in Your nopCommerce Plugins (Embedded Resource, Theme Override and Custom View Engine) 回答2: @wooncherk's Custom View Engine is excellent in preparing our Views to be overriden with ease in the future. However it falls short when it

“TypeError: $(…).magnificPopup is not a function” in nopCommerce 3.40

半城伤御伤魂 提交于 2019-12-22 18:01:59
问题 The following code displays picture thumb nails and attaches a magnificPopup event. it also embeds a picture within a picture. This all worked a few days ago but now broken it somehow and now all i get is a js type error. I have tried fiddling around with jQuery.noConflict() even though i have not added any new libs or updated old ones but that of course did nothing. i know that the problem has to do with magnificPopup somehow because if i simply remove the script from the code everything

When we inject IWorkContext in WebStoreContext its gives error

一笑奈何 提交于 2019-12-21 20:57:04
问题 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; } 回答1: Circular references are

Understanding how Nop Commerce settings are loaded from the database

拈花ヽ惹草 提交于 2019-12-21 12:55:23
问题 I am working with Nop Commerce and wondering if someone can please help me with my confusion. I have debugged the code many times trying to find out how the settings are loaded on start up of the web application. I just don't get it! All settings classes implement the ISettings interface. Lets take customer settings for example.. I have found out that it is represented by the CustomerSettings class. In the database there is a Setting table . Data for customer settings looks somethng like this

HTML to nopCommerce theme

扶醉桌前 提交于 2019-12-21 04:14:46
问题 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 回答1: 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

HTML to nopCommerce theme

百般思念 提交于 2019-12-21 04:14:11
问题 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 回答1: 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

How to solve No parameterless constructor defined for this object error in Mvc?

雨燕双飞 提交于 2019-12-20 05:41:40
问题 I am creating one demo application to learn how to use repository pattern for performing Insert operation.I am using Nop Commerce**(http://www.nopcommerce.com) **code for repository pattern Error :No parameterless constructor defined for this object I have seen this link:MVC: No parameterless constructor defined for this object This is my Structure: My Repository interface : public partial interface IRepository<T> { void Insert(T entity); } My Service Layer : public partial interface