Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 11 votes

How Do I ...? All the basic install questions regularly asked...


537 replies to this topic

#41 amysragbag

  • Community Member
  • 2 posts
  • Real Name:Laura Banks

Posted 18 June 2008, 15:15

View Postamysragbag, on Jun 18 2008, 03:34 PM, said:

I can't find it either, and I don't know what it would mean for my store to be in the root. But if someone could let me know what the full url would be, using exampl.com in place of my home url, I think I would be well on my way. I've tried pasting /catalog/includes/languages/English/index.php to the end of all kinds of urls and it comes up "page not found." Thanks.

Nevermind, sorry! I found it in the cpanel.

#42 Chronoz

  • Community Member
  • 107 posts
  • Real Name:Steven

Posted 25 June 2008, 17:38

View Postgigashadow, on May 5 2008, 07:32 PM, said:

Hi, I've been looking everywhere to try and find out how to change the SHipping option names from bestway to say first class or priority or whatever I want to call it, so it no longer says best way shipping.


How do you change that? Ive tried and looked but I cant seem to find it!

Help please

#43 lhboutique

  • Community Member
  • 3 posts
  • Real Name:LHBoutique

Posted 26 June 2008, 01:51

Hi,

I'm new to osCommerce and I cannot get my store to send emails at all...if I choose smtp there is no where for me to enter the server information and I have no clue about the sendmail option.

Is there anyone that can help me?

Thanks a million in advance.

#44 audreyannlow

  • Community Member
  • 12 posts
  • Real Name:Audrey Ann Low

Posted 28 June 2008, 19:49

How Do I add an info box to the left or right columns?

#45 BryceJr

  • Community Member
  • 1,441 posts
  • Real Name:Bryce

Posted 28 June 2008, 20:09

View Postaudreyannlow, on Jun 28 2008, 08:49 PM, said:

How Do I add an info box to the left or right columns?
http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/66
--OR--
http://forums.oscommerce.com/index.php?showtopic=274968& # 7

#46 Chronoz

  • Community Member
  • 107 posts
  • Real Name:Steven

Posted 29 June 2008, 20:38

View PostChronoz, on Jun 25 2008, 05:38 PM, said:

QUOTE (gigashadow @ May 5 2008, 07:32 PM)
Hi, I've been looking everywhere to try and find out how to change the SHipping option names from bestway to say first class or priority or whatever I want to call it, so it no longer says best way shipping.



How do you change that? Ive tried and looked but I cant seem to find it!

Help please


