Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Export products with calculated data
 
hippoglollum
Sr. Member
 
Total Posts:  97
Joined:  2010-04-07
 

I would know how can i get a csv file as the Export All Product profile but adding some calculated fields.

In Export All Product i Map some fields and i would add some other fields calculating some percentage.

I worked with products import and i needed to create a PHP Class as to overload the SaveRow function…

is there something similar for exporting data?

thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
amartinez
Guru
 
Avatar
Total Posts:  347
Joined:  2008-11-14
Spain
 

I think the best option is to use the new ImportExport method, so you can extend app/code/core/Mage/ImportExport/Model/Export/Adapter/Csv.php, to Csvcalculated.php (e.g.) and edit writeRow function.

I add some export features to this extension soon.

Bye!

 
Magento Community Magento Community
Magento Community
Magento Community
 
hippoglollum
Sr. Member
 
Total Posts:  97
Joined:  2010-04-07
 

My Magento is always a 1.4.2.0 version…

 
Magento Community Magento Community
Magento Community
Magento Community
 
amartinez
Guru
 
Avatar
Total Posts:  347
Joined:  2008-11-14
Spain
 

mmm… do you look in app/code/core/Mage/Catalog/Model/Convert?

and app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php “save” function

you can “make” you own export script, via Mage() methods or web services, like:

<?php
$client
= new SoapClient('http://www.yourwebsite.com/index.php/api/soap/?wsdl');
$sess_id$client->login('USER''PASSKEY');
$all_products=$client->call($sess_id'product.list');
 
foreach(
$all_products as $product)
{
  
// price is supposed, search for your correct attribute names...
  
$product['price'$product['price'1.5;
  
var_dump($product);
}
;
?>

regards!

 
Magento Community Magento Community
Magento Community
Magento Community
 
amartinez
Guru
 
Avatar
Total Posts:  347
Joined:  2008-11-14
Spain
 

HI again! I have good news!

I am pleased to inform you that my free extension ”AMartinez_CustomImportExport” can now export as well.

It’s the first step to future functionalities.

Feel free to test it and report any issue or suggestion!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top