extendix / Extendix_CouponImport

Magento extension for batch coupons import. Could be used Magento Advanced Import/Export Profiles
1 stars 1 forks source link

Problem with import in Website.php #1

Open chrispooh15 opened 8 years ago

chrispooh15 commented 8 years ago

Great module. Can you help me with this error message? Notice: Undefined index: website_ids in ../app/code/community/Extendix/CouponImport/Model/Import/SalesRule/Website.php on line 23

ceckoslab commented 8 years ago

@chrispooh15 could you provide sample CSV file?

I need 1 line with column names and second line with coupon sample data.

chrispooh15 commented 8 years ago

name;description;is_active;website_ids;customer_group_ids;coupon_code;sku;uses_per_coupon;uses_per_customer;from_date;to_date;discount_amount;simple_action Test Name;Test Description;1;1,2;all;Test-code_1;1010-1000,1010-1100,1010-1200,4199-9999;;3;4-12-2015;;5;by_percent

ceckoslab commented 8 years ago

Hi @chrispooh15

I think that your problem is in the settings of Import Profile. Your CSV file looks good but I think that your delimiter in Import Profile is not configured properly.

If you use the example from my website then expected delimiter is "," not ";". In your CSV file you use ";".

I think that you have 2 options to solve this problem:

  1. Export CSV file with delimiter ","
  2. Change Import profile settings: Change <var name="delimiter"><![CDATA[,]]></var> to <var name="delimiter"><![CDATA[;]]></var>

Hope that this helps