Jump to content

product import csv question


Recommended Posts

Hi I want to add a field, $location when I import product data using csv file.
I added this field to AdminImport.php on
$this->available_fields = array(...............'location'=>$this->l('Location') ..........)
'location'=>array('AdminImport','createMultiLangField'),

$id_product_attribute = $product->addProductAttribute(floatval($info['price']), floatval($info['weight']), floatval($info['ecotax']), intval($info['quantity']), null, strval($info['reference']), strval($info['supplier_reference']), strval($info['ean13']), intval($info['default_on']),strval($info['location']));

I changed addProductAttribute from product.php to
public function addProductAttribute($price, $weight, $ecotax, $quantity, $id_images, $reference, $supplier_reference, $ean13, $default, $location)

I see $location field when I import csv and the product successfully gets uploaded except that $location field is not working when I view the product at the shop.
Can anyone help me with adding $location field to product data import?

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
×
×
  • Create New...