Hello Drupal Community,
I am still learning AJAX, I know enough PHP to get myself in trouble, and I have a basic question.
I searched around and can't find what I'm looking for partly because I'm struggling of exactly what to search for to find the answer.
In particular, I have an online store (powered by Ubercart) where selecting different types of a product's configuration, such as a red shirt or a blue shirt, alters the price that the user sees displayed on the website automatically via (I believe) AJAX.
To simplify my question, please assume there is a PHP array as follows:
$option['color']
$option['price']
Where the color and price are the values that appear on the end-user's browser when the page is loaded, for instance:
"Red shirt for $10", where $option['color'] and $option['price'] equal "Red" and "10" respectively and by default with each page load, from a form with radio buttons for the option to select a Red shirt or a Blue shirt.
THE ISSUE: If I simply include my typical troubleshooting of "print_r($option)" in my page.tpl.php, I'll get the original default array for the "Red" and "10", but of course this doesn't change when the user selects the radio button for Blue where the text & price displayed on the webpage change to, for instance, "Blue shirt for $15".
I understand why this is so, therefore,