Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newly installed Link


Guest

Recommended Posts

Hope someone has the time to reply.

 

New Link only shows error page 404. I'm Using OSC 2.2 MP with a working STS template

 

the following added to: /includes/boxes/information.php

 

'<a href="' . tep_href_link(FILENAME_JOIN) . '">' . BOX_INFORMATION_JOIN . '</a><br>' .

 

This is not the final line it is enclosed by the original lines.

Used original *.php files cut and past just changed the name.

 

Added to english/english.php

define('BOX_INFORMATION_JOIN', 'Hobbyist Can Join');

 

I used the shipping.php as template php page; only changed title to "join"

 

Good: This shows on the address line for the original shipping link

http://ushopat.com/ushop4/nfoscomm/catalog...xxxxxxx649435ab

 

BAD: This is what I get when I use it with my new link

 

http://ushopat.com/ushop4/nfoscomm/catalog...4exxxxxxxx435ab

 

The working shipping.php is in two folders /english and catalog: If it is removed from either an error 404 page comes up

Link to comment
Share on other sites

The important piece that was left off the URL in is that when you click on the link you get the following URL.... ttp://ushopat.com/ushop4/nfoscomm/catalog/FILENAME_JOIN?osCsid=xxxxx

 

This tells me that "FILENAME_JOIN" has not been defined, define this in \includes\filename.php so that it references the file that you would like to get processed (create the HTML).

Link to comment
Share on other sites

The important piece that was left off the URL in is that when you click on the link you get the following URL.... ttp://ushopat.com/ushop4/nfoscomm/catalog/FILENAME_JOIN?osCsid=xxxxx

 

This tells me that "FILENAME_JOIN" has not been defined, define this in \includes\filename.php so that it references the file that you would like to get processed (create the HTML).

 

 

I have been trying to link to two files, They are located in the Information Box

 

Information

 

Shipping & Returns

Privacy Notice

Conditions of Use

BOX_INFORMATION_JOIN

BOX_INFORMATION_ABOUT

Contact Us

 

The new file are about.php and join.php

 

I have reference to the two files I am trying to link to in the following osCommerce files:

 

english.php

 

Like so:

 

define('BOX_INFORMATION_ABOUT', 'About Us');

define('BOX_INFORMATION_JOIN', 'Hobbyist can Join');

 

 

filenames.php

 

Like So

 

define('FILENAME_JOIN', 'join.php');

define('FILENAME_ABOUT', 'about.php');

 

information.php

 

Like So:

'<a href="' . tep_href_link(FILENAME_JOIN) . '">' . BOX_INFORMATION_JOIN . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_ABOUT) . '">' . BOX_INFORMATION_ABOUT . '</a><br>' .

 

Still getting BOX_INFORMATION in front of file name. You said HTML if I use HTML do I need two extensions? Think I read somewhere should be xxx.html_php don't know where I read it. Also the browser although it links to the files I created it wants to find them at the root (Catalog) how do I change this. Thanks for your reply and any help you can offer, I have made many changes successfully, this one has me beat,

 

Jim

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...