VirtueMart Forum

VirtueMart General => About VirtueMart - not for support posts => Topic started by: Bedet on April 06, 2005, 12:24:26 PM

Title: Im/exporting product atributes
Post by: Bedet on April 06, 2005, 12:24:26 PM
For a new shop (shoes) i need to import all the attributs (sizes and colours) for approx 750 products.

As I can see its not possible to do a im/export using the csv import function.

Is there a work arround / hack / fix?
Title: Re: Im/exporting product atributes
Post by: Danny Locksmith on April 06, 2005, 12:34:43 PM
If you know SQL and are familiar with the database  structure you can manipulate the tables directly
Title: Re: Im/exporting product atributes
Post by: Bedet on April 06, 2005, 12:39:27 PM
I know, but I don't want the customer to access PhPmyadmin and play arround ;) when he is going to update his catalog.

I preffer a tool like the csv function for him to do this.
Title: Re: Im/exporting product atributes
Post by: Danny Locksmith on April 06, 2005, 13:05:50 PM
Once you are familiar with the SQL required for this function you should be able to modify/hack the current CSV funtions to provide the functionality required, or maybe provide a separate application to do the job?
I think you would be a hereo if you worked it out and there are probably people who would help if you get stuck?
Title: my solution....
Post by: Bedet on April 09, 2005, 20:19:47 PM
I've found a way to import my attributes by hacking the csv import (classes/ps_csv.php):

As I don't use the spcial products i replaced the field 'product_special' with the 'attribute' field .

My import data is no with text value between a '"' and fields delimited by a ',' and it works fine for me! ;D


(>> DO NOT CHANGE  'csv_product_special' !!)


This trick might work for other fields as well, but offcourse at your one risc ;)
Title: !!!Hero status Gained!!!
Post by: Danny Locksmith on April 11, 2005, 11:44:16 AM
And dont it feel good!