| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
I want to dsiplay two letter states on the order.tpl | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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}???
__________________
X-Cart GOLD 4.0.17 Affiliate RMA AOM Configurator --- PHP 4.4.2 MYSQL 4.1.21 |
|||||||
#2
|
|||||||
|
|||||||
![]() I believe you use $customer.s_state instead of $customer.s_statename
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#3
|
|||||||
|
|||||||
![]() Thank you that worked.
I thought initially it was stateid or something.
__________________
X-Cart GOLD 4.0.17 Affiliate RMA AOM Configurator --- PHP 4.4.2 MYSQL 4.1.21 |
|||||||
#4
|
|||||||
|
|||||||
![]() 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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|