Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

going bananas on hyperlink!!!


RichSM

Recommended Posts

Posted

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

Posted

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

Posted
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)

but the file name is properly defined in admin/includes/filenames.php already.

what else canI check?

 

Thanks Winterchild

Posted

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

Posted
but the file name is properly defined in admin/includes/filenames.php already.

what else canI check?

 

Thanks Winterchild

 

 

you are missing a quote there

Treasurer MFC

Posted

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

Posted
you are missing a quote there

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

Posted
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?

 

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

Posted

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

Posted
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

 

 

what about your catalog/includes/filenames.php ?

Treasurer MFC

Posted

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

Posted
what about your catalog/includes/filenames.php ?

 

forget that, stupid question, from here the filenames look ok.

so how does your link look ?

Treasurer MFC

Posted
what about your catalog/includes/filenames.php ?

 

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

Posted
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

Posted
so how does your link look ?

 

What does it look like in /admin/includes/boxes/reports.php ?

 

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.

Posted
forget that, stupid question, from here the filenames look ok.

so how does your link look ?

boxtel, sorry you've lost me. What do you mean by "so how does your link look ?"

 

 

Thanks,

 

Rich

Posted
What does it look like in /admin/includes/boxes/reports.php ?

 

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.

 

looks ok to me

Treasurer MFC

Posted
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

Posted
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.

 

How do I do that? (to be sure we meant the same)

 

Many thanks.

 

Rich

Archived

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

×
×
  • Create New...