nopcommerce

No context type was found in the assembly EF6

大兔子大兔子 提交于 2019-12-12 16:36:42
问题 I'm working on a nopCommerce based project. In order to update custom entity I want to enable EF migrations. So I run following command: Enable-Migrations -StartUpProjectName nop.web -ContextProjectName Nop.Plugin.Payments.Deposit -verbose and get the error: Using StartUp project 'Nop.Web'. System.Data.Entity.Migrations.Infrastructure.MigrationsException: No context type was found in the assembly 'Nop.Plugin.Payments.Deposit'. at System.Data.Entity.Utilities.TypeFinder.FindType(Type baseType,

Add Submenu in admin panel in NopCommerce 3.8

做~自己de王妃 提交于 2019-12-12 16:00:40
问题 I am learning Nopcommerce from the tutorial provided by Pluralsight. When it comes to adding menu for the plugin in the admin panel it is different with the version 3.5 and 3.8. There is no public SiteMapNode BuildMenuItem() instead we have to use public void ManageSiteMap(SiteMapNode rootNode) . I have used ManageSiteMap according to the documentation provided by NopCommerce How to add a menu item into the administration area from a plugin, but by using that code i was only able to show the

How to return plain/text robots.txt in AngularJS

こ雲淡風輕ζ 提交于 2019-12-11 17:13:42
问题 I want to return plain/text to http://domain.com/robots.txt asp.net mvc Common controller public ActionResult RobotsTextFile() { var disallowPaths = new List<string>() { "/bin/", "/content/files/", "/content/files/exportimport/", "/country/getstatesbycountryid", "/install", "/setproductreviewhelpfulness", }; var localizableDisallowPaths = new List<string>() { "/addproducttocart/catalog/", "/addproducttocart/details/", "/boards/forumwatch", "/deletepm", "/emailwishlist", "/inboxupdate", ... };

MVC3 - render view that is not a method in a controller

不想你离开。 提交于 2019-12-11 14:36:17
问题 I don't know how to best describe my requirement, but here goes. I'm trying to render a view from the following controller/model in a nopCommerce application: CustomerController.cs snippet: [NonAction] protected CustomerNavigationModel GetCustomerNavigationModel(Customer customer) { var model = new CustomerNavigationModel(); model.HideAvatar = !_customerSettings.AllowCustomersToUploadAvatars; model.HideRewardPoints = !_rewardPointsSettings.Enabled; model.HideForumSubscriptions = !

AppHarbor NopCommerce running issue

雨燕双飞 提交于 2019-12-11 12:11:38
问题 I uploaded nopcommerce solution to appharbor (using this method Can't build notcommerce project under appharbor) and solution succesfully builded, but I receiving 403 error - Forbidden: Access is denied when trying to open page(Allow write-access to file system is set to true). Thanks and hope for your help 回答1: The problem is that the standard NopCommerce solution contains two Web Projects. AppHarbor only deploys one web project per application, and in this case, we happen to deploy Nop

Git add . is not adding the current folder to repo

坚强是说给别人听的谎言 提交于 2019-12-11 06:33:48
问题 I want to add a NopCommerce solution to a repository using git. I entered in the folder where the .sln file is stored and used the git add . command . After that I ran the git commit --dry-run and the output was a little odd, this is the output: new file: Nop.Web new file: Nop.Web.Framework/.gitignore The nop.web folder was somehow detected, but the content wasn't. Its sibling was detected and all its files were uploaded successfully. If I go to the nop.web folder and use a git add . or

OAuth2.0 for nopCommerce

时光毁灭记忆、已成空白 提交于 2019-12-11 06:14:22
问题 I am trying to use nopCommerce API for one of our mobile app. We have successfully done with website. For mobile app, first step to run the api is to get access token. To generate access token we understand we need to use oAuth 2.0. We successfully generate token using Postman. For iPhone/ Android we are trying to generate token. Could someone suggest what should we use? Do we need to use Google oAuth for nopCommerce access token? 来源: https://stackoverflow.com/questions/55669348/oauth2-0-for

How Customise NOP Commerce eWayHosted Plugin For Other Payment Gateway

我们两清 提交于 2019-12-11 06:13:20
问题 I want to customize nopCommerce eWayHosted plugin for other payment gateway(Easy Pay). I change the payment URL and the parameters. public void PostProcessPayment(PostProcessPaymentRequest postProcessPaymentRequest) { var strPost = "storeId=" + _eWayHostedPaymentSettings.CustomerId; strPost += Format("amount", postProcessPaymentRequest.Order.OrderTotal.ToString("0.00", CultureInfo.InvariantCulture)); strPost += Format("orderRefNum", postProcessPaymentRequest.Order.Id.ToString()); strPost +=

How can I add a submenu in admin panel under a existing menu in NopCommerce 3.8?

£可爱£侵袭症+ 提交于 2019-12-11 04:14:45
问题 My question is almost similar like this question except a little bit change. There is a solution for adding menu, like I also want to add menu but in a different process. Currently I am developing a project on combo promotional offer. So therefore I want to add a sub menu under Promotion Like all other submenus image But what I have developed is creating a separate menu named Plugins and adding a submenu there. Like this image And here is the code I have used for creating that menu. public

Jssor Slider horizontal scroll issue

瘦欲@ 提交于 2019-12-11 02:09:38
问题 I'm using nopcommerce 3.80 for my site and wanted to use vertical full width slides on home page. I used Jssor slider jquery in place of nivo by editing my Nivo slider plugin. I'm able to see a vertical slider at homepage now, but it is giving a horizontal scroll bar and the image is not extending to full width instead it is giving white blank space in the right side. And also the scrollbar is making the page in the right side with white space and below the slider also. Please see the