Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ekindbest

Pioneers
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Real Name
    Tom

ekindbest's Achievements

  1. Well some 1 please figure out how to post the Banner image right, I'm a noob so please find out the script and post the instructions please. Great Mod.
  2. Dear doing I've change the code to the 1 u provided same as above reply, still not working. Anyway, here is the returns_track.php: <?php /* $id author Puddled Internet - http://www.puddled.co.uk email [email protected] osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } if (!$HTTP_GET_VARS['action']){ $HTTP_GET_VARS['action'] = 'returns_track'; } if ($HTTP_GET_VARS['action']) { switch ($HTTP_GET_VARS['action']) { case 'returns_show': // first carry out a query on the database to see if there are any matching tickets $database_returns_query = tep_db_query("SELECT returns_id FROM " . TABLE_RETURNS . " where customers_id = '" . $customer_id . "' and rma_value = '" . $HTTP_POST_VARS['rma'] . "' or rma_value = '" . $HTTP_GET_VARS['rma'] . "'"); if (!tep_db_num_rows($database_returns_query)) { tep_redirect(tep_href_link('returns_track.php?error=yes')); } else { $returns_query = tep_db_fetch_array($database_returns_query); $returns_id = $returns_query['returns_id']; $returned_products_query = tep_db_query("SELECT * FROM " . TABLE_RETURNS_PRODUCTS_DATA . " op, " . TABLE_RETURNS . " o where o.returns_id = op.returns_id and op.returns_id = '" . $returns_id . "'"); $returned_products = tep_db_fetch_array($returned_products_query); require(DIR_WS_CLASSES . 'order.php'); $order = new order($returned_products['order_id']); } break; } } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_RETURN); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_RETURN, '', 'NONSSL')); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title>Track Your Return Status - CT Digital</title> <base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td align="right"> </td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="100%" valign="top"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <? if ($HTTP_GET_VARS['action'] == 'returns_show') { include(DIR_WS_MODULES . 'returns_track.php'); // } ?> <?php // ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '20', '20'); ?><br</td> </tr> <?php //} ?> <table></td> <!-- end new insert here --//--> <? } else { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="100%" valign="top"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <? if (isset($error)=='yes') { $error_message = '<tr> <td colspan=3 class=main><? echo TEXT_TRACK_DETAILS_1; ?></td> </tr> <tr>'; new infoBox(array(array('text' => $error_message))); // } echo '<br><BR>'; } $returns = '<form action="' . $PHP_SELF . '?action=returns_show" method=post> <tr> <td colspan=3 class=main><center>If you have previously requested an RMA Number from us,<br>enter the number received in the box to review the status of your return.<br><? echo TEXT_TRACK_DETAILS_2; ?></td> </tr> <tr> <td width=100& colspan=3 class=main> </td> </tr> <tr> <td width="33%" height="30" align="right" class="main"><?php echo TEXT_YOUR_RMA_NUMBER; ?> </td> <td width="50%" height="30" align="left" class="main" colspan="2"><font color="CC0000"><input type="text" name="rma" value="" size="20"></font></td> </tr> <tr> <td width=100& colspan=3 class=main> </td> </tr> <tr> <td width=100% colspan=3 align=right><input type=submit name="submit" value=Track Return<? echo TEXT_FIND_RETURN; ?> </td> </tr> </form> '; new infoBox(array(array('text' => $returns))); ?> <!-- </table></td></tr>--> </table></td></tr> </table></td></tr> <? } ?> </td> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  3. By the way Doing, when I use the new //redirection confirmation code, it still gets me to the login page but it won't show me the RMA # after I login. The old 1 gets me to the login page too, but right after I login, it will then show me the RMA # i requested.
  4. Dear Doing I changed the code with the 1's u provided (including the //redirect confirmation change). But its still redirecting me to the login page when I try to request a RMA. Please visit the site again and have a test. By the way you didn't post any change for the returns_track.php error....simply visit my site @ www.ctdigital.net and add returns_track.php at the very end of the address after the site loads. :(
  5. hi doing...... I still have the errors while i got the version 2.3 and the code u posted...when requesting it will throw me to the login page and also the returns_track.php still wont work as when I enter a correct/exist RMA number it will throw me back to login screen again. I got all the codes and the newest version already. By the way my site is www.ctdigital.net, you can go do a test if u like.
  6. Can some1 please help!!???? When I click on the Track A Return link at the left box..it kept taking me to the login page, even thou I logged in already. I used the code from aobve but its gettin worst...can some 1 please supply the working "returns_track.php". If possible please e-mail to [email protected]....
×
×
  • Create New...