Article ID: 322767
Article Last Modified on 6/25/2004
APPLIES TO
- Microsoft Commerce Server 2002 Standard Edition
- Microsoft Commerce Server 2000 Standard Edition
- Microsoft BizTalk Accelerator for Suppliers 1.0 Service Pack 1
This article was previously published under Q322767
SYMPTOMS
In a custom catalog, if you use custom pricing and try to set the category price to zero (0) by using the Set Price pricing method:
- Your change is not saved.
- You may not receive any error message to indicate that a problem occurred.
CAUSE
Although the API supports this process, the BizDesk code does a test for zero (0).
WORKAROUND
To work around this issue, modify the BizDesk code so that it can use the Set Price pricing method if you want the value to be zero (0). To do so, in the default RetailBizDesk:
- Open the c:\Inetpub\WWWroot\Retailbizdesk\Catalogs\Editor\Edit_customcatalog.asp file.
Locate the following piece of code in the SetCategoryCustomPrice subroutine:
If (sModified = "yes") Then sCategoryName = oXMLNode.getAttribute("caption") iCustomPrice = CInt(oPricing.getAttribute("type")) fpPrice = variantValue(oPricing.text, FLOAT_TYPE) If (fpPrice = 0) or IsNull (fpPrice) Then iCustomPrice = 0 fpPrice = 0 End If Call g_oCat.SetCategoryCustomPrice (g_sCtName, sCategoryName, iCustomPrice, fpPrice) End If
Change the code to this:
If (sModified = "yes") Then sCategoryName = oXMLNode.getAttribute("caption") iCustomPrice = CInt(oPricing.getAttribute("type")) fpPrice = variantValue(oPricing.text, FLOAT_TYPE) If IsNull (fpPrice) Then iCustomPrice = 0 fpPrice = 0 End If Call g_oCat.SetCategoryCustomPrice (g_sCtName, sCategoryName, iCustomPrice, fpPrice) End If
MORE INFORMATION
You can add custom pricing to your custom catalogs. You can offer a set price, fixed adjustment, or percentage adjustment in your custom pricing for users you select. For example, you can offer discounts to frequent customers, or offer discounts on seasonal merchandise. You can only change the price at the category level. You cannot change the price at the product level or product variant level for a custom catalog. Set Price is the exact price for the product.
Additional query words: plutonium
Keywords: kbenv kbui kbprb kbpending KB322767