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

Need help with moving tracking number field

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-14-2009, 06:17 PM
 
MrHeeltoe MrHeeltoe is offline
 

eXpert
  
Join Date: Jan 2006
Posts: 206
 

Default Need help with moving tracking number field

Ok I went and tried to do this the easy way, and It works...kinda.

In template main/histroy_order.tpl I moved this code:

Code:
{$lng.lbl_tracking_number}:<br /> <INPUT type="textarea" name="tracking" value="{$order.tracking}"{if $usertype eq 'C'} readonly{/if}> {if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode)}


I moved it from below the order status drop down and I moved it up the page, just after:

Code:
{if $products[prod_num].product_options ne "" && $active_modules.Product_Options ne ''} <TR> <TD valign="top">{$lng.lbl_selected_options}</TD> <TD valign="top">{include file="modules/Product_Options/display_options.tpl" options=$products[prod_num].product_options options_txt=$products[prod_num].product_options_txt force_product_options_txt=$products[prod_num].force_product_options_txt}</TD> </TR> {/if}

So the field displays ok, but if I have more than one item with different tracking numbers, it displays whatever the last number was. I am assuming system is just looking at the last one and updating all tracking fields because the fields are all still "order" fields and are not "product" fields.

And, I am fairly certain this bit has something to do with it:

Code:
{$lng.lbl_tracking_number}:<br /> <INPUT type="textarea" name="tracking" value="{$order.tracking}"{if $usertype eq 'C'} readonly{/if}> {if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode)}

But I am clueless as to what I should do with it.

Lil help?
Reply With Quote
  #2  
Old 08-14-2009, 09:18 PM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: Need help with moving tracking number field

was this working differently bfore you made the change?

try putting it back to check,

not sure why you've also moved the
{if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode)}

without looking at the rest of the code, I would have thought this was not connected to the bit you are trying to edit, moving the start of an if can radically affect your page, I'd move that line back anyway,
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #3  
Old 08-14-2009, 10:47 PM
 
MrHeeltoe MrHeeltoe is offline
 

eXpert
  
Join Date: Jan 2006
Posts: 206
 

Default Re: Need help with moving tracking number field

yea that didnt probably need to be moved, but it isn't effecting thiungs either.

The tracking number field worked before I moved it, and it still works, but it is not specific to the part in the order, it is still referring to the whole order itself. I am not sure that is making sense, but its the best I got for now.
Reply With Quote
  #4  
Old 08-14-2009, 11:46 PM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: Need help with moving tracking number field

perhaps it was within a loop or section, and now it's not?
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #5  
Old 08-16-2009, 12:02 PM
 
MrHeeltoe MrHeeltoe is offline
 

eXpert
  
Join Date: Jan 2006
Posts: 206
 

Default Re: Need help with moving tracking number field

That code really isn't the issue. I've moved it here and there and it makes no difference.
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 09:52 AM.

   

 
X-Cart forums © 2001-2020