SOLVED: Extract the company address from CGEcommerceBase
Posted: Tue Sep 06, 2011 12:13 am
I have this at the bottom of my template
{cge_have_module m='CGEcommerceBase' assign='tmp'}
{cgecomm_company_address assign='company_address'}
{$company_address|debug_display}
and it produces this on the page
cg_ecomm_company_address Object
(
[_company:private] => Company name
[_firstname:private] =>
[_lastname:private] =>
[_address1:private] =>
[_address2:private] =>
[_city:private] =>
[_state:private] =>
[_postal:private] =>
[_country:private] =>
[_phone:private] =>
[_fax:private] =>
[_email:private] =>
)
I want to extract the company address in order to display it in the footer.
{$company_address->_address1} is giving me nothing.
{$company_address->get_address1()} does the trick
{cge_have_module m='CGEcommerceBase' assign='tmp'}
{cgecomm_company_address assign='company_address'}
{$company_address|debug_display}
and it produces this on the page
cg_ecomm_company_address Object
(
[_company:private] => Company name
[_firstname:private] =>
[_lastname:private] =>
[_address1:private] =>
[_address2:private] =>
[_city:private] =>
[_state:private] =>
[_postal:private] =>
[_country:private] =>
[_phone:private] =>
[_fax:private] =>
[_email:private] =>
)
I want to extract the company address in order to display it in the footer.
{$company_address->_address1} is giving me nothing.
{$company_address->get_address1()} does the trick