Magento Shopper update sku qty via import CSV only process the first record -


I'm sure what's going on, but use this template (queldorei.com)? I am unable to update the volume using CSV import.

Here is the contents of my CSV file:

  sku, qty sku_red, 444 sku_green, 222 sku_blue, 333   

However, Every time I change it to System & gt; Import / Export & gt; Import & gt; Products: Replace existing , then it will replace the quantity of all my products: "444" (previously recorded). It only takes the first line of the CSV and applies to all my products.

My product setup is:

  1. Red (simple) - sku_red
  2. Green (simple) - squash_green
  3. Blue ( The main thing (configuration product related to the above 3 products) - sku_main

    The only thing I can do is to simulate the base magenta website (non-template) Tried and worked it perfectly.

    Would you please tell me how to fix it ??

    Or maybe you can find out which file (PHP) I can see which is relevant to the Magneso product import process ??

    Thanks

    I just went through a single problem I do not know That is how many versions of Magnistor have the same problem, but you can fix it in the app / code / core / mage / importexport / model / import / entity / product.php and file Neither close to 1608.

    To find that location without using line numbers, just go to the method '_saveStockItem' and you will see how the manager prepares the data for each line. The main problem begins here:

      $ line ['product_id'] = $ this- & gt; _newsku [$ rowData [auto :: COL_SKU]] ['unit_id'];   

    Product data is being started on that data, but the developer has forgotten to reset the $ line with $ code = $ row = array () . So instead of starting an array like this:

      $ row = array ('product_id' => $ this-> _newSku [$ rowData [auto :: COL_SKU]] , 'Stock_id' = & gt; 1);   

    We have:

      $ row = array (// last $ line data (for example qty) // which are not more than two lines below Reset array ... 'product_id' => $ this- & gt; _newSku [$ rowData [auto :: COL_SKU]], 'stock_id' => 1);   

    Some merges the magazines in the next rows:

    1. $ defaultStockData
    2. Product stock data (available from the database
    3. CSV data
    4. $ line data (which should only be product_id and stock_id)

      then we can assume it (verified) Without), if $ line is not reset with $$ = array () then the first row's data will be used as data from all the other rows.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -