nopcommerce

Multiple MVC projects in a single solution

回眸只為那壹抹淺笑 提交于 2019-12-03 05:17:25
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. Ryan Bennett Yes it is. See: asp.net mvc put controllers into a separate project I've done this myself and was able to use

Google analytics track exits within a one-page checkout

断了今生、忘了曾经 提交于 2019-12-02 18:05:11
问题 I'm using an ecommerce system called NopCommerce that implements a one page checkout system. This page asks users to fill out details like billing address / shipping address etc before taking payment. The page uses ajax to save these details so the URL doesn't change, there's no internal anchors etc to mark progress. Does anyone know if it's possible using Google analytics to find out where on this page people are exiting? I know there are exit reports but they just refer to pages, not areas

Google analytics track exits within a one-page checkout

…衆ロ難τιáo~ 提交于 2019-12-02 10:22:09
I'm using an ecommerce system called NopCommerce that implements a one page checkout system. This page asks users to fill out details like billing address / shipping address etc before taking payment. The page uses ajax to save these details so the URL doesn't change, there's no internal anchors etc to mark progress. Does anyone know if it's possible using Google analytics to find out where on this page people are exiting? I know there are exit reports but they just refer to pages, not areas within pages. Is this possible and if so how is it implemented? I do not know Nopcommerce, but looking

Use of unassigned variable?

时光毁灭记忆、已成空白 提交于 2019-12-02 09:11:22
问题 I'm getting the error use of unassigned variable "ps" when declaring if paymentstatus is null or has value in the "if" statement. I'm thinking that i allready declared ps but obviously im doing something wrong. Why does the compiler complain about this? Here's the error in it's context: public IList<BestsellersReportLine> DailyBestsellersReport() { OrderStatus os; PaymentStatus? ps; ShippingStatus ss; int billingCountryId = 0; int recordsToReturn = 999; int orderBy = 1; int groupBy = 1; int?

How to get Rates from UPS Rate API?

馋奶兔 提交于 2019-12-02 02:03:25
I am using nopcommerce 3.5. I have added plugin of UPS of TransitInTime and Rate API. I want to get rates by calling UPS Rate API. I want all Rates in dropdown on page load. So for the first I am using test application using webservices of RateWebReference and in which I get only one Rate but I want Rates for all shipping option. Here is my code of RateWSClient.cs RateService rate = new RateService(); RateRequest rateRequest = new RateRequest(); UPSSecurity upss = new UPSSecurity(); UPSSecurityServiceAccessToken upssSvcAccessToken = new UPSSecurityServiceAccessToken(); upssSvcAccessToken

How to implement an Action Filter in NopCommerce

淺唱寂寞╮ 提交于 2019-12-01 20:06:13
问题 I want to change some code in an action of the OpcSaveBilling action from the CheckoutController. I don't want to alter the core code of NopCommerce so i need to try to overide the code with my own custom code. I've read this article to get me started http://www.pronopcommerce.com/overriding-intercepting-nopcommerce-controllers-and-actions. From what I've read you can execute your own code before an action is executed and after an action is executed. But what I am not getting is the part that

How to display indian rupee symbol in iText PDF in MVC3

寵の児 提交于 2019-12-01 19:52:38
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); 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 different characters. Even if your file is stored correctly, maybe your compiler will read it using the wrong

Override a virtual method in a partial class

孤人 提交于 2019-12-01 16:57:51
问题 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 make some changes to the code that places an order, by using a partial class in the same assembly: Orignal Source Code: namespace Nop.Services.Orders { public partial class OrderProcessingService : IOrderProcessingService { public virtual

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

匆匆过客 提交于 2019-12-01 15:27:16
This question already has an answer here: “A lambda expression with a statement body cannot be converted to an expression tree” 9 answers 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 expression tree please see my code below var roles = _customerEventRoleRepository.Table.Where(c => c.EventId == selevent) .Join ( _customerRepository.Table, cev => cev.CustomerId, c => c.Id, (cev, c) => { var cust = new

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

*爱你&永不变心* 提交于 2019-12-01 15:11:10
问题 This question already has answers here : “A lambda expression with a statement body cannot be converted to an expression tree” (9 answers) Closed 5 years ago . 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 expression tree please see my code below var roles = _customerEventRoleRepository.Table.Where(c =