Add customer number to Purchase Order Payment Form

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
User avatar
mmackrell
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 50
Joined: Sun Mar 28, 2010 7:41 pm
Location: Zelienople, PA
Contact:

Add customer number to Purchase Order Payment Form

Post by mmackrell » Thu Jul 29, 2010 6:11 pm

I am trying to add a customer number under the PO# in the Purchase Order Payment form. This is the code that I added to the aspx.cs:

Code: Select all

  private void UpdateValidationOptions()
    {
        PurchaseOrderNumber.ValidationGroup = _ValidationGroup;
        PurchaseOrderNumberRequired.ValidationGroup = _ValidationGroup;
        CustomerNumber.ValidationGroup = _ValidationGroup;
        CustomerNumberRequired.ValidationGroup = _ValidationGroup;		
        PurchaseOrderButton.ValidationGroup = _ValidationGroup;
        ValidationSummary1.ValidationGroup = _ValidationGroup;
        ValidationSummary1.Visible = _ValidationSummaryVisible;
    }
And the code that I added to the aspx file:

Code: Select all

    <tr>
        <th class="rowHeader">
            <p>Customer #:</p>
        </th>
        <td>
            <asp:TextBox ID="CustomerNumber" runat="server" MaxLength="10" ValidationGroup="CustomerNumber"></asp:TextBox>
            <asp:RequiredFieldValidator ID="CustomerNumberRequired" runat="server" 
            ErrorMessage="You must enter your customer number." 
            ControlToValidate="CustomerNumber" Display="Static" Text="*" ValidationGroup="CustomerNumber"></asp:RequiredFieldValidator>
        </td>
    </tr>
When I upload this and attempt to preview it, I am not seeing the new row. I am not very familiar with asp code, so any help would be appreciated.

Thanks,
Margie

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Add customer number to Purchase Order Payment Form

Post by mazhar » Fri Jul 30, 2010 6:01 am

Make sure that you are uploading the changes to Website/Checkout/PaymentForms/PurchaseOrderPaymentForm.ascx and Website/Checkout/PaymentForms/PurchaseOrderPaymentForm.ascx.cs. Secondly make sure that you choose the option to overtire existing files when uploading the new ones.

Post Reply