In the words of Borat - SUCCESS!
Here's the final code I added to 'includes\functions\html_output.php' to get the notice working for the products I want. I also modified the 'products' table to add a 'legalnotice' field which is a TINYINT:
PHP Code:
// Mod to add an 18+ notice to products when field 'legalnotice'=1
if (isset($_GET['main_page']) && $_GET['main_page'] == 'product_info')
{
$pid = $_GET['products_id'];
$sql = mysql_query("SELECT products_id,legalnotice FROM products WHERE products_id='$pid' && legalnotice=1") or die(mysql_error());
if (mysql_num_rows($sql) == 1)
{
$form .= ' onSubmit="return confirm(\'You MUST be over the age of 18 to purchase this product. By clicking the 'OK' button you are effectively verifying that meet or exceed the stated age requirement.\')"';
}
}
The last hurdle - adding the 'legalnotice' as an option on the 'Add Product' page so that my client can flag these products via the admin area! Expect another out-loud brainstorm in another thread... LOL