Guest robj Posted July 9, 2007 Share Posted July 9, 2007 I'm building a mod for a customer who wants to change (weekly) the home page to redirect to a specific product. I think I'm able to grab the URL via the admin section then redirect to the specified URL, but I'm not sure how to include this code into the index.php or index.tpl. I created a module in the affiliates section of the admin to grab the data, and am processing the function with the index.inc.php file. Can someone help me figure this out? After programming for 8 hours, I might just be brain dead. rob Quote Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2007 Share Posted July 9, 2007 What you should do is insert a new row into your config table in the datbase named Redirection_Url then build a function in functions.inc.php to retrieve that url. From there you will want to edit index.php to redirect to that page using the header() function And finally in the admin panel make a form that will edit your redirection link. You shouldnt even have to work in index.tpl Quote Link to comment Share on other sites More sharing options...
burgensteen Posted July 9, 2007 Share Posted July 9, 2007 Might be best to ask over at cubecartforums.org, its the place that deals with third party stuff and theres some excellent coders over there, try rattling their brains. Just follow my signature Quote Link to comment Share on other sites More sharing options...
Guest robj Posted July 10, 2007 Share Posted July 10, 2007 Thx for the responses. I may have needed to provide a bit more detail about my problem, but cubecartfoums.org seems like it might be a better place to answer my questions. rob Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.