I cant find any documentation on this, I dont even know if its possible.
I need to export some products, I already have the profile, because this export is for a competitive site like nextag.com or pricegrabber.com we want to export only a few products and not the 3000 we have.
I could create a boolean attribute called Export.
The problem is how can I put in the profile to export only products that export is set to yes?
This is the code that it generates:
<action type="catalog/convert_adapter_product" method="load">
<var name="store"><![CDATA[5]]></var>
<var name="filter/type"><![CDATA[simple]]></var>
<var name="filter/price/from"><![CDATA[90]]></var>
<var name="filter/price/to"><![CDATA[6000]]></var>
<var name="filter/status"><![CDATA[1]]></var>
</action>
<action type="catalog/convert_parser_product" method="unparse">
<var name="store"><![CDATA[5]]></var>
<var name="url_field"><![CDATA[1]]></var>
</action>
<action type="dataflow/convert_mapper_column" method="map">
<var name="map">
<map name="sku"><![CDATA[MPN/UPC]]></map>
<map name="brand"><![CDATA[Manufacturer]]></map>
<map name="name"><![CDATA[Product Name]]></map>
<map name="product_link"><![CDATA[product_link]]></map>
<map name="condition"><![CDATA[Product Condition]]></map>
<map name="price"><![CDATA[Selling Price]]></map>
<map name="shipping_costs"><![CDATA[Shipping costs]]></map>
<map name="weight_box1"><![CDATA[Weight]]></map>
</var>
<var name="_only_specified">true</var>
</action>
<action type="dataflow/convert_parser_csv" method="unparse">
<var name="delimiter"><![CDATA[,]]></var>
<var name="enclose"><![CDATA["]]></var>
<var name="fieldnames">true</var>
</action>
<action type="dataflow/convert_adapter_io" method="save">
<var name="type">file</var>
<var name="path">var/export</var>
<var name="filename"><![CDATA[nextagfeed.csv]]></var>
</action>
Thank
Try adding the export filter to your actions xml
Something like
That is telling magento to filter the product collection by price status and the export attribute, because export is boolean you need set the corresponding boolean value in this case 1 for true.
Now if this doesn’t work maybe it would be easier adding your product Parser and using advanced imports. Let me know how it goes.
Ok, now we know that definitively doesn’t work but lets look why it doesn’t work. The reason is we are missing that filter on our adapter open
look for the load function around line 99:
And just below store id add your new filter
Cheers