Webiant Logo Webiant Logo
  1. No results found.

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

ShoppingCartSettings.cs

using Nop.Core.Configuration;

namespace Nop.Core.Domain.Orders;

/// 
/// Shopping cart settings
/// 
public partial class ShoppingCartSettings : ISettings
{
    /// 
    /// Gets or sets a value indicating whether a customer should be redirected to the shopping cart page after adding a product to the cart/wishlist
    /// 
    public bool DisplayCartAfterAddingProduct { get; set; }

    /// 
    /// Gets or sets a value indicating whether a customer should be redirected to the shopping cart page after adding a product to the cart/wishlist
    /// 
    public bool DisplayWishlistAfterAddingProduct { get; set; }

    /// 
    /// Gets or sets a value indicating maximum number of items in the shopping cart
    /// 
    public int MaximumShoppingCartItems { get; set; }

    /// 
    /// Gets or sets a value indicating maximum number of items in the wishlist
    /// 
    public int MaximumWishlistItems { get; set; }

    /// 
    /// Gets or sets a value indicating whether to show product images in the mini-shopping cart block
    /// 
    public bool AllowOutOfStockItemsToBeAddedToWishlist { get; set; }

    /// 
    /// Gets or sets a value indicating whether to move items from wishlist to cart when clicking "Add to cart" button. Otherwise, they are copied.
    /// 
    public bool MoveItemsFromWishlistToCart { get; set; }

    /// 
    /// Gets or sets a value indicating whether shopping carts (and wishlist) are shared between stores (in multi-store environment)
    /// 
    public bool CartsSharedBetweenStores { get; set; }

    /// 
    /// Gets or sets a value indicating whether to show product image on shopping cart page
    /// 
    public bool ShowProductImagesOnShoppingCart { get; set; }

    /// 
    /// Gets or sets a value indicating whether to show product image on wishlist page
    /// 
    public bool ShowProductImagesOnWishList { get; set; }

    /// 
    /// Gets or sets a value indicating whether to show discount box on shopping cart page
    /// 
    public bool ShowDiscountBox { get; set; }

    /// 
    /// Gets or sets a value indicating whether to show gift card box on shopping cart page
    /// 
    public bool ShowGiftCardBox { get; set; }

    /// 
    /// Gets or sets a number of "Cross-sells" on shopping cart page
    /// 
    public int CrossSellsNumber { get; set; }

    /// 
    /// Gets or sets a value indicating whether "email a wishlist" feature is enabled
    /// 
    public bool EmailWishlistEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether to enabled "email a wishlist" for anonymous users.
    /// 
    public bool AllowAnonymousUsersToEmailWishlist { get; set; }

    /// Gets or sets a value indicating whether mini-shopping cart is enabled
    /// 
    public bool MiniShoppingCartEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether to show product images in the mini-shopping cart block
    /// 
    public bool ShowProductImagesInMiniShoppingCart { get; set; }

    /// Gets or sets a maximum number of products which can be displayed in the mini-shopping cart block
    /// 
    public int MiniShoppingCartProductNumber { get; set; }

    //Round is already an issue. 
    //When enabled it can cause one issue: https://www.nopcommerce.com/boards/topic/7679/vattax-rounding-error-important-fix
    //When disable it causes another one: https://www.nopcommerce.com/boards/topic/11419/nop-20-order-of-steps-in-checkout/page/3#46924

    /// 
    /// Gets or sets a value indicating whether to round calculated prices and total during calculation
    /// 
    public bool RoundPricesDuringCalculation { get; set; }

    /// 
    /// Gets or sets a value indicating whether a store owner will be able to offer special prices when customers buy bigger amounts of a particular product.
    /// For example, a customer could have two shopping cart items for the same products (different product attributes).
    /// 
    public bool GroupTierPricesForDistinctShoppingCartItems { get; set; }

    /// 
    /// Gets or sets a value indicating whether a customer will be able to edit products in the cart
    /// 
    public bool AllowCartItemEditing { get; set; }

    /// 
    /// Gets or sets a value indicating whether a customer will see quantity of attribute values associated to products (when qty > 1)
    /// 
    public bool RenderAssociatedAttributeValueQuantity { get; set; }
}