This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
ini_set('time_limit', 180); | |
set_time_limit(180); | |
require_once dirname(__FILE__) . '/app/Mage.php'; | |
$app = Mage::app('admin'); | |
umask(0); | |
$categories = Mage::getModel('catalog/category') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre> | |
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
ini_set('max_execution_time', 1000); | |
require_once dirname(__FILE__) . './../app/Mage.php'; | |
Mage::app('default'); | |
$file = 'file_no_categories_product.csv'; | |
$csv = new Varien_File_Csv(); | |
$data = $csv->getData($file); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre> | |
<?php | |
$row = 1; | |
if (($handle = fopen('other_translate.csv', "r")) !== FALSE) { | |
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { | |
$num = count($data); | |
$row++; | |
$arrayTempMMM[] = array('original'=>$data[0],'translate'=>$data[1]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
ini_set('time_limit', 180); | |
set_time_limit(180); | |
require_once dirname(__FILE__) . './../app/Mage.php'; | |
$app = Mage::app('admin'); | |
umask(0); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
require_once './app/Mage.php'; | |
$data = array(); | |
/** | |
* Check SKU param | |
*/ | |
if (Mage::app()->getRequest()->getParam('sku')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
require_once './app/Mage.php'; | |
Mage::app(); | |
$collection = Mage::getModel('catalog/product')->getCollection(); | |
$productImg = array(); | |
$ii = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
require_once './app/Mage.php'; | |
Mage::app(); | |
$collection = Mage::getModel('catalog/product')->getCollection(); | |
$productImg = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('STDIN') or die(_("Access Denied. CLI Only")); | |
// execute from the command line: php <path to magento root>/cli/create_attributes.php | |
require __DIR__.'/../app/bootstrap.php'; // assuming this file is in /cli under the root magento dir | |
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER); | |
$installer = $bootstrap->getObjectManager()->create('Magento\Catalog\Setup\CategorySetup'); | |
$objectManager = $bootstrap->getObjectManager(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre> | |
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
require_once './app/Mage.php'; | |
$app = Mage::app(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sku,visibility,qty,_category,stock_availability | |
253116,5,0,,0 |