RichSM Posted April 21, 2005 Posted April 21, 2005 Hi guys, I installed the order_tracking module and this is what I get at admin panel browser if I try to access the orders_tracking_zone page "http://www.smoothgift.com/catalog/admin/FILENAME_STATS_ORDERS_TRACKING_ZONES" . This goes for the orders_tracking page too. But if I type the file name to be hyperlinked in the browser e.g. http://www.smoothgift.com/catalog/admin/or...cking_zones.php, the right page is accessed. looks like the file names are not properly defined somewhere, but where? I have checked the two filename.php in the project amongst others. I'm just not getting anywhere. What do I need to do? A whole heap of thanks in advance. Rich
Winterchild Posted April 21, 2005 Posted April 21, 2005 go to admin/includes/filenames.php Search FILENAME_STATS_ORDERS_TRACKING_ZONES if not present add: define('FILENAME_STATS_ORDERS_TRACKING_ZONES , 'orders_tracking_zones.php'); (or whatever the real filename) Forum search Contributions search Documentation search (note: docs being adapted for MS3, may be different for MS2) 3 tips for better forum searching Want to post? Read this first: osCommerce for dummies Topic name etiquette Basics: Basics for design Right syntax to use near '-20, 20' Cannot re-assign $this Parse error
RichSM Posted April 21, 2005 Author Posted April 21, 2005 go to admin/includes/filenames.php Search FILENAME_STATS_ORDERS_TRACKING_ZONES if not present add: define('FILENAME_STATS_ORDERS_TRACKING_ZONES , 'orders_tracking_zones.php'); (or whatever the real filename) <{POST_SNAPBACK}> but the file name is properly defined in admin/includes/filenames.php already. what else canI check? Thanks Winterchild
Winterchild Posted April 21, 2005 Posted April 21, 2005 ave you checked if FILENAME_STATS_ORDERS_TRACKING_ZONES is spelled correctly in both filenames and the page calling it? Where/ how did you define the link? Forum search Contributions search Documentation search (note: docs being adapted for MS3, may be different for MS2) 3 tips for better forum searching Want to post? Read this first: osCommerce for dummies Topic name etiquette Basics: Basics for design Right syntax to use near '-20, 20' Cannot re-assign $this Parse error
boxtel Posted April 21, 2005 Posted April 21, 2005 but the file name is properly defined in admin/includes/filenames.php already.what else canI check? Thanks Winterchild <{POST_SNAPBACK}> you are missing a quote there Treasurer MFC
Winterchild Posted April 21, 2005 Posted April 21, 2005 Hmm, yeah my code is missing a quote. My bad. For everyone wanting to copy paste this code here's the right code: define('FILENAME_STATS_ORDERS_TRACKING_ZONES' , 'orders_tracking_zones.php'); Forum search Contributions search Documentation search (note: docs being adapted for MS3, may be different for MS2) 3 tips for better forum searching Want to post? Read this first: osCommerce for dummies Topic name etiquette Basics: Basics for design Right syntax to use near '-20, 20' Cannot re-assign $this Parse error
RichSM Posted April 21, 2005 Author Posted April 21, 2005 you are missing a quote there <{POST_SNAPBACK}> but where, boxtel? these are the two codes for the ccgv: define('FILENAME_STATS_ORDERS_TRACKING', 'orders_tracking.php'); define('FILENAME_STATS_ORDERS_TRACKING_ZONES', 'orders_tracking_zones.php'); they seem alright? Thanks, Rich
RichSM Posted April 21, 2005 Author Posted April 21, 2005 ave you checked if FILENAME_STATS_ORDERS_TRACKING_ZONES is spelled correctly in both filenames and the page calling it? Where/ how did you define the link? <{POST_SNAPBACK}> Winterchild, Here is my catalog/admin/filename.php : <?php /* $Id: filenames.php,v 1.1 2003/06/20 00:18:30 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // define the filenames used in the project define('FILENAME_BACKUP', 'backup.php'); define('FILENAME_BANNER_MANAGER', 'banner_manager.php'); define('FILENAME_BANNER_STATISTICS', 'banner_statistics.php'); define('FILENAME_CACHE', 'cache.php'); define('FILENAME_CATALOG_ACCOUNT_HISTORY_INFO', 'account_history_info.php'); define('FILENAME_CATEGORIES', 'categories.php'); define('FILENAME_CONFIGURATION', 'configuration.php'); define('FILENAME_COUNTRIES', 'countries.php'); define('FILENAME_CURRENCIES', 'currencies.php'); define('FILENAME_CUSTOMERS', 'customers.php'); define('FILENAME_DEFAULT', 'index.php'); define('FILENAME_DEFINE_LANGUAGE', 'define_language.php'); define('FILENAME_FILE_MANAGER', 'file_manager.php'); define('FILENAME_GEO_ZONES', 'geo_zones.php'); define('FILENAME_LANGUAGES', 'languages.php'); define('FILENAME_MAIL', 'mail.php'); define('FILENAME_MANUFACTURERS', 'manufacturers.php'); define('FILENAME_MODULES', 'modules.php'); define('FILENAME_NEWSLETTERS', 'newsletters.php'); define('FILENAME_ORDERS', 'orders.php'); define('FILENAME_ORDERS_INVOICE', 'invoice.php'); define('FILENAME_ORDERS_PACKINGSLIP', 'packingslip.php'); define('FILENAME_ORDERS_STATUS', 'orders_status.php'); define('FILENAME_POPUP_IMAGE', 'popup_image.php'); define('FILENAME_PRODUCTS_ATTRIBUTES', 'products_attributes.php'); define('FILENAME_PRODUCTS_EXPECTED', 'products_expected.php'); define('FILENAME_REVIEWS', 'reviews.php'); define('FILENAME_SERVER_INFO', 'server_info.php'); define('FILENAME_SHIPPING_MODULES', 'shipping_modules.php'); define('FILENAME_SPECIALS', 'specials.php'); define('FILENAME_STATS_CUSTOMERS', 'stats_customers.php'); define('FILENAME_STATS_PRODUCTS_PURCHASED', 'stats_products_purchased.php'); define('FILENAME_STATS_PRODUCTS_VIEWED', 'stats_products_viewed.php'); define('FILENAME_TAX_CLASSES', 'tax_classes.php'); define('FILENAME_TAX_RATES', 'tax_rates.php'); define('FILENAME_WHOS_ONLINE', 'whos_online.php'); define('FILENAME_ZONES', 'zones.php'); define('FILENAME_BIRTHDAY', 'birthday.php'); define('FILENAME_STATS_ORDERS_TRACKING', 'orders_tracking.php'); define('FILENAME_STATS_ORDERS_TRACKING_ZONES', 'orders_tracking_zones.php'); ?> what do you thikn? many thanks, Rich
Winterchild Posted April 21, 2005 Posted April 21, 2005 Okay, What does it look like in /admin/includes/boxes/reports.php ? Forum search Contributions search Documentation search (note: docs being adapted for MS3, may be different for MS2) 3 tips for better forum searching Want to post? Read this first: osCommerce for dummies Topic name etiquette Basics: Basics for design Right syntax to use near '-20, 20' Cannot re-assign $this Parse error
boxtel Posted April 21, 2005 Posted April 21, 2005 but where, boxtel? these are the two codes for the ccgv:define('FILENAME_STATS_ORDERS_TRACKING', 'orders_tracking.php'); define('FILENAME_STATS_ORDERS_TRACKING_ZONES', 'orders_tracking_zones.php'); they seem alright? Thanks, Rich <{POST_SNAPBACK}> what about your catalog/includes/filenames.php ? Treasurer MFC
Winterchild Posted April 21, 2005 Posted April 21, 2005 As far as I know this only affects the admin side 1) Copy all files to the appropriate directory structures 2) Edit /admin/filenames.php.? Add the following to the end of the file, just prior to the ?> line: ? define('FILENAME_STATS_ORDERS_TRACKING', 'orders_tracking.php'); ? define('FILENAME_STATS_ORDERS_TRACKING_ZONES', 'orders_tracking_zones.php'); 3) Edit /admin/includes/boxes/reports.php 4) Edit /admin/includes/languages/english.php Forum search Contributions search Documentation search (note: docs being adapted for MS3, may be different for MS2) 3 tips for better forum searching Want to post? Read this first: osCommerce for dummies Topic name etiquette Basics: Basics for design Right syntax to use near '-20, 20' Cannot re-assign $this Parse error
boxtel Posted April 21, 2005 Posted April 21, 2005 what about your catalog/includes/filenames.php ? <{POST_SNAPBACK}> forget that, stupid question, from here the filenames look ok. so how does your link look ? Treasurer MFC
RichSM Posted April 21, 2005 Author Posted April 21, 2005 what about your catalog/includes/filenames.php ? <{POST_SNAPBACK}> last two defines at catalog/includes/filenames.php goes like : define('FILENAME_STATS_ORDERS_TRACKING_ZONES', 'orders_tracking_zones.php'); define('FILENAME_STATS_ORDERS_TRACKING', 'orders_tracking.php'); ?> I even copied filenames.php to catalog/admin/ thinking it will help (hope that will not create any muddle up) Thanks. Rich
Winterchild Posted April 21, 2005 Posted April 21, 2005 so how does your link look ? What does it look like in /admin/includes/boxes/reports.php ? Forum search Contributions search Documentation search (note: docs being adapted for MS3, may be different for MS2) 3 tips for better forum searching Want to post? Read this first: osCommerce for dummies Topic name etiquette Basics: Basics for design Right syntax to use near '-20, 20' Cannot re-assign $this Parse error
RichSM Posted April 21, 2005 Author Posted April 21, 2005 so how does your link look ? What does it look like in /admin/includes/boxes/reports.php ? <{POST_SNAPBACK}> It looks ok, although I might be missing something. see it below (last two tep_href_links): Released under the GNU General Public License */ ?> <!-- reports //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_REPORTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'selected_box=reports')); if ($selected_box == 'reports') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_VIEWED . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_PURCHASED . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_ORDERS_TRACKING_ZONES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TRACKING_ZONES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_ORDERS_TRACKING, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TRACKING . '</a>'); } $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- reports_eof //--> Any strangie? Thanks.
RichSM Posted April 21, 2005 Author Posted April 21, 2005 forget that, stupid question, from here the filenames look ok.so how does your link look ? <{POST_SNAPBACK}> boxtel, sorry you've lost me. What do you mean by "so how does your link look ?" Thanks, Rich
boxtel Posted April 21, 2005 Posted April 21, 2005 What does it look like in /admin/includes/boxes/reports.php ? <{POST_SNAPBACK}> It looks ok' date=' although I might be missing something. see it below (last two tep_href_links): Released under the GNU General Public License */ ?> <!-- reports //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading['] = array('text' => BOX_HEADING_REPORTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'selected_box=reports')); if ($selected_box == 'reports') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_VIEWED . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_PURCHASED . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_ORDERS_TRACKING_ZONES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TRACKING_ZONES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_ORDERS_TRACKING, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TRACKING . '</a>'); } $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- reports_eof //--> Any strangie? Thanks. <{POST_SNAPBACK}> looks ok to me Treasurer MFC
Winterchild Posted April 21, 2005 Posted April 21, 2005 boxtel, sorry you've lost me. What do you mean by "so how does your link look ?" You showed your link in post #15 I looked at your code and tested it on my testshop. It worked. Only thing left for me to suggest is: clear your cache and delete temporary files and try again. Forum search Contributions search Documentation search (note: docs being adapted for MS3, may be different for MS2) 3 tips for better forum searching Want to post? Read this first: osCommerce for dummies Topic name etiquette Basics: Basics for design Right syntax to use near '-20, 20' Cannot re-assign $this Parse error
RichSM Posted April 21, 2005 Author Posted April 21, 2005 You showed your link in post #15 I looked at your code and tested it on my testshop. It worked. Only thing left for me to suggest is: clear your cache and delete temporary files and try again. <{POST_SNAPBACK}> How do I do that? (to be sure we meant the same) Many thanks. Rich
Recommended Posts
Archived
This topic is now archived and is closed to further replies.