Adding a new field to the order page

I added a new field to my products and now I want that field to be displayed on the order details field in the admin.



The field is just a second part number.



I created a file called skins/basic/admin/addons/my_changes/hooks/orders/product.info.post.tpl



In that file I put:


{$lang.part_no}: {$oi.part_no}





This pulls up the text just fine, but not the field so I know the hook is working.



I'm guessing that I would need to add my field to a controller somewhere, but for the life of me, I can't figure out where.



This is for CS-Cart 2.2.1 Pro.



I'd sure appreciate any help anyone can give.



Thank you,



Brandon

You will need a PHP hook for 'get_product_data'. In there, you will retrieve your info and apply it to the passed $product_data array.