[Skip to main content](#vessel-content)

#   3 Letter Code instead of State\_Name on Invoices

##

- **[shifty\_](/forum/user/3676-shifty "View shifty&#95;'s Profile")**
- [![shifty&#95;'s Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3676-shifty "View shifty&#95;'s Profile") Topic Author
- [ Offline](/forum/user/3676-shifty)

Less More

- Posts: 35
- Thank you received: 1
-
-

11 years 7 months ago [\#195860](#195860) by [shifty\_](/forum/user/3676-shifty "View shifty&#95;'s Profile")  *[3 Letter Code instead of State\_Name on Invoices](/forum/35-orders-management/875881-3-letter-code-instead-of-state-name-on-invoices#195860 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.1 -- Browser(s) name and version -- : All Browsers  Hi There  I have been customising the Shipping and Tax Invoices for the ISIS template by modifying the invoice.php override file.  I have made some changes to the ISIS Address Template too (address&#95;template.php). But I can't figure out how to use the 3 Letter State Code instead of the State Name in the address template.  For example I now have the shipping and billing address showing as:  Sydney New South Wales 2000.  But I would like it to be:  Sydney NSW 2000  Is this possible? If so how would I go about this?  Kind regards  Mark")* was created by *[shifty\_](/forum/user/3676-shifty "View shifty&#95;'s Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.1
-- Browser(s) name and version -- : All Browsers

Hi There

I have been customising the Shipping and Tax Invoices for the ISIS template by modifying the invoice.php override file.

I have made some changes to the ISIS Address Template too (address_template.php). But I can't figure out how to use the 3 Letter State Code instead of the State Name in the address template.

For example I now have the shipping and billing address showing as:

Sydney New South Wales 2000.

But I would like it to be:

Sydney NSW 2000

Is this possible? If so how would I go about this?

Kind regards

Mark

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NTg4MS0zLWxldHRlci1jb2RlLWluc3RlYWQtb2Ytc3RhdGUtbmFtZS1vbi1pbnZvaWNlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 7 months ago [\#195866](#195866) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[3 Letter Code instead of State\_Name on Invoices](/forum/35-orders-management/875881-3-letter-code-instead-of-state-name-on-invoices#195866 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.1 -- Browser(s) name and version -- : All Browsers  Hi There  I have been customising the Shipping and Tax Invoices for the ISIS template by modifying the invoice.php override file.  I have made some changes to the ISIS Address Template too (address&#95;template.php). But I can't figure out how to use the 3 Letter State Code instead of the State Name in the address template.  For example I now have the shipping and billing address showing as:  Sydney New South Wales 2000.  But I would like it to be:  Sydney NSW 2000  Is this possible? If so how would I go about this?  Kind regards  Mark")*

Hi,

This will require some code to edit the display.
For example in the view "address / show" you will have to replace: Code:

echo $this-&gt;addressClass-&gt;displayAddress($this-&gt;fields,$this-&gt;address,'address');

By a code which will edit the address state name by its state code. Code:

// Get the address html $address = $this-&gt;addressClass-&gt;displayAddress($this-&gt;fields,$this-&gt;address,'address'); // Then add code to process it in order to replace the state name by the state code

It require php knowledges.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NTg4MS0zLWxldHRlci1jb2RlLWluc3RlYWQtb2Ytc3RhdGUtbmFtZS1vbi1pbnZvaWNlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.137 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
