Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Cannot Set Custom Catalog Pricing Rules to Zero


View products that this article applies to.

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.

↑ Back to the top


Cause

Although the API supports this process, the BizDesk code does a test for zero (0).

↑ Back to the top


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	
    					

↑ Back to the top


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.

↑ Back to the top


Keywords: KB322767, kbui, kbprb, kbpending, kbenv

↑ Back to the top

Article Info
Article ID : 322767
Revision : 6
Created on : 6/25/2004
Published on : 6/25/2004
Exists online : False
Views : 293