I have created a Snippet to be included on my Product page that would allow the customer to enter Length and Width and get a Square Foot Calculation.
I can display the content, but seems no matter where or how I add the function to do the calculation, it does not work.
My latest attempt is below, all in the Snippet itself but when I run the page and click the button it errors out telling me that the function does not exist
NOTE: I realize the script does not have the proper calculation in it, just trying to get the script to fire first.
I had also tried adding this in the themes.js and calling it but also did not work.