dgrundel / woo-product-importer

A simple, free CSV importer for WooCommerce
199 stars 99 forks source link

Fatal error: Call to undefined method WooCommerce::get_attribute_taxonomies() in /var/www/web952/html/wp-content/plugins/dgrundel-woo-product-importer-83a0668/woo-product-importer-ajax.php on line 85 #106

Open lammbraeu opened 9 years ago

lammbraeu commented 9 years ago

Unfortunately the upload of on CSV file with just 50KB does not work. There is the file I tried to upload: http://schafbuch.de/docs/20150618-affilinet-feed-fashionforhome-wohnaccessoires.csv

Any idea why? Could not find anything in the forum.

berminguez commented 9 years ago

Yey! I resolve it.

Change // lookup existing product attributes $attribute_taxonomies = $woocommerce->get_attribute_taxonomies()

with this one:

    // lookup existing product attributes
    $attribute_taxonomies = wc_get_attribute_taxonomies();

On line 85 at woo-product-importer-ajax.php