I have what I believe might be a unique situation but hopefully someone has done something like this before. I have a situation where I need to convert an "ordinary" node into a product. Actually, it's an advpoll node, but that's sort of irrelevant. The converted node needs to retain all of the comments, graphics, ownership, etc., advpoll specific information regarding votes, choices, etc., but, be changed from type advpoll to type product for the correct inclusion of pricing, attributes, etc.
Let me give an example: Say I make coffee mugs and I don't want to produce mugs that my viewers aren't going to buy. I create an advpoll page and let the users comment and vote on their favorite coffee mugs. When I get one that the viewers like, I now want to include it in Übercart as a product. However, I still want people to be able to see the judging process and comments that went into the decision to make this a product.
So far, I am able to get advpoll data loaded into a product node with very little hacking. In fact, I'm going to add a feature request (or write an extension) for advpoll for the sole purpose of including voting results - which is all I really want at that point - in non-advpoll nodes. The next part becomes a little tedious because I basically have to come up with an administration module to enter all the information that you'd normally enter when creating a "product" node from scratch.
So, I guess, 2 questions: 1) has anyone done anything like this before? 2) Is there any info, examples, of programatically creating a "product" node?
Mark




)


Joined: 08/25/2007