jamyers79 Posted August 12, 2005 Posted August 12, 2005 Please help. I have a product bundle that I've created. And I would like to have it so when the product comes up in a search that on the click, rather than going to the standard product_info.php page, I'd like it to go to a separate page. But it's only for this specific product. How would I even go about doing this? again, please help... I'm kind of desperate. thx :'(
jamyers79 Posted August 12, 2005 Author Posted August 12, 2005 Please help.I have a product bundle that I've created. And I would like to have it so when the product comes up in a search that on the click, rather than going to the standard product_info.php page, I'd like it to go to a separate page. But it's only for this specific product. How would I even go about doing this? again, please help... I'm kind of desperate. thx :'( <{POST_SNAPBACK}> This is what I've done to try to get this to work... in filenames.php define('FILENAME_GAME_BUNDLE', gamingpackage . '.php'); then at the top of the product_info.php page: <?php if (($product_info['products_id']) == '598') { tep_redirect(tep_href_link(FILENAME_GAME_BUNDLE)); } ?> <?php It reads through the statement and takes it to: /product_info.php?products_id=598 I want it to just go to my gamingpackage.php file... What am I doing wrong here?
user99999999 Posted August 13, 2005 Posted August 13, 2005 I think you would have to do it like this. The _GET vars hold the product id from the url. <?php if ((int)$_GET['products_id'] == 598) { tep_redirect(tep_href_link(FILENAME_GAME_BUNDLE)); } ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.