FIX: An Attempt to Remove the Buy Anything Option from a Discount Campaign is Unsuccessful and the Option Remains Enabled in BizDesk (824577)



The information in this article applies to:

  • Microsoft Commerce Server 2002 SP1

SYMPTOMS

If you try to use Commerce Server Business Desk (BizDesk) to remove the Buy Anything option from a Discount Campaign that was originally created with the Buy Anything option selected, the campaign reverts to Buy Anything. As a result, the user cannot modify Buy Anything discount campaigns to a buy a specific quantity or value campaign.

RESOLUTION

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Commerce Server 2002 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question. The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Size    File name
   --------------------------------------------
   17-Jul-2003  21:26  80,215  Discitem.asp
				

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Different discounts have different values in the campaign tables:
  • A campaign that has a Buy Anything discount exists in the Order_Discount_Misc table and has an i_disc_cond_type value of 3.
  • A campaign that has a Buy a specific quantity or value discount exists in the Order_Discount_Misc table and has an i_disc_cond_type value of 0.
If you try to remove the Buy Anything option from the discount campaign and save the campaign, when you refresh BizDesk, the campaign reverts to the Buy Anything.

Apparently, when you remove the Buy Anything option from a Buy Anything discount campaign, you must also change the i_disc_cond_type field for the campaign to 0.

Note A BizDesk solution for Discitem.asp has been included with Service Pack 2. The service pack installation creates a separate folder for the BizDesk fixes, and including this fix. If no custom code modifications have been made to BizDesk, you can use this file to replace the current BizDesk site code module.

The Service Pack implements changes to the following code:
  • Sub OnClickNoRequirement():

    ' ebizse 
    ' i_disc_cond_amt.value = 2
    ' ebizse
    i_disc_cond_basis.value = 1
    saveform.i_disc_cond_type.value = 1

  • Sub OnClickFreeShipping():

    ' ebizse 
    saveform.i_disc_award_type.value = 1 ' mg
    i_disc_offer_type.value = 1


Modification Type:MinorLast Reviewed:10/5/2005
Keywords:kbfix kbbug KB824577 kbAudDeveloper