Cannot Set Custom Catalog Pricing Rules to Zero (322767)



The information in this article applies to:

  • Microsoft Commerce Server 2002
  • Microsoft Commerce Server 2000
  • Microsoft BizTalk Accelerator for Suppliers, version 1.0 SR1

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:
  1. Open the c:\Inetpub\WWWroot\Retailbizdesk\Catalogs\Editor\Edit_customcatalog.asp file.
  2. 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
    					
  3. 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.

Modification Type:MajorLast Reviewed:6/25/2004
Keywords:kbenv kbpending kbprb kbui KB322767