@@ -233,10 +233,10 @@ discard block |
||
233 | 233 | - en_GB |
234 | 234 | HELP; |
235 | 235 | $this->setName('eav:attribute:create-dummy-values')->addArgument('locale', InputArgument::OPTIONAL, 'Locale') |
236 | - ->addArgument('attribute-id', InputArgument::OPTIONAL, 'Attribute ID to add values') |
|
237 | - ->addArgument('values-type', InputArgument::OPTIONAL, 'Types of Values to create (default int)') |
|
238 | - ->addArgument('values-number', InputArgument::OPTIONAL, 'Number of Values to create (default 1)') |
|
239 | - ->setDescription('Create a dummy values for dropdown attributes')->setHelp($help); |
|
236 | + ->addArgument('attribute-id', InputArgument::OPTIONAL, 'Attribute ID to add values') |
|
237 | + ->addArgument('values-type', InputArgument::OPTIONAL, 'Types of Values to create (default int)') |
|
238 | + ->addArgument('values-number', InputArgument::OPTIONAL, 'Number of Values to create (default 1)') |
|
239 | + ->setDescription('Create a dummy values for dropdown attributes')->setHelp($help); |
|
240 | 240 | } |
241 | 241 | |
242 | 242 | /** |
@@ -296,9 +296,9 @@ discard block |
||
296 | 296 | // Attribute ID |
297 | 297 | if(is_null($input->getArgument('attribute-id'))) { |
298 | 298 | $attribute_code = Mage::getModel('eav/entity_attribute')->getCollection()->addFieldToSelect('*') |
299 | - ->addFieldToFilter('entity_type_id', array('eq' => 4)) |
|
300 | - ->addFieldToFilter('backend_type', array('in' => array('int'))) |
|
301 | - ->setOrder('attribute_id', 'ASC'); |
|
299 | + ->addFieldToFilter('entity_type_id', array('eq' => 4)) |
|
300 | + ->addFieldToFilter('backend_type', array('in' => array('int'))) |
|
301 | + ->setOrder('attribute_id', 'ASC'); |
|
302 | 302 | $_attribute_codes = array(); |
303 | 303 | |
304 | 304 | foreach($attribute_code as $item) { |
@@ -220,11 +220,11 @@ |
||
220 | 220 | public static function getValueTypeList() |
221 | 221 | { |
222 | 222 | return array( |
223 | - 'int' => 'int', |
|
224 | - 'string' => 'string', |
|
225 | - 'color' => 'color', |
|
226 | - 'size' => 'size', |
|
227 | - 'designer' => 'designer', |
|
223 | + 'int' => 'int', |
|
224 | + 'string' => 'string', |
|
225 | + 'color' => 'color', |
|
226 | + 'size' => 'size', |
|
227 | + 'designer' => 'designer', |
|
228 | 228 | ); |
229 | 229 | } |
230 | 230 |