bakerd wrote:Where can I get the code to update this to 3.20, or can you do it? I would eventually appreciate the code, so I can look at it and possibly submit fixes.
It was great in 3.10, but my client needs the multiple warehouse feature in 3.20.
Just update the version in the Description.txt file. That doesn't always work for all plugin upgrades but in this case it worked for me.
I tried this, but I kept on getting an error when I refreshed the plugin list. The entire site went down. I changed the version back and the site started working again.
Sorry, I just looked through my revision history and it looks like I had to make one other change. In PaypalExpressCheckoutService.cs, change this line:
var lastOrder = _orderService.SearchOrders(_storeContext.CurrentStore.Id, 0, _workContext.CurrentCustomer.Id, null, null, null, null, null, null, null, 0, 1).FirstOrDefault();
to this:
var lastOrder = _orderService.SearchOrders(_storeContext.CurrentStore.Id, 0, _workContext.CurrentCustomer.Id, 0, 0, null, null, null, null, null, null, null, 0, 1).FirstOrDefault();
(A couple extra parameters were added to the SearchOrders method in 3.20.)
Hopefully that will solve the issue you're seeing (make sure to do a clean build, too). :)