2008-10-18

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

AAA is a pattern to author UnitTests: Arrenge, Act, Assert

referance:
http://www.lostechies.com/blogs/jimmy_bogard/archive/2008/07/24/arrange-act-assert-and-bdd-specifications.aspx

2008-10-17

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

Adding a variant to the basket from a virtual catalog

/// VirtualCatalogName: ABCD , BaseCatalogName: EFGH, 
/// ProductId 1234 , VariantId: XYZ

Incorrect code: add("ABCD", "1234(EFGH)", "XYZ", 1)

Correct code: add("ABCD", "1234(EFGH)", "XYZ(EFGH)", 1)


P.S: found by Mr. Shepherd

2008-10-16

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

nice post on pipeline scripting

"Pipeline problem with diferent pricing for different customer groups"
http://objectmix.com/commerce-server/257885-pipeline-problem-diferent-pricing-different-customer-grou.html

'The following entry points are available (shown in VBScript format):
function MSCSExecute(config, orderform, context, flags)

if Orderform.[shopper_type] = "1" then
for each item in orderform.items
item.[_product_list_price] = item.[_product_list_price] * .75
next
else
if Orderform.[shopper_type] = "2" then
for each item in orderform.items
item.[_product_list_price] = item.[_product_list_price] * .5
next
else
for each item in orderform.items
item.[_product_list_price] = item.[_product_list_price]
next
end if
end if

MSCSExecute = 1
end function

2008-10-07

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

Commerce Server 2007 SP1 'resources are old' Error

PROBLEM:
Error in Commerce Administration Object : Description - 'The following resources are old.
They will not function correctly until they are upgraded:
Product Catalog (7.2.0)Product Catalog (7.2.0)Product Catalog (7.2.0)
Marketing (7.1.0)Marketing (7.1.0)

Please run the migration tool in order to upgrade them to the latest versions.'

SOLUTION:
CSConfig.exe /r Feature.MS.CS.Admin

Referance: http://geekswithblogs.net/MainaD/archive/2007/10/17/116102.aspx