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