• Getting this error when trying to import my YMM vehicle data:
    Ymm CSV file has not been imported. The first row in the .csv file must contain correct column names. And the columns should have special order: “product_sku”,”make”,”model”,”year_from”,”year_to”

    From what I can tell, my CSV looks right – it’s here: https://www.dropbox.com/s/7d3sqjbkv1ln2dx/cars2.csv?dl=0

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    > special order: “product_sku”,”make”,”model”,”year_from”,”year_to”

    I see your csv file has extra column “submodel”:
    “product_sku”,”make”,”model”,”submodel”,”year_from”,”year_to”

    Stanislav

    Thread Starter brad hogan

    (@bradley2083)

    Ok so if I adjust the fields in the config.php (using the Year Make Model Engine modification) to ‘submodel’ instead of ‘engine’ that should allow the import ok?

    protected $_csvColumnNames = array(‘product_sku’, ‘make’, ‘model’, ‘submodel’, ‘year_from’, ‘year_to’);

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Yes, you can use the “Year Make Model Engine” version and then
    rename “Engine” to “Submodel” in two files:
    wp-content/plugins/ymm-search/etc/config.php
    wp-content/plugins/ymm-search/view/frontend/templates/product/view/tabs/restriction.php

    Stanislav

    Thread Starter brad hogan

    (@bradley2083)

    Perfect, thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CSV file will not import’ is closed to new replies.