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)
-   -   I want to dsiplay two letter states on the order.tpl (https://forum.x-cart.com/showthread.php?t=21996)

rcg 05-22-2006 05:33 PM

I want to dsiplay two letter states on the order.tpl
 
As the subject states...

Right now when reviewing orders I see something like

Bob Smith
123 Any Street
San Francisco California 94105

I want to see

Bob Smith
123 Any Street
San Francisco CA 94105

I know the the codes are in there... How do I mod {$customer.s_statename}???

geckoday 05-23-2006 06:09 AM

I believe you use $customer.s_state instead of $customer.s_statename

rcg 05-24-2006 10:24 AM

Thank you that worked.

I thought initially it was stateid or something.

carpeperdiem 07-27-2006 06:48 PM

Thank you for this code.

While we're on this page, can someone suggest the best way to if/else remove the country --

{if $userinfo.default_fields.b_country} = United States, then display nothing at all... else, display the country.

Since we're shipping from the US to primarily US addresses, US Postal does not like the extra line under the "City, ST ZIP" -- I'd very much like to remove the country, only for "United States" -- I'm still learning smarty editing, and I'm sure it's a 2 liner...

Anyone know how to do this?

Thanks!

Jeremy


All times are GMT -8. The time now is 08:37 PM.

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