SOLVED: Extract the company address from CGEcommerceBase

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
sjo123
New Member
New Member
Posts: 7
Joined: Sun Jul 11, 2010 6:07 am

SOLVED: Extract the company address from CGEcommerceBase

Post by sjo123 »

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
Locked

Return to “Modules/Add-Ons”