Class Shop
- Namespace
- Dynamicweb.Ecommerce.Shops
- Assembly
- Dynamicweb.Ecommerce.dll
Represents the Ecommerce shop.
[Serializable]
[PermissionEntity("Shop")]
public class Shop : ICloneable, IDisplayName, IPermissionEntity, IPermissionEntityLookup
- Inheritance
-
Shop
- Implements
- Inherited Members
- Extension Methods
Constructors
Shop()
Initializes a new instance of the class.
public Shop()
Properties
AlternativeImagePatterns
Gets or sets the alternative patterns for images.
public List<ImagePattern> AlternativeImagePatterns { get; set; }
Property Value
AutoBuildIndex
Gets or sets the possibility automatically build index during shop products update.
public bool AutoBuildIndex { get; set; }
Property Value
- See Also
CompletionLanguages
Gets Language collection used for calculating the shop product completeness value.
public IEnumerable<Language> CompletionLanguages { get; set; }
Property Value
- IEnumerable<Language>
Return Language collection
CompletionRules
Get collection of rules used for calculating the shop product completeness value.
public IEnumerable<CompletionRule> CompletionRules { get; }
Property Value
- IEnumerable<CompletionRule>
Return CompletionRule collection
Remarks
To assign rules to a shop use AssignRulesToShop(Shop, IEnumerable<CompletionRule>)
Created
Gets or sets creation date.
public DateTime Created { get; set; }
Property Value
DefaultLanguageId
Gets or sets the ID of the default language.
public string DefaultLanguageId { get; set; }
Property Value
DefaultPrintTemplate
Gets or sets the path for the default print template.
public string DefaultPrintTemplate { get; set; }
Property Value
Icon
Gets or sets the icon.
public string Icon { get; set; }
Property Value
Id
Gets or sets the ID of the shop.
public string Id { get; set; }
Property Value
ImageFolder
Gets or sets the image folder.
public string ImageFolder { get; set; }
Property Value
ImagePatternLarge
Gets or sets the pattern for the names of the large images.
public string ImagePatternLarge { get; set; }
Property Value
ImagePatternMain
Gets or sets the main product pattern.
public string ImagePatternMain { get; set; }
Property Value
ImagePatternMedium
Gets or sets the pattern for the names of the medium images.
public string ImagePatternMedium { get; set; }
Property Value
ImagePatternSmall
Gets or sets the pattern for the names of the small images.
public string ImagePatternSmall { get; set; }
Property Value
ImagePatternVariant
Gets or sets the variant product pattern.
public string ImagePatternVariant { get; set; }
Property Value
ImageSearchInSubfolders
Gets or sets the image folder.
public bool ImageSearchInSubfolders { get; set; }
Property Value
IndexName
Gets or sets the index name.
public string IndexName { get; set; }
Property Value
- See Also
IndexRepository
Gets or sets the index repository.
public string IndexRepository { get; set; }
Property Value
- See Also
IsDefault
Gets or sets the value indicating whether shop is used as default.
public bool IsDefault { get; set; }
Property Value
Name
Gets or sets the name of the shop.
public string Name { get; set; }
Property Value
OrderContextId
Gets or sets the ID of the order context.
public string OrderContextId { get; set; }
Property Value
OrderFlowId
Gets or sets the ID of the order flow.
public int OrderFlowId { get; set; }
Property Value
OrderLineFields
Gets order line fields collection.
public OrderLineFieldCollection OrderLineFields { get; }
Property Value
PermissionName
The permission entity identifier name supported by this implementation of IPermissionEntityLookup.
public string PermissionName { get; }
Property Value
- See Also
ProductPrimaryPageId
Gets or sets the product primary page ID.
public int ProductPrimaryPageId { get; set; }
Property Value
RelatedLanguages
Gets or sets the related languages.
public ICollection<Language> RelatedLanguages { get; set; }
Property Value
StockLocationID
Gets or sets the stock location ID.
public long StockLocationID { get; set; }
Property Value
StockStateId
Gets or sets the ID of the stock state.
public string StockStateId { get; set; }
Property Value
UsageType
Gets or sets ShopType for the shop
public ShopType UsageType { get; set; }
Property Value
UseAlternativeImages
Gets or sets the value indicating whether shop has alternative images.
public bool UseAlternativeImages { get; set; }
Property Value
Methods
ClearTopLevelGroupsCache()
Reset top groups cache.
public void ClearTopLevelGroupsCache()
Clone()
Clones the shop.
public object Clone()
Returns
GetDisplayName()
Yields a human-readable name for rendering.
public string GetDisplayName()
Returns
- string
name
GetGroups(string)
Gets the collection of the groups.
public GroupCollection GetGroups(string languageId)
Parameters
languageId
stringThe language ID.
Returns
GetPermissionEntityByKey(string)
Attempts to resolve a concrete instance of IPermissionEntity based on a key.
public IPermissionEntity GetPermissionEntityByKey(string key)
Parameters
key
stringThe key used for looking up an instance of IPermissionEntity
Returns
- IPermissionEntity
An instance of IPermissionEntity, if found; otherwise,
null
.
- See Also
GetPermissionKey()
Gets the unique key for this permission entity.
public string GetPermissionKey()
Returns
- string
Permission key
GetPermissionParents()
Gets the parents of this permission entity, for the purposes of inherited permissions.
public IEnumerable<IPermissionEntity> GetPermissionParents()
Returns
- IEnumerable<IPermissionEntity>
A sequence of direct parents to this entity
GetTopLevelGroups(string)
Gets the collection of the top level groups.
public GroupCollection GetTopLevelGroups(string languageId)
Parameters
languageId
stringThe language ID.