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)
-   -   Need help with moving tracking number field (https://forum.x-cart.com/showthread.php?t=49183)

MrHeeltoe 08-14-2009 06:17 PM

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?

amy2203 08-14-2009 09:18 PM

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,

MrHeeltoe 08-14-2009 10:47 PM

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.

amy2203 08-14-2009 11:46 PM

Re: Need help with moving tracking number field
 
perhaps it was within a loop or section, and now it's not?

MrHeeltoe 08-16-2009 12:02 PM

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.


All times are GMT -8. The time now is 12:31 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.