Results 1 to 4 of 4

Thread: viewcart.tpl ignores me

  1. #1
    Join Date
    Apr 2012
    Posts
    5

    Default viewcart.tpl ignores me

    Hello everyone!
    I wanted to change an order of registration fields shown upon placing an order, it seems logical to me to select country and city before address. Found out it is configured in viewcart.tpl. I am using a comparison form, so it should be a templates/orderforms/comparison/viewcart.tpl. I have changed
    Code:
    <tr><td>{$LANG.clientareaaddress1}</td><td>{if $loggedin}{$clientsdetails.address1}{else}<input type="text" name="address1" style="width:80%;" value="{$clientsdetails.address1}" />{/if}</td></tr>
    <tr><td>{$LANG.clientareaaddress2}</td><td>{if $loggedin}{$clientsdetails.address2}{else}<input type="text" name="address2" style="width:80%;" value="{$clientsdetails.address2}" />{/if}</td></tr>
    <tr><td>{$LANG.clientareacity}</td><td>{if $loggedin}{$clientsdetails.city}{else}<input type="text" name="city" style="width:80%;" value="{$clientsdetails.city}" />{/if}</td></tr>
    <tr><td>{$LANG.clientareastate}</td><td>{if $loggedin}{$clientsdetails.state}{else}<input type="text" name="state" style="width:80%;" value="{$clientsdetails.state}" />{/if}</td></tr>
    <tr><td>{$LANG.clientareacountry}</td><td>{if $loggedin}{$clientsdetails.country}{else}{$clientcountrydropdown}{/if}</td></tr>
    to
    Code:
    <tr><td>{$LANG.clientareacountry}</td><td>{if $loggedin}{$clientsdetails.country}{else}{$clientcountrydropdown}{/if}</td></tr>
    <tr><td>{$LANG.clientareastate}</td><td>{if $loggedin}{$clientsdetails.state}{else}<input type="text" name="state" style="width:80%;" value="{$clientsdetails.state}" />{/if}</td></tr>
    <tr><td>{$LANG.clientareacity}</td><td>{if $loggedin}{$clientsdetails.city}{else}<input type="text" name="city" style="width:80%;" value="{$clientsdetails.city}" />{/if}</td></tr>
    <tr><td>{$LANG.clientareaaddress1}</td><td>{if $loggedin}{$clientsdetails.address1}{else}<input type="text" name="address1" style="width:80%;" value="{$clientsdetails.address1}" />{/if}</td></tr>
    <tr><td>{$LANG.clientareaaddress2}</td><td>{if $loggedin}{$clientsdetails.address2}{else}<input type="text" name="address2" style="width:80%;" value="{$clientsdetails.address2}" />{/if}</td></tr>
    but cannot see any change on the website. What's wrong?

  2. #2
    Join Date
    Feb 2009
    Location
    Atlanta, GA
    Posts
    1,680

    Default

    Did you modify the correct template? (whatever template you have selected in the admin)

  3. #3
    Join Date
    Jul 2010
    Posts
    792

    Default

    This form would also assume that someone is registering during checkout, you'd also need to update:

    /templates/YOUR_TEMPLATE/clientregister.tpl

    --

    If you'd like to confirm that you're editing the correct file you could always add a HTML note and then check the source code in your browser to confirm:

    [html]<!-- note -->[/html]
    Web hosting templates Responsive WHMCS & Wordpress + WHMCS templates | WHMCS Services

  4. #4
    Join Date
    Apr 2012
    Posts
    5

    Default

    Thanks, looks like the problem was in browser, although I have deleted cash and cookies, the changes have been shown only when I had put a note into a code to check if that is the correct file.

Similar Threads

  1. Add contact list to viewcart.tpl
    By bss42 in forum Customisation and Integration Questions
    Replies: 0
    Last Post: 05-05-12, 10:58 PM
  2. adding statement to viewcart.tpl
    By easyhosting in forum Customisation and Integration Questions
    Replies: 4
    Last Post: 12-23-11, 04:02 PM
  3. help with viewcart.tpl
    By afcbob in forum Customisation and Integration Questions
    Replies: 23
    Last Post: 04-18-10, 06:23 PM
iron-diatonic