Hi Everyone!
I have posted on the Ubercart forum, but as it's regarding something which might be more Drupal'ish issue I am posting it here as well. I am using Drupal 5.x and Ubercart 1.x.
Just to let you know, any input on this topic is well appreciated as it always gives some ideas.
I have the product creation sorted. Basically, I had to put my own code to have exactly what I needed. The code is at the moment sitting on one of the content types available just for users with admin role. What it does is basically, you see an image upload form -> you browse for your file & click upload. What happens after is the following:
1) The original image is stored on the server in the right location
2) Thumbnail of 100px width and 'aspect ratio' height & Preview Pic (200px width) are created and Watermarked than stored in appropriate locations on the server
3) An ubercart product is automatically created, with filename as an SKU & preview pic in the body/description (watermarked), there is no need to let the admin input any product features as they are always the same (sell price, etc.) and set to the right values. All the right tables are updated as they should, so it's the right content type, etc.
All the above with just one click on the 'Image Upload' form. Since then, it's Drupal / Ubercart handling everything nicely (you can buy, process orders, remove products, etc. all fine).
Now, the two things which I didn't sort yet is:
1) Let admins tag the pictures
2) Implement a tag search
The point with the tagging is -> I need to tag each single product / node individually (not per vocabulary, each node needs a set of tags for itself, no limitations). Well the first idea I came up with was to use Drupal to handle that, as I already put some effort to create proper nodes / products. I have tried TagTool -> I love the idea of tagging products on the standard Drupal 'Edit' form. However, I have noticed that 'term_data' table is using vid (vocabulary id) istead of nid (node id) to store the term - that wouldn't work very well for me. Even so, I have enabled the core Search + Taxonomy Search, but taxonomy search would always 'yield no results' (site was 100% indexed), no matter what vocabulary I was trying to search through. Also I don't like the amount of time the indexing takes. Having 170 nodes indexed took a bit of time on my test environment, the live website will have about 15.000 pictures 'just for a start' and they need to be available for seach ASAP.
To sum up, Sorry for my long post, I am just trying to give enough detail about the issue;)
If anyone has any idea what would be the best way to sort my product tagging / search, I will be really grateful.
Kind regards,
TouchTheSky