Microsoft KB Archive/322767

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 17:50, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


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:

  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.


Additional query words: plutonium

Keywords: kbenv kbui kbprb kbpending KB322767