Hi guys, I wonder if someone can point me in the right direction?
I need to run a small sql query and insert some data into a custom table in my databsase, this is easy enough... but, i need to do it at the point a product is added to the shopping basket...
1. customer goes to product page and selects attributes
2. Customer clicks "add to cart"
3. My sql query runs and adds the data i need to my table
4. customer arrives at shopping basket page
I onoy want to run this code when a product is added, and im struggling to decide where to put it.
Can anyone give me any recomendations?
Thanks in advance for your replies which im sure will be very helpfull and not vague at all ;)



