[*] BO #PSFV-94 : Added AdminImportController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9974 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -259,6 +259,28 @@ class ShopCore extends ObjectModel
|
||||
return $shop;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Address the current shop address
|
||||
*/
|
||||
public function getAddress()
|
||||
{
|
||||
if (!isset($this->address))
|
||||
{
|
||||
$address = new Address();
|
||||
$address->company = Configuration::get('PS_SHOP_NAME');
|
||||
$address->id_country = Configuration::get('PS_SHOP_COUNTRY_ID');
|
||||
$address->id_state = Configuration::get('PS_SHOP_STATE_ID');
|
||||
$address->address1 = Configuration::get('PS_SHOP_ADDR1');
|
||||
$address->address2 = Configuration::get('PS_SHOP_ADDR2');
|
||||
$address->postcode = Configuration::get('PS_SHOP_CODE');
|
||||
$address->city = Configuration::get('PS_SHOP_CITY');
|
||||
|
||||
$this->address = $address;
|
||||
}
|
||||
|
||||
return $this->address;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get shop theme name
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user