ECommerceContext Class |
Namespace: CMS.Ecommerce
public class ECommerceContext : AbstractContext<ECommerceContext>
The ECommerceContext type exposes the following members.
Name | Description | |
---|---|---|
![]() | ECommerceContext |
Name | Description | |
---|---|---|
![]() | ColumnNames |
Available column names.
(Inherited from AbstractDataContainer<ParentObjectType>.) |
![]() ![]() | CurrentCurrency |
Current currency.
|
![]() ![]() | CurrentCustomer |
Customer from current shopping cart.
|
![]() ![]() | CurrentCustomerCountry |
Current customer country.
|
![]() ![]() | CurrentCustomerState |
Current customer state.
|
![]() ![]() | CurrentManufacturer |
Current manufacturer object according the URL parameter of the current request.
It is available when the request contains parameters "manufacturerId" or "manufacturerName" with valid value of the manufacturer.
|
![]() ![]() | CurrentProduct |
Current product.
|
![]() ![]() | CurrentProductDepartment |
Current product department.
|
![]() ![]() | CurrentProductInternalStatus |
Current product internal status.
|
![]() ![]() | CurrentProductPublicStatus |
Current product public status.
|
![]() ![]() | CurrentProductSupplier |
Current product supplier.
|
![]() ![]() | CurrentShoppingCart |
Returns the current Shopping cart info.
|
![]() | IsDefault |
Returns true if the context is the default request context
(Inherited from ContextContainer<TParent>.) |
![]() ![]() | IsExchangeRateFromGlobalMainCurrencyMissing |
Indicates if exchange rate from global main currency is missing in the last valid exchange table. Returns false if site uses
global currencies or global exchange rates or code of site main currency is the same as code of global main currency.
|
![]() | Item |
Gets the value of particular property
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | Key |
Unique container key
(Inherited from ContextContainer<TParent>.) |
![]() ![]() | MoreCurrenciesUsedOnSite |
Returns true, if more than one currency is used and enabled on current site, otherwise false.
|
![]() ![]() | OnlyOnePaymentOptionAvailableOnSite |
Returns true, if there is only one payment option available on current site, otherwise false.
|
![]() ![]() | OnlyOneShippingOptionAvailableOnSite |
Returns true, if there is only one shipping option available on current site, otherwise false.
|
![]() | Properties |
Properties available through the context.
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | PropertyList |
Used property list
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | RegisteredColumns |
Registered Columns
(Inherited from AbstractSimpleDataContainer<TObject>.) |
![]() | RegisteredColumnsObject |
Registered Columns object
(Inherited from AbstractSimpleDataContainer<TObject>.) |
![]() | RegisteredProperties |
Registered properties
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | RegisteredPropertiesObject |
Registered properties object
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | UseLocalColumns |
If true, the object uses local columns
(Inherited from AbstractSimpleDataContainer<TObject>.) |
![]() | UseLocalProperties |
If true, the object uses local properties
(Inherited from AbstractHierarchicalObject<TObject>.) |
Name | Description | |
---|---|---|
![]() | ClearCurrent |
Clears the current context value
(Inherited from ContextContainer<TParent>.) |
![]() | CloneForNewThread |
Clones the object for new thread
(Inherited from AbstractContext<TContext>.) |
![]() | CombineWith |
Combines current instance with other properties (modifies current instace!).
List properties are merged from all the participating typeinfos, other properties are taken as first non-null value (non-null is determined by nullValues collection).
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | ContainsColumn |
Returns true if specified column is available in current structure.
(Inherited from AbstractDataContainer<ParentObjectType>.) |
![]() | EnsureCurrent |
Creates the internal ContextContainer< TParent> storage if it does not exist yet.
(Inherited from ContextContainer<TParent>.) |
![]() | GetProperty |
Gets the context property.
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | GetPropertyType |
Gets the type of the given property
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | GetValue |
Gets the object value.
(Inherited from AbstractSimpleDataContainer<TObject>.) |
![]() | HasSetter |
Returns true if given property has a setter
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() ![]() | IsUserAuthorizedForPermission |
Checks the specified ecommerce permission for current user.
|
![]() ![]() | IsUserAuthorizedToModifyCustomer |
Indicates if user is authorized to modify specific customer.
'EcommerceModify' OR 'ModifyCustomers' permission is checked.
|
![]() ![]() | IsUserAuthorizedToModifyDiscount |
Indicates if user is authorized to modify discounts.
|
![]() ![]() | IsUserAuthorizedToModifyManufacturer(Boolean) |
Indicates if user is authorized to modify manufacturers.
|
![]() ![]() | IsUserAuthorizedToModifyManufacturer(ManufacturerInfo) |
Indicates if current user is authorized to modify specific manufacturer.
For global manufacturer: 'EcommerceGlobalModify' permission is checked.
For site-specific manufacturer: 'EcommerceModify' OR 'ModifyManufacturers' permission is checked.
|
![]() ![]() | IsUserAuthorizedToModifyOptionCategory(Boolean) |
Indicates if user is authorized to modify option categories.
|
![]() ![]() | IsUserAuthorizedToModifyOptionCategory(OptionCategoryInfo) |
Indicates if user is authorized to modify specific option category.
For global option category: 'EcommerceGlobalModify' permission is checked.
For site-specific manufacturer: 'EcommerceModify' OR 'ModifyProducts' permission is checked.
|
![]() ![]() | IsUserAuthorizedToModifySKU(Boolean) |
Indicates if user is authorized to modify SKUs.
|
![]() ![]() | IsUserAuthorizedToModifySKU(SKUInfo) |
Indicates if user is authorized to modify specific SKU.
For global SKU: 'EcommerceGlobalModify' permission is checked.
For site-specific SKU: 'EcommerceModify' OR 'ModifyProducts' permission is checked.
|
![]() ![]() | IsUserAuthorizedToModifySupplier(Boolean) |
Indicates if user is authorized to modify suppliers.
|
![]() ![]() | IsUserAuthorizedToModifySupplier(SupplierInfo) |
Indicates if user is authorized to modify specific supplier.
For global supplier: 'EcommerceGlobalModify' permission is checked.
For site-specific supplier: 'EcommerceModify' OR 'ModifySuppliers' permission is checked.
|
![]() | RegisterColumn(String, Func<TObject, Object>) |
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainer<TObject>.) |
![]() | RegisterColumn(String, Func<TObject, Object>, Func<TObject, Object, Object>) |
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainer<TObject>.) |
![]() | RegisterColumns |
Registers the Columns of this object
(Inherited from AbstractSimpleDataContainer<TObject>.) |
![]() | RegisterProperties |
Registers the properties of this object
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | RegisterProperty(String, Func<TObject, Object>) |
Registers the given property to the object
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | RegisterProperty(String, Object, Func<TObject, Object, Object>) |
Registers the given parameterized property to the object.
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | SetAsCurrent |
Sets the current instance as the current thread item
(Inherited from ContextContainer<TParent>.) |
![]() | SetProperty |
Gets the context property.
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | SetValue |
Sets the object value.
(Inherited from AbstractSimpleDataContainer<TObject>.) |
![]() | TryGetProperty(String, Object) |
Gets the context property.
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | TryGetProperty(String, Object, Boolean) |
Returns value of property.
(Inherited from AbstractHierarchicalObject<TObject>.) |
![]() | TryGetValue |
Returns value of column.
(Inherited from AbstractSimpleDataContainer<TObject>.) |