Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shop Name in Task Bar


SLBlay

Recommended Posts

Posted

Hi!

 

My first post as a newbie idiot, although I've been cruising the forum for a while to get some basic knowledge!

 

My hosting plan uses Fantastico to auto-install osCommerce 2.2M2, it all goes very smoothly.

 

BUT .. If I specify the store name as, say, "Steve's Store" the name appears in the Windows task bar as "Steve/".

 

So, it changed the apostrophe to a forward slash and ignored the rest - although Admin configuration etc has the full right name. On a whim, I tried "escaping" the apostrophe ("Steve/'s Store") and just got "Steve/\"

 

Anyone know if there's a way:

1. To get around this at install time - ie, make it work right.

2. To correct the code on an existing install (don't want to "blow it away")

 

I know it's a small thing, and we could just call it "Steves Store", but I figured some smart person might have a quick answer?

 

One day, I'll be smarter ... Steve :unsure:

"When you're up to your neck in alligators, it's hard to remember that you came to drain the swamp!"

Posted

Sorry - Checked Admin Configuration - Also has wrong, shortened name - But lets you edit it to correct (Steve's Store) entry, However this change doesn't seem to fix the name shown in the Task bar - Steve

"When you're up to your neck in alligators, it's hard to remember that you came to drain the swamp!"

Posted

Enter it as "Steve\'s Store" [no quotes]. php understands the single tick to be the closing of a quote s you need to escape the tick to tell the system ou want the literal character.

Posted

Mort,

 

I was feeling real "dumb-me", since I was on the right track with "escaping the apostrophe" - I found the tip on:

 

http://www.oscommerce.com/forums/index.php?showtopic=65451

Are you using the admin file manager to edit your files? Try downloading the file and editing it locally instead (even with something like WordPad). Then upload it with FTP.

If you use a contraction, remember to escape the ', like this 'Let\'s'

Hth, Matt

But, duh! I used the forward slash instead of the backslash! I was ready to "buy you a beer"! I removed and reinstalled with "Steve\'s Store" (no quotes) ... bad news ... now my store name is showing as "Steve\\\".

 

So it's back to the drawing board!

And, anyone got ideas on how I can fix an existing installation?

:(

"When you're up to your neck in alligators, it's hard to remember that you came to drain the swamp!"

Posted

Knowing how many times I screw-up, I did it again, v-e-r-y c-a-r-f-u-l-l-y!

 

Same thing, "Steve\\\" :o :o :o

"When you're up to your neck in alligators, it's hard to remember that you came to drain the swamp!"

Posted

Not sure what you did -- try it again.

 

Assuming an english installation ...

 

edit the file <docroot>/catalog/includes/languages/english.php

 

find the lines ...

 

// page title

define('TITLE', 'osCommerce);

 

(well, the osCommerce probably now has Steve-something or other in there)

 

change it to ...

 

// page title

define('TITLE', 'Steve\'s Store');

Posted

Thanks everyone for your input! :D

 

I have conducted careful thorough testing, and report as follows:

Using my Web Hosting company Fantastico to install OS2.2M2 -

 

1. If you type "Steve's Store" (no quotes) for the Shop Name, you will end up with a shop named "Steve\".

2. If you "escape" the apostrophe incorrectly with a forward slash ("Steve/'s Store"), you will get "Steve/\".

3. If you escape the apostrophe correctly with a back slash ("Steve\'s Store"), you will get "Steve\\\".

4. If you type "Steve´s Store", you will get "Steve's Store". HOORAY!!! :P

 

The problem might be with the way Fantastico interprets the configuration field entries during the osCommerce installation.

 

The Shop Name can be modified with admin configuration, but it will not alter the browser label that appears in the task bar. To do that, you will need to edit public_html/<oscomname>/includes/languages/english.php as Mort describes. It's at line 47. I haven't actually tried the edit yet, but am optimistic it will work!

"When you're up to your neck in alligators, it's hard to remember that you came to drain the swamp!"

Archived

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

×
×
  • Create New...