Farnastic Posted January 9, 2005 Share Posted January 9, 2005 Hello everyone, I have two websites. I want to redirect one category of site A to a category of site B. This is the path for the receiving category (siteB): http://www.actionprintinginc.com/index.php?cPath=41, the problem is that I don't have any idea how to do this in site A. How can it be done? thanks for your help far Link to comment Share on other sites More sharing options...
Guest Posted January 9, 2005 Share Posted January 9, 2005 Of course it can be done...the capabilities of osCommerce are not limited to what is coded but rather the imagination of the coder. I implemented something like this for a client a while back. Let me see if I can dig it up... The basics are that a new field was added to the categories table as "cat_url". Next, added the simple code to the categories box !tep_not_null($whatevervariable[cat_url']) and other small modifications. It worked like a charm... Bobby Link to comment Share on other sites More sharing options...
Farnastic Posted January 9, 2005 Author Share Posted January 9, 2005 The basics are that a new field was added to the categories table as "cat_url". Next, added the simple code to the categories box !tep_not_null($whatevervariable[cat_url']) and other small modifications. It worked like a charm... Bobby <{POST_SNAPBACK}> Ok Chemo, thank you for your reply, but could you be a little more specific in the basics. THat new field is a new category or what? Could you share your experience in this? thanks far Link to comment Share on other sites More sharing options...
redhotbargains Posted January 9, 2005 Share Posted January 9, 2005 Ok Chemo, thank you for your reply, but could you be a little more specific in the basics. THat new field is a new category or what? Could you share your experience in this?thanks far <{POST_SNAPBACK}> Hi see this post http://www.oscommerce.com/forums/index.php?showtopic=129338 works a treat and takes 2 seconds :thumbsup: Also if anyone can tell me how to make my hyperlink in categories show in the middle section of the site using the method shown in the above post instead of opening a new page it would be much appreciated Link to comment Share on other sites More sharing options...
Farnastic Posted January 9, 2005 Author Share Posted January 9, 2005 Also if anyone can tell me how to make my hyperlink in categories show in the middle section of the site using the method shown in the above post instead of opening a new page it would be much appreciated <{POST_SNAPBACK}> Hello redhotbargains, thank you for your reply. This method is good, of course, but will place the link on top or bottom since all categories in site A will array in alphabetical order, so if category "Computers" is the one to redirect, will not shown whre is supposed to be. I think that this must be done in the column left, in this part: if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); in a way say that if cpath and the category id #, then ..... and make the link to site B. I think the category must be entered in site A, and in some place specify that categoryX will be redirected to (and the link). I have the idea, the thing is that I don't know how to make the code. thanks far Link to comment Share on other sites More sharing options...
Farnastic Posted January 11, 2005 Author Share Posted January 11, 2005 Hello, someone have worked with this modification before? Some ideas? thanks far Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.