I am wondering if there is anything that can block an override working ?
I am converting a plugin from v4.2 to v.40.
The UpdateCart override works in v4.2 and v4.1 but it does no work in v4.0
I have a CustomerShoppingCartController loaded in DependencyRegistrar.cs
I have a custom Nop.Plugin.Group.Name\Views\Shared\Components\OrderSummary\Default.cshtml
with the Update Cart button
<input type="submit" name="updatecart" value="@T("ShoppingCart.UpdateCart")" class="button-2 update-cart-button" />
Then in the CustomerShoppingCartController I have
public override IActionResult UpdateCart(IFormCollection form)
which matches the base IActionResult in ShoppingCartController
public virtual IActionResult UpdateCart(IFormCollection form)
For a test I made both routines are exactly the same
The weird thing is there is another override and other routines in CustomShoppingCartController which are being called.
Just the UpdateCart override is not working and it calls the UpdateCart routine in ShoppingCartController
Any suggestions ?