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

Poll
Did this help you get your import working?
Yes 5
No 2
Total Votes: 7
You must be a logged-in member to vote
Expand a file on Import or Export…..Solved
 
nafnaf1000
Sr. Member
 
Total Posts:  209
Joined:  2008-02-21
 

add this file to app/local/Mega/DataFlow/Model/Convert/Parser/Expand.php

in your advanced profile put what ever static data that you want....

<action type="dataflow/convert_parser_Expand" method="parse">
   <var 
name="delimiter"><![CDATA[|]]></var>
   <var 
name="enclose"><![CDATA[]]></var>
   <var 
name="has_headers"><![CDATA[yes]]></var>
   <var 
name="type"><![CDATA[simple]]></var>
   <var 
name="attribute_set"><![CDATA[Default]]></var>
   <var 
name="manage_stock"><![CDATA[1]]></var>
   <var 
name="websites"><![CDATA[base]]></var>
   <var 
name="status"><![CDATA[Enabled]]></var>
   <var 
name="visibility"><![CDATA[CatalogSearch]]></var>
   <var 
name="store"><![CDATA[admin]]></var>
   <var 
name="tax_class_id"><![CDATA[Taxable Goods]]></var>
</
action>

now add the map for the extra data that you just added.

<map name="type"><![CDATA[type]]></map>
        <
map name="attribute_set"><![CDATA[attribute_set]]></map>
        <
map name="manage_stock"><![CDATA[manage_stock]]></map>
        <
map name="websites"><![CDATA[websites]]></map>
        <
map name="status"><![CDATA[status]]></map>
        <
map name="visibility"><![CDATA[visibility]]></map>
        <
map name="website"><![CDATA[website]]></map>
        <
map name="tax_class_id"><![CDATA[tax_class_id]]></map>

this is 1 small bug that I have not been able to fix for i worked around it.
in my map I added <map name=” “><![CDATA[ ]]></map> bore the last map

Please post any changes that will enhance this code.

Thanks,

Happy Expanding.

File Attachments
Expand.php  (File Size: 3KB - Downloads: 162)
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top