init
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace Stemcell\ChineseDirectory\Model\Entity\Attribute\Source;
|
||||
|
||||
use Magento\Eav\Model\Entity\Attribute\Source\AbstractSource;
|
||||
|
||||
class CityId extends AbstractSource
|
||||
{
|
||||
public function getAllOptions()
|
||||
{
|
||||
return $this->_options = [
|
||||
['value' => '', 'label' => __('Please select a city.')]
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace Stemcell\ChineseDirectory\Model\Entity\Attribute\Source;
|
||||
|
||||
use Magento\Eav\Model\Entity\Attribute\Source\AbstractSource;
|
||||
|
||||
class DistrictId extends AbstractSource
|
||||
{
|
||||
public function getAllOptions()
|
||||
{
|
||||
return $this->_options = [
|
||||
['value' => '', 'label' => __('Please select a district.')]
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace Stemcell\ChineseDirectory\Model\Entity\Attribute\Source;
|
||||
|
||||
use Magento\Eav\Model\Entity\Attribute\Source\AbstractSource;
|
||||
|
||||
class TownId extends AbstractSource
|
||||
{
|
||||
public function getAllOptions()
|
||||
{
|
||||
return $this->_options = [
|
||||
['value' => '', 'label' => __('Please select street.')]
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user