Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need change a link but can't find the file


bluedragon

Recommended Posts

Hi

I need a little help! on the main page there is:

 

Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?

 

I need to change the link create an account to my registration form.

 

But I can not find the place to change it. Could you please tell me where it is?

 

Thank you so much! :rolleyes:

Link to comment
Share on other sites

The link is set on catalog/includes/functions/general.php. around line 933.

 

function tep_customer_greeting() {

global $customer_id, $customer_first_name;

 

if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {

$greeting_string = sprintf(TEXT_GREETING_PERSONAL, tep_output_string_protected($customer_first_name), tep_href_link(FILENAME_PRODUCTS_NEW));

} else {

$greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

}

 

return $greeting_string;

}

 

Or you could add some html code text to:file:/catalog/includes/languages/english/index.php

This would be below your heading in the body of your text.

<a href='yourpage'>Click here to register<a>

Lloyd

Link to comment
Share on other sites

The link is set on catalog/includes/functions/general.php. around line 933.

 

function tep_customer_greeting() {

global $customer_id, $customer_first_name;

 

if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {

$greeting_string = sprintf(TEXT_GREETING_PERSONAL, tep_output_string_protected($customer_first_name), tep_href_link(FILENAME_PRODUCTS_NEW));

} else {

$greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

}

 

return $greeting_string;

}

 

Or you could add some html code text to:file:/catalog/includes/languages/english/index.php

This would be below your heading in the body of your text.

<a href='yourpage'>Click here to register<a>

 

Hi

Thank you so much for your help!

If i need change the create account to my Registration form https://bluedragonhome.c5.ixwebhosting.com/...egistration.htm

is this a wrong way, the page turned blank after i put it like this below, but don't worry I got back up.

Please tell me more details. Thanks! :rolleyes:

 

$greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(https://bluedragonhome.c5.ixwebhosting.com/Forms/Registration.htm ));

}

Link to comment
Share on other sites

Looks good to me, I went to your link,, is this an osC store? Ive noticed in the file path 'bluedragonhome.c5.ixwebhosting.com/Forms/Registration.htm' there is not the word /catalog/..

Are you redirecting outside of the osC root folder? If so, then how are you going to write the user registration information to the database?

 

I see you are using shared ssl.. Is that why? Did that change the file path? I use the same web host and was thinking about adding shared ssl to my website but I have not done it yet so I do not know that much about it.

 

Oh yeah, I believe your file path should be in quotes.

 

tep_href_link('https://bluedragonhome.c5.ixwebhosting.com/Forms/Registration.htm'));

Lloyd

Link to comment
Share on other sites

Another way that might be a little easier is going into your english.php and look for this code

 

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

 

And change it to this...

 

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="https://bluedragonhome.c5.ixwebhosting.com/Forms/Registration.htm"><u>create an account</u></a>?');

 

 

Might be a little easier then having to mess with PHP

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Link to comment
Share on other sites

Another way that might be a little easier is going into your english.php and look for this code

 

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

 

And change it to this...

 

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="https://bluedragonhome.c5.ixwebhosting.com/Forms/Registration.htm"><u>create an account</u></a>?');

Might be a little easier then having to mess with PHP

 

 

Thank you soooooo much!!!

It's working now. :rolleyes:

 

The website That i'm making is for a wholesale Catalog, so we need the customer register first, they can't open account in the store by themselves, that's why we have to link the registration form outside of the store.

http://www.bluedragonhome.com/catalog/

 

But My next step is to block the price, before customer login. but i haven't find a way yet. keep working.........

 

Thanks again!!!

Link to comment
Share on other sites

Looks good to me, I went to your link,, is this an osC store? Ive noticed in the file path 'bluedragonhome.c5.ixwebhosting.com/Forms/Registration.htm' there is not the word /catalog/..

Are you redirecting outside of the osC root folder? If so, then how are you going to write the user registration information to the database?

 

I see you are using shared ssl.. Is that why? Did that change the file path? I use the same web host and was thinking about adding shared ssl to my website but I have not done it yet so I do not know that much about it.

 

Oh yeah, I believe your file path should be in quotes.

 

tep_href_link('https://bluedragonhome.c5.ixwebhosting.com/Forms/Registration.htm'));

 

Thank you so much for your help!

It's working now!

Yes, I linked the registration form outside of the store. because the website That i'm making is for a wholesale Catalog.

http://www.bluedragonhome.com/catalog/

 

If you use the ix web hosting, it's very easy to get the shared SSL.

Just get on the Control panel---Manage---SSL

Turn on the Shared SSL by yourself.

and It works very good.

Thank you again !

 

Coral :rolleyes:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...