-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5
-- Browser(s) name and version -- : google chorm
i am trying to alter the display of the adress for fax to EDI. two requirements is the 3 digit country code and the 2 digit state code.
I was able to do the country code with the code shown below
<?php
$address = $this->params->get('address');
echo $address->address_country_code_3; ?>
so naturally i tried
<?php
$address = $this->params->get('address');
echo $address->address_state_code_2; ?>
but that returned zero data so i reverted the code back to what was working
<?php
/**
* @package HikaShop for Joomla!
* @version 2.6.0
* @author hikashop.com
* @copyright (C) 2010-2015 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
{address_company}
{address_title} {address_firstname} {address_lastname}
{address_street}
{address_city} {address_state} {address_post_code}
<?php
$address = $this->params->get('address');
echo $address->address_country_code_3; ?>
<?php echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?>
I need {address_state} to change out to the address_state_code_2 but need to know what the proper reference would be. Thank you in advance for your help