Carriers

[COLOR=“Purple”]I asked this once before, but no one seemed to know at the time…but maybe now that we’ve skulked around the upgrades for a while, someone may have an answer :slight_smile:



The carrier listings in admin when viewing individual orders…there are several we’d never use, so in languages I changed the corresponding text to methods we DO use. In other words, the corresponding text for FedEx/DHL/Swiss Post, etc were replaced with UPS 2nd Day, Next Day, etc. Unfortunately when I print out the packing slip, work order or invoice, I get the original code from languages such as “FedEx”, “Swiss Post”, etc.



What I really need to know is where in any template are these listed ? I see them in admin, but cannot find where to change them so I get the text I need.



Any suggestions would be so very much appreciated…





An alternative… What coding could I use to insert a input field instead maybe ? And if this is possible, what coding can I use to have it print out on work orders & packing slips ?[/COLOR]

Hello Dawn,

Have you checked in Languages area in Admin to see if they are language variables? I haven’t looked but that’s where I would check first. You can search and see if they come up then you can change them to whatever you want without touching any templates.



Just a thought…

[quote name=‘scase’]Hello Dawn,

Have you checked in Languages area in Admin to see if they are language variables? I haven’t looked but that’s where I would check first. You can search and see if they come up then you can change them to whatever you want without touching any templates.



Just a thought…[/QUOTE]



[COLOR=“Purple”]That is the only place where I looked & found some reference to them…and the ones I found such as Australia Post, DHL, etc, I changed the editable text to what we needed. But it seems as if the original code text (option value) is what comes up when trying to print out the corresponding text:[/COLOR]



Carrier:

--
USPS Priority
UPS Ground
USPS Express Int.
UPS 2nd Day Air
UPS Next Day Air Saver
UPS 3 Day Air



[COLOR="Purple"]If only I could find the list above & change the option value.....[/COLOR]

You could try changing the file:



skins/your-skin/admin/pickers/shipment_picker_contents.tpl



This is the code you would want to change:









I hope that helps,



Brandon

[quote name=‘brandonvd’]You could try changing the file:



skins/your-skin/admin/pickers/shipment_picker_contents.tpl



This is the code you would want to change:









I hope that helps,



Brandon[/QUOTE]



[COLOR=“Purple”]Brandon,



I thought for sure we had it, and I was so excited…but I guess that is not where it is pulling from. There must be a location in the template for the order viewing that has it specified. Here is what I changed in both the template you suggested:[/COLOR]



{$lang.carrier}:

--
{$lang.usps}
{$lang.fedex}
{$lang.ups}
{$lang.chp}
{$lang.australia_post}
{$lang.dhl}



[COLOR="Purple"]& "Carriers.tpl" I changed them all as well.

But this may be the difference. Notice in the source code for viewing the orders:
[/COLOR]


Carrier:
[COLOR="Red"][/COLOR]
--
U.S.P.S. Priority
UPS Ground
UPS 3 Day
USPS Express Int.
UPS Next Day Air Saver
UPS 2nd Day Air




[COLOR="Purple"]Anyone have any other ideas of where this little tidbit may be hiding ? Does the above highlighted code mean anything ?[/COLOR]

[COLOR=“Purple”]I contacted CS-Cart, at the expense of 5 points, & received the answer…



/your_skin/basic/admin/views/profiles/components/profile_info.tpl



Line 97 starts the division, and I just replaced all the languages text & options to simplify things in case I need to add more later on. I tested it and it works fine:

[/COLOR]


{$lang.carrier}:

--
USPS Priority
USPS Express Int.
USPS Priority Int.
UPS Ground
UPS 3 Day Air
UPS 2nd Day Air
UPS Next Day Saver

That’s great Dawn. I wish I could have been more help, but I guess that is why there is CS support.



I’m glad you got that sorted out.



Brandon

[quote name=‘brandonvd’]That’s great Dawn. I wish I could have been more help, but I guess that is why there is CS support.



I’m glad you got that sorted out.



Brandon[/QUOTE]



[COLOR=“Purple”]You are always a great help Brandon :wink: Thanks so very much for tryin’…I appreciate it !

[/COLOR]