Migrate shopping price rules from old version to New version 1.9.xxx

Are you looking for solution for migration of shopping cart rules if yes here is the solution i am sharing for those who have been tired searching solution.

Here is Quick Solution you import and export Rules

(1) Create Advance  profile

Go to System ConfigurationImport and export  > Dataflow-Advanced Profile

shopping-cart-rules-migration-tutorials

For export CSV file Copy this profile 

<action type=”commerceextensions_shoppingcartrulesimportexport/convert_parser_couponcodeexport” method=”unparse”>
</action>

<action type=”dataflow/convert_mapper_column” method=”map”>
</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[export_bulk_coupon_codes.csv]]></var>
</action>

And save and click on run profile

For Export XML File copy this Profile 

<action type=”commerceextensions_shoppingcartrulesimportexport/convert_parser_couponcodeexport” method=”unparse”>
</action>

<action type=”dataflow/convert_mapper_column” method=”map”>
</action>

<action type=”dataflow/convert_parser_xml_excel” method=”unparse”>
<var name=”single_sheet”><![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[export_bulk_coupon_codes.xml]]></var>
</action>

 

For import go to store admin where you want to import follow same steps 

This enter this Profile for import CSV 

<action type=”dataflow/convert_adapter_io” method=”load”>
<var name=”type”>file</var>
<var name=”path”>var/import</var>
<var name=”filename”><![CDATA[importrules-or-yourname.csv]]></var>
<var name=”format”><![CDATA[csv]]></var>
</action>
<action type=”dataflow/convert_parser_csv” method=”parse”>
<var name=”delimiter”><![CDATA[,]]></var>
<var name=”enclose”><![CDATA[“]]></var>
<var name=”fieldnames”>true</var>
<var name=”number_of_records”>1</var>
<var name=”decimal_separator”><![CDATA[.]]></var>
<var name=”adapter”>commerceextensions_shoppingcartrulesimportexport/convert_adapter_couponcodeimport</var>
<var name=”method”>parse</var>
</action>

 

For import XML use this profile 

<action type=”dataflow/convert_adapter_io” method=”load”>
<var name=”type”>file</var>
<var name=”path”>var/import</var>
<var name=”filename”><![CDATA[export_bulk_coupon_codes.xml]]></var>
<var name=”format”><![CDATA[excel_xml]]></var>
</action>

<action type=”dataflow/convert_parser_xml_excel” method=”parse”>
<var name=”single_sheet”><![CDATA[]]></var>
<var name=”fieldnames”>true</var>
<var name=”store”><![CDATA[0]]></var>
<var name=”number_of_records”>1</var>
<var name=”decimal_separator”><![CDATA[.]]></var>
<var name=”adapter”>commerceextensions_shoppingcartrulesimportexport/convert_adapter_couponcodeimport</var>
<var name=”method”>parse</var>
</action>

 

Don’t forget to change your file name 

if you have any trouble you can write me on [email protected] Or Skype me : Zubypk92

Leave a Reply

Your email address will not be published. Required fields are marked *