Jump to content

Import combinations csv - columns do not match in database


dirtrider118

Recommended Posts

Hello,

I'm trying to update existing combinations using CSV import. I load the csv and match all the column names but after import the data is getting inserted into the wrong columns inside the ps_product_attribute database table. I can confirm my CSV structure works fine for adding and updating products.

At this point I'm only trying to test import the CSV template using the only the default fields.

I should note I have added 6 or so custom fields to the back office for each combination. I can add the custom values for each combination fine into the "ps_product_attribute" table from backoffice > product > combinations. I think because I added these new fields it has messed up the order of the CSV import to the ps_product_attribute database table.

For example: when I import the combination CSV, the default UPC value is getting inserted into one of the new fields I created in the ps_product_attribute database table. I added all the new fields to the end of the ps_product_attribute database table so i'm not sure why it would mess up the default CSV import order. 

If someone could point me in the right direction to the function that handles the import order into the data base that would be great. Let me know if you would like to see any of my code.

Prestashop 1.6.1.17

Screen Shot 2020-10-15 at 9.50.00 AM.png

Screen Shot 2020-10-15 at 9.51.08 AM.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...