Find Jobs
Hire Freelancers

PHP Script export Attribute Magento

€8-30 EUR

Terminado
Publicado hace más de 8 años

€8-30 EUR

Pagado a la entrega
I have this scirpt in php (attached [login to view URL]) <?php error_reporting(E_ALL | E_STRICT); define('MAGENTO_ROOT', getcwd()); $compilerConfig = MAGENTO_ROOT . '/includes/[login to view URL]'; if (file_exists($compilerConfig)) { include $compilerConfig; } $mageFilename = MAGENTO_ROOT . '/app/[login to view URL]'; require_once $mageFilename; ini_set('display_errors', 1); Mage::app(); $storeId = 15; //id store Mage::app()->setCurrentStore(Mage::getModel('core/store')->load($storeId)); $collection = Mage::getModel('catalog/product')->getCollection(); $collection->addAttributeToSelect('*'); $collection->addAttributeToFilter('status', 1);//attivo prodotto 1 o 0 $lines = array(); //parte stampo prima riga $lines[] = array("Prodotto SKU","Nome Prodotto","Prezzo Prodotto","Prodotto URL","Descrizione Prodotto","Immagine URL","Categoria Prodotto"); //arreizzo tutti i dati sotto foreach ($collection as $product) { $line = array(); $line[] = $product->getSku();//Prodotto SKU $line[] = $product->getName();//Nome Prodotto $line[] = $product->getFinalPrice();//Prezzo Prodotto $line[] = $product->getProductUrl(); //Prodotto URL $line[] = $product->getShortDescription();//Descrizione Prodotto $line[] = Mage::helper('catalog/image')->init($product, 'image')->__toString(); //Immagine URL IN CACHE $categories = $product->getCategoryCollection(); $categoryNames = array(); foreach ($categories as $category) { $categoryNames[] = $category->getName(); } $line[] = implode(' | ', $categoryNames); //Categoria Prodotto INFAME $lines[] = $line; } foreach ($lines as $line) { echo '"'.implode('","', $line).'"'."\n"; } It does not work properly. - Do not export categories - Do not export successfully links to product images. ( i prefer a original image not cache image) They must be added to the fields in the sample file (attached [login to view URL]) Red: fields add green: fields must remain empty. fields must be in the order of file [login to view URL] the script should automatically save a file in the root of file [login to view URL] R.
ID del proyecto: 8378590

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 9 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
Hello Thank you for posting this project.I am highly interested to do this project.I can help you for done 100% satisfied work. I don't need any payment now. payment me when you are happy. I want long term work [login to view URL] forward. Thanks
€16 EUR en 0 día
4,0 (16 comentarios)
3,9
3,9
4 freelancers están ofertando un promedio de €31 EUR por este trabajo
Avatar del usuario
A proposal has not yet been provided
€40 EUR en 1 día
5,0 (29 comentarios)
4,8
4,8

Sobre este cliente

Bandera de ITALY
p borromeo, Italy
5,0
31
Forma de pago verificada
Miembro desde mar 24, 2013

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.