Ok, so I'm totally new to zen-cart but a novice php coder. I made a php script which takes two form inputs, and multiplies them to give you a square foot reading.
What I need is to get this to show up in certain products, such as a painting. The drop down options should say "12x12" "12x24" and "24x24" then there should be one titled "Custom" and below that drop down you would see two text boxes, one labeled height and one labeled width.
I have accomplished this all in pure php outside zen-cart but I am trying to find the file where to import it into zencart. The file I found which displays the options is tpl_modules_attributes.php and I found where to paste my code, what I need help with is displaying my form code only if the options = X and when the product is added to the cart, the values from my form are stored in the database.
Does this make since? I can't figure out what command to use to pull option names from the database and how to insert my command back into the database.



