X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Tracking Number (https://forum.x-cart.com/showthread.php?t=43382)

alanruud 10-31-2008 11:38 PM

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

geckoday 11-01-2008 05:26 AM

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}>

alanruud 11-02-2008 12:40 AM

Re: Tracking Number
 
That is exactly what I was looking for...thanks so much!

alanruud 01-24-2011 07:54 AM

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,

geckoday 01-24-2011 08:11 AM

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}" />

alanruud 01-24-2011 08:48 AM

Re: Tracking Number
 
Worked perfectly - thanks so much...!

alanruud 01-24-2011 08:57 AM

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.