Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / BasketItemCollection Class / GenerateContentHash Method / GenerateContentHash(IList<BasketItem>,Boolean) Method
Basket Item List
If true only shippable items are included in hash calculation
Version
GenerateContentHash(IList<BasketItem>,Boolean) Method
Generates a hash of the basket items in this collection
Syntax
[Extension()]
public static string GenerateContentHash( 
   IList<BasketItem> items,
   bool shippableOnly
)

Parameters

items
Basket Item List
shippableOnly
If true only shippable items are included in hash calculation

Return Value

A hash of the basket items in this collection
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also