| |
Hello,
I am implementing a payment method which allows reposting payments if not completed successfully at first.
The problem is that if the customer has more than one unpaid orders and try to repost the first of them,
after the payment is completed and redirect the customer at the /checkout/completed page, it always shows the last payment completed.
Moreover, this page is always available and always shows the last completed order.
Maybe we could add a parameter at the Completed() method at the CheckoutController so that from the payment we could pass the last order processed.
something like that:
public ActionResult Completed(int? orderid) { //validation if ((_workContext.CurrentCustomer.IsGuest() && !_orderSettings.AnonymousCheckoutAllowed)) return new HttpUnauthorizedResult();
//model var model = new CheckoutCompletedModel(); //Added if(orderid !=null) {
var o = _orderService.GetOrderById(orderid.Value); if(o == null) throw new Exception("Order cannot be null"); model.OrderId = o.Id; return View(model); } var orders = _orderService.GetOrdersByCustomerId(_workContext.CurrentCustomer.Id); if (orders.Count == 0) return RedirectToRoute("HomePage"); else { var lastOrder = orders[0]; model.OrderId = lastOrder.Id; }
return View(model); }
Posted:
6 months ago
|
Hello,
I use nopcommerce >=2.4 for most of my eshop websites.
I am interested to know if it is possible to convert nopcommerce mobile themes, to native applications for IOs, WP7, Android.
From some research I have done, I found phonegap.
As I can see you have to built firstly a application using HTML5, JS, and after that wrap it with phonegap.
If you do so, can the apps be uploaded to the marketplaces, or the are problems with rejections. Has anyone ever worked with this ?
Are there any other solutions that can be used ?
Looking forward to your replies/suggestions if you have done something like that.
Thank you
Posted:
8 months ago
|
Hello,
I need to upload files at my nopcommerce 2.3 installation, that would be available only to registered clients.
For now, all files are just linked from inside the content of my website.
Is there any way/module to do that or should I create it? What's the best way to implement it?
I am looking forward to your suggestions/replies
Thanks in advance
Posted:
one year ago
|
Is there a solution for 2.1 nopcommerce version ?
Posted:
one year ago
|
Hello i updated to nopcommerce 1.8 and i have some problems fixing the tax rate on my site .
I want to have one and only tax . I selected fixed rate tax provider , but I can't set there a tax globally for my site . I can only set tax for tax category , but none of this categories i associated to any product .
How can I do that ? Am i missing something ?
Nop 16 had as I remeber a fixed rate for the tax that was active for all products , can this be done in 1.8
Thank you in advance
Posted:
2 years ago
|