i am .net developer and i am new to nocommerce my company need to upgrade plugin from 4 to 4.6 so i am trying to do so
i dont know the flow for plugins in v 4.6
but i am facing problems :(
please help me if u can.
the old plugin structure was that the view component is inside the plugin and the developer who made this plugin was calling the viewcomponent
inside public store custom view called paymentcheckout.cshtml
@model Nop.Plugin.Payments.PayTabs.Models.PayTabsModel
@using Nop.Core
@using Nop.Plugin.Payments.PayTabs.Components
@inject IWebHelper webHelper
@{
Layout = "_ColumnsOne";
//scripts
//Html.AddScriptParts(ResourceLocation.Footer, "~/js/public.accordion.js");
//Html.AddScriptParts(ResourceLocation.Footer, "~/js/public.onepagecheckout.js");
var storeLocation = webHelper.GetStoreLocation();
//title
NopHtml.AddTitleParts(T("PageTitle.Checkout").Text);
//page class
NopHtml.AppendPageCssClassParts("html-checkout-page");
}
<div class="page checkout-page">
<div class="page-title">
<h1>@T("Checkout")</h1>
</div>
<div class="page-body checkout-data">
@if (TempData["CartIsEmpty"] == null)
{
@await Component.InvokeAsync(typeof(PayTabsViewComponent))
}
else
{
<div class="alert alert-danger alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4><span class="glyphicon glyphicon-warning-sign"></span> @T("Common.Warning")</h4>
@TempData["ErrorMessage"]
</div>
}
</div>
<script type="text/javascript" asp-location="Footer">
</script>
</div>
and the view component is returning another view
it said he cannot find PayTabsViewComponent as its in the plugin