I'm in desperate need of modding my 1.2.x zen store in order to insert in the ORDERS table a custom products_model related to the attribute bought by customers....

Let's say I sell T-shirts:

Products:
V-shaped Tshirts: product_model field is filled with "001"
Round-neck Tshirts: product_model field is filled with "002"

Attributes might be:
Red (an additional attribute_model field is filled with "red")
Green (an additional attribute_model field is filled with "green")

I would like the product_model stored in the Orders table to be "001red" if a customer decides to buy a red V-shaped tshirt.

Could someone please help me find out which files to modify or at least point me to the right direction?

Thanks to everyone in advance!

Milk.