osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

How to add new pages in mod to BTS

This is a discussion on How to add new pages in mod to BTS within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I am desperately trying to get the xml tracking module to install, but I am stuck with a couple of ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-29-2006, 10:47 AM
Active Member
 
Join Date: Dec 2003
Posts: 110
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 5
Redeye_Joe
Default How to add new pages in mod to BTS

I am desperately trying to get the xml tracking module to install, but I am stuck with a couple of files that I am supposed to add to the catalog directory, but I am not sure how to convert them to work with BTS. I am not a programmer, but I have been able to figure out most of mods I have tried in the past. I only need to change the following files over;

catalog/popup_tracker.php
catalog/tracking.php

and make a few changes to styleshee.css which I think I can just add these entries into the catalog/templates/fallback/stylesheet.css????

I have opened a few of the catalog/ files and compaired them to their fallback/content/ counterpart but I dont understand enough to change them and make the templates files for them, can anyone help me with this, I have a feeling it is very simple and would only take someone that know about 2 minutes.
thanks Doug
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 01-29-2006, 11:01 AM
Active Member
 
Join Date: Dec 2003
Posts: 110
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 5
Redeye_Joe
Default RE: How to add new pages in mod to BTS

Here is the code for the files, maybe somone can tell me what needs moved to the new .tpl.php files I will ahve to make for them,

tracking.php
Code:
<?php
/*
  $Id: shipping.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_TRACKING);

  $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_TRACKING));
?>
<!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">
</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><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
            <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'ups_logo.gif'); ?></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 class="main"><?php echo TEXT_INFORMATION; ?></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="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td>
            <form method="post" action="<?php echo $PHP_SELF; ?>">
            <input type="hidden" name="action" value="track">
            <table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td align="center" width="100%"><input type="text" name="tracknum" value="<?php echo $tracknum; ?>" maxlength="20" size="20"> <input type="submit" name="button" value="Track!"></td>
              </tr>
              <tr>
              	<td><?php include(DIR_WS_CLASSES . FILENAME_TRACKING); ?></td>
              </tr>
            </table>
            </form></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'); ?>
popup_tracker.php
Code:
<?php
/*
  $Id: popup_tracker.php,v 1.0 200/05/18 12:18:40 $

  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');

?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<title>UPS Tracking</title>
<base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script language="javascript"><!--
var i=0;
function resize() {
  if (navigator.appName == 'Netscape') i=40;
}
//--></script>
</head>
<body>
<center>
<table border="0" width="625" cellpadding="3" cellspacing="0">
	<tr>
		<td align="left" width="100%" class="main">
<?php require(DIR_WS_CLASSES . 'tracking.php'); ?>
		</td>
	</tr>
</table>
</center>
</body>
</html>
Stylesheet.css (one that came with mod)
[code]
.UPSheader {
font-size: 13pt;
color: #663300;
font-weight: 900;
}

.UPSheader2 {
font-size: 8pt;
font-weight: bold;
color: #ffffff;
}

.appheadercolor {
background-color: #996633;
}

.modulepad {
padding-left:10px;
padding-right:10px;
}

.spacing {
padding-left: 10px;
padding-right: 10px;
}

.modpadbullet {
padding-left:6px;
text-indent: -9px;
padding-right:5px;
}

TD.ups {
font-family: verdana, arial,sans-serif;
font-size: 7pt;
}

TD.upsSmall {
font-family: verdana, arial,sans-serif;
font-size: 6pt;
}

.brownbold {
color: #663300;
font-weight: bold;
}

Any help would greatly be appreciated.
Thanks
Doug
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-29-2006, 12:10 PM
Active Member
 
Join Date: Dec 2003
Posts: 110
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 5
Redeye_Joe
Default RE: How to add new pages in mod to BTS

Ok, I have edited the tracking.php into two files, one tracking.php and the other tracking.tpl.php hopefully sucessfully, here are the new code

tracking.tpl.php
Code:
          <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>
tracking.php
Code:
<?php
/*
  $Id: shipping.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_TRACKING);

          $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_TRACKING));

          $content = CONTENT_TRACKING;
  
  

  include (bts_select('main', $content_template)); // BTSv1.5
  
 require(DIR_WS_INCLUDES . 'application_bottom.php'); 
 ?>

But now I am trying to do the same to popup_tracker.php, but it is not so easy to see what needs to be moved on this one,, my guess is maybe just the ;
Code:
<script language="javascript"><!--
var i=0;
function resize() {
  if (navigator.appName == 'Netscape') i=40;
}
//--></script>
which would make the popup_tracker.php file only have;
Code:
<?php
/*
  $Id: popup_tracker.php,v 1.0 200/05/18 12:18:40 $

  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');
       $content = CONTENT_POPUP_TRACKER;
 

  include (bts_select('main', $content_template)); // BTSv1.5
?>
Would that be right, and I need to know if I can just add the info from the mods stylesheet.css to the one in the templates/aabox/stylesheet.css at the end and save it???
Please I am stumbling in the dark, any help would be great...
Doug
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-30-2006, 03:11 AM
New Member
 
Join Date: Mar 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gamerigs
Default

Hi Doug

Your pretty much there, use this guide found at this location

http://www.oscdox.com/index.php?name...amp;highlight=

You basically have to split tracking.php into 2 files

catalog\tracking.php and catalog\templates\fallback\content\tracking.tpl.ph p

The link will explain what each file should contain. Hope that helps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 01-30-2006, 12:08 PM
Active Member
 
Join Date: Dec 2003
Posts: 110
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 5
Redeye_Joe
Default

I have figured it out, and it is now working as far as pulling the right page, but I am now on to fix why it isnt tracking packages.

Seems nothing is happening when I run a tracking number, so must be the includes/classes/tracking.php
thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Extra Pages pefc2525 osCMax v2 Installation issues 1 01-09-2006 08:14 PM
ssl pages not working Redeye_Joe osCMax v2 Installation issues 1 06-23-2005 05:42 PM
extra pages mod - doesnt resemble main pages battleaxe osCMax v1.7 Discussion 3 11-05-2004 06:32 AM
Dual Log-in Pages SleepingEye osCommerce 2.2 Modification Help 0 10-07-2004 06:53 AM
HOW TO ADD MORE PAGES!? calle osCommerce 2.2 Modification Help 2 09-22-2004 02:47 AM


All times are GMT -8. The time now is 08:02 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax