@@ -20,11 +20,11 @@ discard block |
||
| 20 | 20 | protected function configure() |
| 21 | 21 | { |
| 22 | 22 | $this->setName('category:create:dummy') |
| 23 | - ->addArgument('store-id', InputArgument::OPTIONAL, 'Id of Store to create categories (default: 1)') |
|
| 24 | - ->addArgument('category-number', InputArgument::OPTIONAL, 'Number of categories to create (default: 1)') |
|
| 25 | - ->addArgument('children-categories-number', InputArgument::OPTIONAL, "Number of children for each category created (default: 0 - use '-1' for random from 0 to 5)") |
|
| 26 | - ->addArgument('category-name-prefix', InputArgument::OPTIONAL, "Category Name Prefix (default: 'My Awesome Category')") |
|
| 27 | - ->setDescription('Create a dummy category'); |
|
| 23 | + ->addArgument('store-id', InputArgument::OPTIONAL, 'Id of Store to create categories (default: 1)') |
|
| 24 | + ->addArgument('category-number', InputArgument::OPTIONAL, 'Number of categories to create (default: 1)') |
|
| 25 | + ->addArgument('children-categories-number', InputArgument::OPTIONAL, "Number of children for each category created (default: 0 - use '-1' for random from 0 to 5)") |
|
| 26 | + ->addArgument('category-name-prefix', InputArgument::OPTIONAL, "Category Name Prefix (default: 'My Awesome Category')") |
|
| 27 | + ->setDescription('Create a dummy category'); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |
@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | // Check if product exists |
| 58 | 58 | $collection = Mage::getModel('catalog/category')->getCollection() |
| 59 | - ->addAttributeToSelect('name') |
|
| 60 | - ->addAttributeToFilter('name', array('eq' => $name)); |
|
| 59 | + ->addAttributeToSelect('name') |
|
| 60 | + ->addAttributeToFilter('name', array('eq' => $name)); |
|
| 61 | 61 | $_size = $collection->getSize(); |
| 62 | 62 | if($_size > 0) { |
| 63 | 63 | $output->writeln("<comment>CATEGORY: WITH NAME: '".$name."' EXISTS! Skip</comment>"); |
@@ -233,11 +233,11 @@ 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') |
|
| 240 | - ->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') |
|
| 240 | + ->setHelp($help); |
|
| 241 | 241 | } |
| 242 | 242 | |
| 243 | 243 | /** |
@@ -298,9 +298,9 @@ discard block |
||
| 298 | 298 | // Attribute ID |
| 299 | 299 | if(is_null($input->getArgument('attribute-id'))) { |
| 300 | 300 | $attribute_code = Mage::getModel('eav/entity_attribute')->getCollection()->addFieldToSelect('*') |
| 301 | - ->addFieldToFilter('entity_type_id', array('eq' => 4)) |
|
| 302 | - ->addFieldToFilter('backend_type', array('in' => array('int'))) |
|
| 303 | - ->setOrder('attribute_id', 'ASC'); |
|
| 301 | + ->addFieldToFilter('entity_type_id', array('eq' => 4)) |
|
| 302 | + ->addFieldToFilter('backend_type', array('in' => array('int'))) |
|
| 303 | + ->setOrder('attribute_id', 'ASC'); |
|
| 304 | 304 | $_attribute_codes = array(); |
| 305 | 305 | |
| 306 | 306 | foreach($attribute_code as $item) { |