Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: Remove "Stop Future Billing" button

  1. #1
    jboston is offline Member
    Join Date
    Jun 2009
    Posts
    33

    Default Remove "Stop Future Billing" button

    Can anyone tell me how to remove the "Stop Future Billing" button from the Accounts page when a customer has a recurring shipment?

    Thanks for your help.

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    The easiest way to do this would be to modify the call to get the recurring items in the account.aspx.cs page. Near the bottom, you'll find public void RefreshPage(). In this method, you'll find the following lines
    Code:
    {
        while (rsr.Read())
        {
            RecurringOrders.Text += AppLogic.GetRecurringCart(base.EntityHelpers, base.GetParser, ThisCustomer, DB.RSFieldInt(rsr, "OriginalRecurringOrderNumber"), SkinID, false);
        }
    }
    You can change it as follows to get rid of the Stop Future Billing button
    Code:
    {
        while (rsr.Read())
        {
            //RecurringOrders.Text += AppLogic.GetRecurringCart(base.EntityHelpers, base.GetParser, ThisCustomer, DB.RSFieldInt(rsr, "OriginalRecurringOrderNumber"), SkinID, false);
              RecurringOrders.Text += AppLogic.GetRecurringCart(base.EntityHelpers, base.GetParser, ThisCustomer, DB.RSFieldInt(rsr, "OriginalRecurringOrderNumber"), SkinID, false, false, false, false, String.Empty);
        }
    }
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  3. #3
    jboston is offline Member
    Join Date
    Jun 2009
    Posts
    33

    Default

    Thanks so much for your help.

    Have a great Holiday.