![]() |
Tracking Number
Can anyone tell me how to include a default number into the Tracking Number field? Our tracking numbers are quite long, and only the last few digits regularly change. Having the fist 8 digits automatically in the field would be helpful.
Thanks, Alan Ruud X-Cart version 4.1.11 |
Re: Tracking Number
In skin1/main/history_order.tpl find this line:
Code:
<INPUT type="text" name="tracking" value="{$order.tracking}"{if $usertype eq 'C'} readonly{/if}> Code:
<INPUT type="text" name="tracking" value="{if $order.tracking eq '' and $usertype ne 'C'}12345678{else}{$order.tracking}{/if}"{if $usertype eq 'C'} readonly{/if}> |
Re: Tracking Number
That is exactly what I was looking for...thanks so much!
|
Re: Tracking Number default
Hello, I am trying to accomplish this same thing with the new version, which seems to have changed a bit since the above solution. Can you assist? Thanks,
|
Re: Tracking Number
The file is now skin/common_files/main/history_order.tpl. Pretty much the same change. Find this:
Code:
<input type="text" name="tracking" value="{$order.tracking|escape}" /> Code:
<input type="text" name="tracking" value="{if $order.tracking eq ''}12345678{else}{$order.tracking|escape}{/if}" /> |
Re: Tracking Number
Worked perfectly - thanks so much...!
|
Re: Tracking Number
Since you are such a Wizard, perhaps you know the answer also to this one: I am working on one other issue that also has changed since upgrading: Trying to have the newsletter box checked by default. I have had this on our site for years without complaint, so we would like to continue. Here is what I did before:
/modules/News_Management/register_newslists.tpl FIND <td><input type="checkbox" name="subscription[{$listid}]" {if $subscription[$listid] ne ""}checked="checked"{/if} /></td> CHANGE TO: <TD><INPUT type="checkbox" name="subscription[{$listid}]" {if $subscription[$listid] ne ""}checked{/if}{if $login eq ""}checked{/if}></TD> ...but it doesn't seem to work anymore...do you have any idea? |
All times are GMT -8. The time now is 02:27 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.