Close

Source code change breaks QuickTabs

[email protected]
3 years ago
#21149 Quote
Avatar
  • 1
Hi, I've made rather a simple source code change to allow my customer to filter orders via Shipping Methods in the admin. All works fine, but for some reason, I'm now getting an error via the QuickTabs plugin.

Error below:

Method not found: 'Nop.Core.IPagedList`1<Nop.Core.Domain.Orders.Order> Nop.Services.Orders.IOrderService.SearchOrders(Int32, Int32, Int32, Int32, Int32, Int32, Int32, System.String, System.Nullable`1<System.DateTime>, System.Nullable`1<System.DateTime>, System.Collections.Generic.List`1<Int32>, System.Collections.Generic.List`1<Int32>, System.Collections.Generic.List`1<Int32>, System.String, System.String, System.String, Int32, Int32)'.


Full Stack error:
[MissingMethodException: Method not found: 'Nop.Core.IPagedList`1<Nop.Core.Domain.Orders.Order> Nop.Services.Orders.IOrderService.SearchOrders(Int32, Int32, Int32, Int32, Int32, Int32, Int32, System.String, System.Nullable`1<System.DateTime>, System.Nullable`1<System.DateTime>, System.Collections.Generic.List`1<Int32>, System.Collections.Generic.List`1<Int32>, System.Collections.Generic.List`1<Int32>, System.String, System.String, System.String, Int32, Int32)'.]
   SevenSpikes.Nop.Plugins.NopQuickTabs.Controllers.ProductTabController.Y51sti3LA(TabUIModel  , Product  ) +0
   SevenSpikes.Nop.Plugins.NopQuickTabs.Controllers.ProductTabController.yxlcOraJI(Int32  ) +253
   SevenSpikes.Nop.Plugins.NopQuickTabs.Controllers.ProductTabController.ProductTabsWidget(String widgetZone) +385
   lambda_method(Closure , ControllerBase , Object[] ) +104
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14

  
I've now edited this three times as all most of the stack gets cut off? I'm guessing you have a character limit, and I can't reply to it as the forum keeps asking me to login.. which of course I am!
Regards,
Craig

p.s. My Search Orders (I'm using nop 3.90)
IPagedList<Order> SearchOrders(int storeId = 0,
            int vendorId = 0, int customerId = 0,
            int productId = 0, int affiliateId = 0, int warehouseId = 0,
            int billingCountryId = 0, string paymentMethodSystemName = null,
            DateTime? createdFromUtc = null, DateTime? createdToUtc = null,
            List<int> osIds = null, List<int> psIds = null, List<int> ssIds = null,
            string billingEmail = null, string billingLastName = "",
            string orderNotes = null, int pageIndex = 0, int pageSize = int.MaxValue, string shippingMethod = null);
SDobrev
3 years ago
#21164 Quote
Avatar
  • Moderator
  • 283
Hi,

You shouldn't change the method signature. Use the method overloading if you want to add additional parameters. That way the Quick Tabs plugin will use the default nopCommerce method.

The search orders method is used by Quick Tabs for the Product Review tab. Alternatively, you can disable it.
Best Regards,
Stoyan Dobrev
Nop-Templates.com