Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Incorrect or misdirected link in template


uwharries2001

Recommended Posts

Forgive me, I am a novice in over my head. I'm doing fine setting up a shop with OS Commerce except for one nagging problem. (well one at the moment). The template I installed seems to have an incorrect link to the create_account.php file and the login php file on the index page.

 

If I view the source on the page I see the misdirection:

 

"<tr>

<td class="main">Welcome <span class="greetUser">Guest!</span> Would you like to <a href="https://safetysparks.com/store/login.php"><u>log yourself in</u></a>? Or would you prefer to <a href="https://safetysparks.com/store/create_account.php"><u>create an account</u></a>?</td>

</tr>

 

It tries to link to https rather than http

 

Of course if I look at the catalog/index.php file, this code si not there. Naturally I don't understand the complexities of php.

If I go to the catalog/includes/languages/english.php I see this:

 

define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');

define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>');

define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');

But i don;t know where it finds the link address since it has instead of a path "%s".

 

Any idea how I correct this? Without this correction my installation will be worthless.

Link to comment
Share on other sites

Check your catalog>includes>configure.php file. This file contains the URL's for your site. Also, I would think that the create account process should be HTTPS as it should be a secure section.

 

 

Chris

Link to comment
Share on other sites

The correct way to fix this is in your /store/includes/configure.php file

 

It probably has a line it that looks like this:

 

  define('ENABLE_SSL', true); // secure webserver for checkout procedure?

Alter it to this:

 

  define('ENABLE_SSL', false); // secure webserver for checkout procedure?

This, of course, assumes you have no SSL certificate installed.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

The correct way to fix this is in your /store/includes/configure.php file

 

It probably has a line it that looks like this:

 

  define('ENABLE_SSL', true); // secure webserver for checkout procedure?

Alter it to this:

 

  define('ENABLE_SSL', false); // secure webserver for checkout procedure?

This, of course, assumes you have no SSL certificate installed.

 

Thanks guys....this shows why a novice such as myself probably should not construct an e-commerce site until I know all the issues. I will need to obtain an SSL so the template is correct and typically I am wrong.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...