Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding New Pages


pouyak

Recommended Posts

Hi

I have quick question for anyone that would be able to help me.

Here is my case:

I have template os commerce (those that have been super configured), ie. the the ones you can buy... so what i would like to know is this..

I have installed contributions that use their own page setting... what i want to know is that how can i take that contribution and put it into my own page. that has the same feeling and touch of my own site.

I hope that is clear enough....

let me know if you got further questions.

Regards.

Link to comment
Share on other sites

i dont have any question let alone further question to ask. just wonder what "PAGE" you are referring to? no one can configure let alone 'super configure' osc for it to run on any server, i suppose? your question probably is too quick to understand?

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

hmm i knew i should have been more clear......

okay i have bought a template from monstertemplate.com for my oscommerce.....

i have installed contributions (for example Track a return from RMA). But Track a return uses its own page set up for its page. Now i want to take the Track a return code from return_track.php as code follows:

<?php

/*

$id author Puddled Internet - http://www.puddled.co.uk

email [email protected]

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 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, returns_status 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'];

$returns_status_id = $returns_query['returns_status'];

$returns_status_query = tep_db_query("SELECT returns_status_name FROM " . TABLE_RETURNS_STATUS . " where returns_status_id = " . $returns_status_id . " and language_id = '" . (int)$languages_id . "'");

$returns_status_array = tep_db_fetch_array($returns_status_query);

$returns_status = $returns_status_array['returns_status_name'];

$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_RETURNS_TRACK);

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_RETURNS_TRACK, '', '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><?php echo TITLE; ?></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 if ($HTTP_GET_VARS['action'] == 'returns_show') { echo TEXT_SUPPORT_STATUS . ': ' . $returns_status; } else { 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">

 

<?php

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>

<!-- if RMA number doesn't exist, show error message //-->

<?php

} 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">

<?php

if (isset($error)=='yes') {

$error_message = '<tr>

<td width="10"> </td>

<td colspan="2" class="main">' . 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="2" class="main"><center>' . TEXT_TRACK_DETAILS_2 . '</center><br /></td>

</tr>

<tr>

<td width="45%" height="30" align="right" class="main">' . 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="2" class="main"> </td>

</tr>

<tr>

<td width="100%" colspan="2" align="right"><input type=submit name="submit" value="' . 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'); ?>

 

I have set up the page for how i want it to look like...but i dont know which part of the code to copy into this page set up

<?php

/*

$id author Puddled Internet - http://www.puddled.co.uk

email [email protected]

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 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, returns_status 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'];

$returns_status_id = $returns_query['returns_status'];

$returns_status_query = tep_db_query("SELECT returns_status_name FROM " . TABLE_RETURNS_STATUS . " where returns_status_id = " . $returns_status_id . " and language_id = '" . (int)$languages_id . "'");

$returns_status_array = tep_db_fetch_array($returns_status_query);

$returns_status = $returns_status_array['returns_status_name'];

$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_RETURNS_TRACK);

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_RETURNS_TRACK, '', '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><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

<script type="text/javascript" src="iepngfix_tilebg.js"></script>

<style type="text/css">

.ie6_png {behavior: url("iepngfix.htc") }

.ie6_png img {behavior: url("iepngfix.htc") }

.ie6_png input {behavior: url("iepngfix.htc") }

</style>

<!--[if IE]>

<script type="text/javascript" src="ie_png.js"></script>

<script type="text/javascript">

ie_png.fix('.png');

</script>

<![endif]-->

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php $tab_sel = 7; ?>

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" class="<?php echo MAIN_TABLE; ?>" cellspacing="0" cellpadding="0">

<tr>

<td class="<?php echo BOX_WIDTH_TD_LEFT; ?>"><table border="0" class="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td class="<?php echo CONTENT_WIDTH_TD; ?>"><?php echo panel_top(); ?><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?>

 

<?php echo tep_draw_top();?>

 

<?php echo tep_draw_title_top();?>

 

<?php echo HEADING_TITLE; ?>

 

<?php echo tep_draw_title_bottom();?>

 

<?php echo tep_draw1_top();?>

 

<?php

if ($messageStack->size('contact') > 0) {

?>

<table cellpadding="0" cellspacing="0" border="0">

<tr><td><?php echo $messageStack->output('contact'); ?></td></tr>

</table>

 

<?php echo tep_pixel_trans();?>

 

<?php

}

 

if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {

?>

<table cellpadding="0" cellspacing="0" border="0">

<tr>

<td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td>

</tr>

</table>

 

<?php echo tep_pixel_trans();?>

 

<?php /* echo tep_draw_infoBox2_top(); */?>

 

<table border="0" width="100%" cellspacing="0" cellpadding="2"><tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table>

 

<?php /* echo tep_draw_infoBox2_bottom(); */?>

 

<?php

} else {

?>

 

<?php /* echo tep_draw_infoBox_top(); */?>

 

 

 

<?php /* echo tep_draw_infoBox_bottom(); */?>

 

<?php echo tep_pixel_trans();?>

 

<?php echo tep_draw_infoBox2_top();?>

 

<?php echo tep_draw_infoBox2_bottom();?>

 

<?php

}

?>

 

<?php echo tep_draw1_bottom();?>

 

<?php echo tep_draw_bottom();?>

 

</form></td>

<!-- body_text_eof //-->

<td class="<?php echo BOX_WIDTH_TD_RIGHT; ?>"><table border="0" class="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php');

/*Google Analytics Tracking code*/

if (GOOGLE_ANALYTICS_STATUS == 'true')

{

include(DIR_WS_BOXES . 'ganalytics.php');

}

/*Google Analytics Tracking code eof*/ ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Link to comment
Share on other sites

bad news for you: this osc forums does not support commercial templates/products. you should instaed seek support from the people whom you bought it from. if, very linkly, they dump you here, then i am afraid you are out of luck, unless you do it yourself or hire someone to look into it for you. its not right for someone to take the money then tell customers to get free support else where. full stop.

btw, dont kill the messanger!

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

totally agree....

bad news for you: this osc forums does not support commercial templates/products. you should instaed seek support from the people whom you bought it from. if, very linkly, they dump you here, then i am afraid you are out of luck, unless you do it yourself or hire someone to look into it for you. its not right for someone to take the money then tell customers to get free support else where. full stop.

btw, dont kill the messanger!

 

Ken

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...