Bump, still cant find how to do this... =(

#47 Chronoz

  • Community Member
  • 107 posts
  • Real Name:Steven

Posted 30 June 2008, 16:49

2. … Change the What’s New Here on the front page?
Go to catalog/includes/languages/English/index.php
Find the following line and change it to what you want it to say
CODE
define('HEADING_TITLE', 'What\'s New Here?');



I was able to do this one but what if I have multiple catagories? They all have the Whats New Here? And I would to have them all different, is there a way to do that?

I was thinking of finding the pages individually but that didnt work

EDIT: sorry it doesnt say "whats new here" it says "Lets see what we have here"

Edited by Chronoz, 30 June 2008, 16:53.


#48 mydzine

  • Community Member
  • 29 posts
  • Real Name:brenda warren

Posted 01 July 2008, 01:26

View Posthauruapai, on Aug 31 2007, 12:22 AM, said:

Here is a “How Do I …?” list for the basic questions that get asked in this forum. After spending a lot of time searching for this list, and realising that the same things are asked over and over, I thought I would put this list here with answers to make it easier for others to find!

Maybe this could get pinned to make it easy to find and others could add to this list their How do I...? with the ANSWER!

How Do I ……

1. … Change the OsCommerce in the Title?
Log into the admin then go to Configuration > My Store and edit Store Name

2. … Change the What’s New Here on the front page?
Go to catalog/includes/languages/English/index.php
Find the following line and change it to what you want it to say
  define('HEADING_TITLE', 'What\'s New Here?');

3. … Change the Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account on the front page?
Go to catalog/includes/languages/English/index.php
Find the following line and change it to what you want it to say [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>?'); [/code]

4. … Change the default text on the front page?
Go to catalog/includes/languages/English/index.php
Find the following line that starts with the following (about line 13 – usually the first one ) and change it to what you want it to say
  define('HEADING_TITLE', 'TEXT_MAIN', 'This is a default setup  ……  . PROJECT_VERSION . '</b></font>.');');

An easier way to do this is to install the contribution Define MainPage then you can change the default text whenever you like through the Admin section

5. … Remove the ??? box from the left / right side?
Go to catalog/includes/column_left.php OR column_right.php and put // in front of the line with the box name that you want to remove.

An easier way is to install the contribution InfoBox Admin which will let you remove the boxes, move them to the other column through clicking buttons through the admin. You can also add other boxes easily through this as well.

6. … Move the ??? box from the left / right side?
Go to catalog/includes/column_left.php OR column_right.php and put // in front of the line with the box name that you want to remove. Copy that line then add it into the other file where you want it to be.

An easier way is to install the contribution InfoBox Admin which will let you remove the boxes, move them to the other column through clicking buttons through the admin. You can also add other boxes easily through this as well.

7. … Add the ??? box from the left / right side?
Go to catalog/includes/column_left.php OR column_right.php and copy a line then change it into the file that you want to add.

An easier way is to install the contribution InfoBox Admin which will let you remove the boxes, move them to the other column through clicking buttons through the admin. You can also add other boxes easily through this as well.

8. … Remove / Add the rounded corners to the info boxes on the left or right columns?
Go to catalog/includes/boxes and open the corresponding file name for the box you want to change. Here is the code that will change this – look for the line that you have (eg left rounded) then change it to what you want it to be.

No rounded corners
 new infoBoxHeading($info_box_contents, false, false);

Right rounded corner
 new infoBoxHeading($info_box_contents, false, true);

Left rounded corner
 new infoBoxHeading($info_box_contents, true, false);

Both rounded corners
 new infoBoxHeading($info_box_contents, true, true);

9. … Remove / Add the rounded corners to the info boxes in the middle part of the page? (eg: New Products for MONTH)
Go to catalog/includes/modules and open the corresponding file name for the box you want to change. Change the following code to the one above that you want.
 new contentBoxHeading($info_box_contents);


10. … Change the default text ???? on the ???? page
Go to catalog/includes/language/YourLanguage/ and choose the filename with the same name as the page you want to change. Look for the text in there that you want to change

11. … Change the Title in the ???? Box?
Go to catalog/includes/English.php and find the line where NAME_OF_BOX is the box you want to change and Title of Box is the title that is showing and change the Title of Box to what you want
 define('BOX_HEADING_NAME_OF_BOX, 'Title of Box');

12. … Remove the Top from the breadcrumb?
Go to catalog/includes/application_top.php and put // in front of the following line (around 482)
 $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

13. … Change Top or the Catalog on the breadcrumb?
Go to catalog/includes/English.php and find the following lines and make the changes as necessary
 define('HEADER_TITLE_TOP', 'Top');
define('HEADER_TITLE_CATALOG', 'Catalog');

14. … Change the >> in the breadcrumb?
Go to catalog/includes/header.php and find the following line – about 63 and change the bit that begins after trail that begins with the & and ends in the ; to the character that you want.
 <td class="headerNavigation">  <?php echo $breadcrumb->trail(' & raquo; '); ?></td>

15. … Change the default currency to one that is not USD to get the prices to show?
Go to catalog/includes/languages/English.php and around line 39 find
 define('LANGUAGE_CURRENCY', 'USD');
and change the USD to Currency code that you want to use.

16. … Change the date format to DD/MM/YYYY?
Go to catalog/includes/languages/English.php and around line 21
 
define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime()
change it to
 
define('DATE_FORMAT_SHORT', '%d/%m/%Y');  // this is used for strftime()

Then around line 23 find this
 define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
and change it to
 define('DATE_FORMAT', 'd/m/Y'); // this is used for date()

You also need to make the same changes in catalog/ADMIN/includes/languages/English.php

17. How do I change the font / colour / size?
Go to catalog/includes/stylesheet.css and make the changes in there for the main site.
Go to catalog/admin/includes/stylesheet.css and make the changes in there for the admin section.

Happy coding! :D


Hi, I can't get item # 9 to work. I can't seem to get the corners rounded, can you provide more details
thanks

#49 BryceJr

  • Community Member
  • 1,441 posts
  • Real Name:Bryce

Posted 01 July 2008, 07:19

View Postmydzine, on Jul 1 2008, 02:26 AM, said:

Hi, I can't get item # 9 to work. I can't seem to get the corners rounded, can you provide more details
thanks
Inside catalog/includes/modules folder are files that correspond to the box with which you want rounded corners.
Open the file in a text editor and look for this line new contentBoxHeading($info_box_contents);
Refer to #8 above for the setting you want.

Edited by BryceJr, 01 July 2008, 07:20.


#50 rcinnovations

  • Community Member
  • 4 posts
  • Real Name:Bryan Taylor

Posted 03 July 2008, 00:30

Hi all, like everyone here I am new to all this but have managed to do a few of the things listed here!

But I am having problems finding where I can change the date as it is set to USA time zone and need to change in to my country New Zealand time zone and also correct local time?

Cheers Bryan

#51 easw

  • Community Member
  • 8 posts
  • Real Name:Andy Holst

Posted 06 July 2008, 04:40

how do I reset the admin user name/password?

#52 mrssocolov

  • Community Member
  • 54 posts
  • Real Name:Marlo Socolov
  • Gender:Female
  • Location:Ohio - Go Buckeyes!

Posted 07 July 2008, 04:38

View Posteasw, on Jul 6 2008, 12:40 AM, said:

how do I reset the admin user name/password?

Andy - found this in my travels while checking out the contributions - might help you or not...

http://addons.oscommerce.com/info/5857

Quote

Dance as if No One were Watching ~ Sing as if No One were Listening ~ And Live Life everyday as if it were Your Last!


#53 learningasigo

  • Community Member
  • 7 posts
  • Real Name:Jess

Posted 07 July 2008, 21:49

View Postspax, on Aug 31 2007, 05:35 PM, said:

Here's a few basics I could think of. Please don't post questions here, if you need to ask, start a new thread and reference this. Let's keep this clean!

20. How do I remove or change the osCommerce Account, Cart and Checkout clip art?
To remove them completely, find and delete this line from includes/header.php

	<td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>


Many thanks! I was looking for this. And it did the trick. It got rid of the clip art in the headers. But didn't seem to remove it for the shopping cart clip art (below header on right side). How do I get rid of it all?

Thanks in advance for any help!

#54 diy

  • Community Member
  • 350 posts
  • Real Name:kosmas
  • Gender:Male

Posted 08 July 2008, 06:34

View PostChronoz, on Jun 29 2008, 09:38 PM, said:

Bump, still cant find how to do this... =(

to change the "best way" text go to catalog/includes/language/yourlanguage/modules/shipping and there you will see the various default shipping options (flat-per item-table etc ) open the one you (are using) want changed and change the text best way to whatever you want!

Edited by diy, 08 July 2008, 06:35.


#55 Siggesork

  • Community Member
  • 8 posts
  • Real Name:Daniel Sörensson

Posted 08 July 2008, 12:26

When i open my site and store in explorer it said os commerce at those tabs in explorer any way to change that?

#56 Drafus

  • Community Member
  • 15 posts
  • Real Name:Bryan
  • Gender:Male

Posted 08 July 2008, 23:30

I don't beleive this has already been covered, but I am wondering how to have my breadcrumb "Top" link to hold the session id of a customer who is already logged in. The problem I am having is evertime I click on the "Top" breadcrumb my session ends and I am no longer logged in. I notice that the link does not have the session id.

Any help would be appreciated. This is only my second post and I hope to be of some help to others in the future.

Thank you again.

#57 germ

  • Community Member
  • 13,471 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 08 July 2008, 23:56

Does the "Top" link point to the same place as your Catalog index.php page?
:unsure:

If the "Top" goes to the root folder, and you have osC installed in another folder (such as /catalog) you have a problem.

Both of those links get developed in /includes/application_top.php

  $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);
  $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

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

"Headers already sent" - The definitive help

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

SSL Implementation Help

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

#58 Drafus

  • Community Member
  • 15 posts
  • Real Name:Bryan
  • Gender:Male

Posted 09 July 2008, 15:58

View Postgerm, on Jul 8 2008, 04:56 PM, said:

Does the "Top" link point to the same place as your Catalog index.php page?
:unsure:

If the "Top" goes to the root folder, and you have osC installed in another folder (such as /catalog) you have a problem.

Both of those links get developed in /includes/application_top.php

  $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);
  $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

I have my osC installed in root directory not in catalog. I have changed the "Top" to a icon with and I don't recall checking the "Top" breadcrumb link before changing to an icon as to whether or not the session was attached before I made the change. I believe I know how to attach the session ID to the link but I would like to get someone elses (anyone other than myself) imput before waisting any more time going in circles.

Thanks again! I am really enjoying osC and appreciate the support group. :+)

#59 germ

  • Community Member
  • 13,471 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 09 July 2008, 16:27

This code change should do it:

  $breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_DEFAULT));
  $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));
Although I think it might be redundant to have both when they go to the same place.

I suppose it's just a matter of preference on your part.
If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Headers already sent" - The definitive help

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

SSL Implementation Help

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

#60 Drafus

  • Community Member
  • 15 posts
  • Real Name:Bryan
  • Gender:Male

Posted 09 July 2008, 16:56

View Postgerm, on Jul 9 2008, 09:27 AM, said:

This code change should do it:

  $breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_DEFAULT));
  $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));
Although I think it might be redundant to have both when they go to the same place.

I suppose it's just a matter of preference on your part.

Excellent! Thank you Germ! This worked perfectly. I will probably just leave the other there as default since it's not affecting anything.

Another thing I have been curious of is the sessions. I know this may be a newbie question but I am going to ask it anyway. Am I mistaken to think that most people do not have cookies enabled due to vulnerabilities? How do I use the sessions without having to force cookies and show the session ID in the URL?

I have a SSL Cert. that I will be using when I go live, when I change to SSL enabled will the session ID change?

Thank you for any help you can provide. :rolleyes: