entity-attribute-value export
Posted: Mon Apr 06, 2009 8:41 am
I would very much like a way of exporting in entity-attribute-value format. Here's why. I have an online store that cells various types of products. A shirt might have a "sex" associated with it, but certainly a book doesn't. Similarly, a book has an author, a number of pages, etc but a DVD doesn't. The online store I have uses Virtuemart, which has an EAV table for "nonstandard" product attributes. While frowned upon among database purists, they are all too common in the kind of canned package I'm using and I'd rather not get my hands dirty with too much php.
Does anyone have a template for this sort of thing? Ideally, the user could select a column to use for product-ids (e.g. the ISBN column) and which columns are to become "attributes". The result would be a 4-column table
primary key-productid-attributename-attributevalue
I could then export this directly to my MySQL tables. Would something like this be possible?
Does anyone have a template for this sort of thing? Ideally, the user could select a column to use for product-ids (e.g. the ISBN column) and which columns are to become "attributes". The result would be a 4-column table
primary key-productid-attributename-attributevalue
I could then export this directly to my MySQL tables. Would something like this be possible?