Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Tracking Number

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-31-2008, 11:38 PM
 
alanruud alanruud is offline
 

Member
  
Join Date: May 2008
Posts: 11
 

Default 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
__________________
Alan Ruud
X-Cart Ver. 4.4.1 (Unix)
Reply With Quote
  #2  
Old 11-01-2008, 05:26 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default 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}>
and change it to something like this:
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}>
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote
  #3  
Old 11-02-2008, 12:40 AM
 
alanruud alanruud is offline
 

Member
  
Join Date: May 2008
Posts: 11
 

Default Re: Tracking Number

That is exactly what I was looking for...thanks so much!
__________________
Alan Ruud
X-Cart Ver. 4.4.1 (Unix)
Reply With Quote
  #4  
Old 01-24-2011, 07:54 AM
 
alanruud alanruud is offline
 

Member
  
Join Date: May 2008
Posts: 11
 

Default 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,
__________________
Alan Ruud
X-Cart Ver. 4.4.1 (Unix)
Reply With Quote
  #5  
Old 01-24-2011, 08:11 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default 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}" />
Change to this:

Code:
<input type="text" name="tracking" value="{if $order.tracking eq ''}12345678{else}{$order.tracking|escape}{/if}" />
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote
  #6  
Old 01-24-2011, 08:48 AM
 
alanruud alanruud is offline
 

Member
  
Join Date: May 2008
Posts: 11
 

Default Re: Tracking Number

Worked perfectly - thanks so much...!
__________________
Alan Ruud
X-Cart Ver. 4.4.1 (Unix)
Reply With Quote
  #7  
Old 01-24-2011, 08:57 AM
 
alanruud alanruud is offline
 

Member
  
Join Date: May 2008
Posts: 11
 

Default 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?
__________________
Alan Ruud
X-Cart Ver. 4.4.1 (Unix)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:50 PM.

   

 
X-Cart forums © 2001-2020