Could u please help me - how to make things like:
So I would like to have this 2 buttons only if the payment method is OnePay. The problem I don't want to make it as a hardcore like @Model.PaymentMethod == "OnePay" and use
@if (@Model.PaymentMethod == T("Plugins.Payments.OnePay.FriendlyName"))
{
<a href="@Url.RouteUrl("Plugin.Payments.OnePay.GetOrderViewReceipt", new { orderId = Model.Id })" target="_blank" class="button-2 print-order-button">@T("Plugins.Payments.OnePay.ReceiptView")</a>
<a href="@Url.RouteUrl("Plugin.Payments.OnePay.GetOrderPdfReceipt", new { orderId = Model.Id })" target="_blank" class="button-2 pdf-invoice-button">@T("Plugins.OnePay.OnePay.ReceiptPrintPdf")</a>
}
but it not works because unable to convert Nop.Web.Framework.Localization.LocalizedString to string.