Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

RfqDefaults.cs

using Nop.Core.Caching;

namespace Nop.Plugin.Misc.RFQ;

/// 
/// Represents plugin constants
/// 
public class RfqDefaults
{
    #region Caching defaults

    /// 
    /// Gets a key for caching
    /// 
    /// 
    /// {0} : shopping cart item ID
    /// 
    public static CacheKey QuoteItemByShoppingCartItemCacheKey => new("Misc.RFQ.QuoteItemByShoppingCartItem.{0}");

    #endregion

    /// 
    /// Gets a system name of store owner notification about new request quote
    /// 
    public const string CUSTOMER_SENT_NEW_REQUEST_QUOTE = "Misc.RFQ.CustomerSentNewRequest.StoreOwnerNotification";

    /// 
    /// Gets a system name of customer notification about new quote
    /// 
    public const string ADMIN_SENT_NEW_QUOTE = "Misc.RFQ.AdminSentNewQuote.CustomerNotification";

    /// 
    /// Gets a quantity form key prefix
    /// 
    public const string QUANTITY_FORM_KEY = "quantity_";

    /// 
    /// Gets a unit price form key prefix
    /// 
    public const string UNIT_PRICE_FORM_KEY = "unit_price_";

    /// 
    /// Gets a plugin system name
    /// 
    public static string SystemName => "Misc.RFQ";

    /// 
    /// Gets the configuration route name
    /// 
    public static string ConfigurationRouteName => "Nop.Plugin.Misc.RFQ.Configure";

    /// 
    /// Gets the customer request route name
    /// 
    public static string CreateCustomerRequestRouteName => "Nop.Plugin.Misc.RFQ.CreateCustomerRequest";

    /// 
    /// Gets the customer request route name
    /// 
    public static string ClearCustomerRequestRouteName => "Nop.Plugin.Misc.RFQ.ClearCustomerRequest";

    /// 
    /// Gets the customer requests route name
    /// 
    public static string CustomerRequestsRouteName => "Nop.Plugin.Misc.RFQ.CustomerRequests";

    /// 
    /// Gets the customer quotes route name
    /// 
    public static string CustomerQuotesRouteName => "Nop.Plugin.Misc.RFQ.CustomerQuotes";

    /// 
    /// Gets the customer quote route name
    /// 
    public static string CustomerQuoteRouteName => "Nop.Plugin.Misc.RFQ.CustomerQuote";

    /// 
    /// Gets the requests administration menu system name
    /// 
    public static string RequestsAdminMenuSystemName => "Nop.Plugin.Misc.RFQ.RequestsAdminMenu";

    /// 
    /// Gets the quotes administration menu system name
    /// 
    public static string QuotesAdminMenuSystemName => "Nop.Plugin.Misc.RFQ.QuotesAdminMenu";

    /// 
    /// Requests tab identifier for customer navigation
    /// 
    public static int RequestsTabId => 101;

    /// 
    /// Quotes tab identifier for customer navigation
    /// 
    public static int QuotesTabId => 102;

    /// 
    /// Gets the date-time string format
    /// 
    public static string DateTimeStringFormat => "yyyy-MM-dd HH:mm:ss";
}