*

mheston

  • ***
  • 51 posts
How do I show the region with two digits
« on: January 28, 2025, 02:33:55 AM »
I need help with showing the region with two digits.

<?php echo osc_item_country_code() ; ?> - Displays two digit country code.

Is there a way to display the region with two digits? 

*

MB Themes

Re: How do I show the region with two digits
« Reply #1 on: January 28, 2025, 09:47:17 PM »
you mean country code?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mheston

  • ***
  • 51 posts
Re: How do I show the region with two digits
« Reply #2 on: January 28, 2025, 11:32:10 PM »
Country code will display for example, US, CA, IN, IL.

I would like to display the state/region in two digits for example, TX for Texas, NY for New York.

state/region abbreviations
« Last Edit: Yesterday at 12:00:01 AM by mheston »

*

MB Themes

Re: How do I show the region with two digits
« Reply #3 on: Yesterday at 08:31:44 AM »
@mheston
Osclass locations does not have such data and there is not even field where to store it.
Solution is to alter region table, add column, add values (easiest way via database) and then bring it into theme.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots