[Solved] Magento Programming: Importing manufacturers while checking for existing duplicates and get manu. ID

Just a quick and dirty script, but this should be what you are looking for… <?php error_reporting(E_ALL | E_STRICT); ini_set(‘display_errors’, 1); /* * Boostrap Magento */ $mageFilename=”../app/Mage.php”; require_once $mageFilename; Mage::setIsDeveloperMode(true); umask(0); $mageRunCode=””; $mageRunType=”store”; Mage::init($mageRunCode, $mageRunType); /* * Set up required data */ $newManufacturers = file(‘manufacturers.txt’, FILE_SKIP_EMPTY_LINES | FILE_IGNORE_NEW_LINES); $newManufacturers = array_unique($newManufacturers); $attribute = Mage::getModel(‘eav/entity_attribute’) ->loadByCode(‘catalog_product’, … Read more

[Solved] Import data from an API link that contains JSON to EXCEL [closed]

First of all you need to examine the structure of the JSON response, using any online JSON viewer (e. g. http://jsonviewer.stack.hu/), where you can see that your JSON object contains atletas array, clubes, posicoes, status, time objects, and several properties with scalar values: Going further there are objects within atletas array, each of them contains … Read more