I have found this old thread http://www.zen-cart.com/forum/showthread.php?t=66448
and it is exactly what I want to do but unfortunately the link that gives the information on which file to put the code in is broken...
where would the code snippet from that thread be placed in order for it to work?
thanks,PHP Code:
if (!isset($_GET['products_id']) && isset($_GET['products_model'])) {
$_GET['products_model'] = zen_db_prepare_input($_GET['products_model']);
$get_products_id = $db->Execute("SELECT products_id FROM " . TABLE_PRODUCTS . " WHERE products_model='" . zen_db_input($_GET['products_model']) . "' LIMIT 1");
if($get_products_id->EOF)
$_GET['products_id'] = 0;
else
$_GET['products_id'] = $get_products_id->fields['products_id'];
}
Will
Bookmarks