Originally posted by rguisewite
View Post
Hey Paul,
Including the shipping rules into the product import is pretty straightforward. Posting an example of how it would be done below. Another option you could do (this is just in case you wanted to mess around with what fields are available for importing, etc) is go to Data Management > Import/Export and click the "Export Products to Flat File" button. There, you can select all the fields and data you want to export, then export however many of your products you want (make sure you have the export format set to "Product Import") and when you view the file, it will give you an example, using your own data, as to how the product import module will read it back.
Anyway, here is the example of a generic import (I filtered out a lot of the product fields just so it is easier to read):
If you didn't care about the shipping package dimensions (ie, you're just interested in the permitted shipping methods), you'd just remove them, like so:
where "flatrate" is the module code ":" is the separator between module code and method code, and "shippingmethod_1" is the method code. This can be a comma separated list of all the [module_code]:[method_code] formatted permitted shipping methods for the product.
Let me know if anything above isn't quite clear or the exact info you were looking for is absent :)
Ryan
Including the shipping rules into the product import is pretty straightforward. Posting an example of how it would be done below. Another option you could do (this is just in case you wanted to mess around with what fields are available for importing, etc) is go to Data Management > Import/Export and click the "Export Products to Flat File" button. There, you can select all the fields and data you want to export, then export however many of your products you want (make sure you have the export format set to "Product Import") and when you view the file, it will give you an example, using your own data, as to how the product import module will read it back.
Anyway, here is the example of a generic import (I filtered out a lot of the product fields just so it is easier to read):
Code:
PRODUCT_CODE,PRODUCT_NAME,SHIPPING_WIDTH,SHIPPING_LENGTH,SHIPPING_HEIGHT,SEPARATE_PACKAGE,LIMIT_SHIPPING_METHODS,SHIPPING_METHODS my_product_code,my_product_name,10,5,12,1,1,"flatrate:shippingmethod_1,minunit:minunit_1"
Code:
PRODUCT_CODE,PRODUCT_NAME,LIMIT_SHIPPING_METHODS,SHIPPING_METHODS my_product_code,my_product_name,1,"flatrate:shippingmethod_1,minunit:minunit_1"
Let me know if anything above isn't quite clear or the exact info you were looking for is absent :)
Ryan
Comment