Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing categories & manufacturers menu box text


Guest

Recommended Posts

Posted

i've been trying to chance the text that displays as the box menu for the catagory & manufacturer seach boxes.

 

so far i have been able to get the catagory box to change the text once you physically click one of the cats. but i'd like to get it to be changed all the time.

 

i've had no luck on the sort by manufactures box either.

Posted

Yeah, me neither, I'm trying to delete the manufactors box on the site...cant' figure that out :( nor how to get the languages and currency on the right bar to dissappear :(

 

- Jared

Posted

The manufacturers, language and currency boxes can be easily deleted using column_left and column_right.php.

 

In column_left.php comment out:

 

  include(DIR_WS_BOXES . 'manufacturers.php');

 

 

and in column_right.php, comment out both lines of:

 

include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

Posted

yeah i already removed the boxes i dont need. now i just need to change the text for the boxes that are there. cant seem to find out where the code is.

Posted

Do you mean the text inside the box or the title text? Either way, it can be found in the appropriate file in includes/languages/english/boxname.php

 

So if you wanted to change the text in the categories box, you would change it in includes/languages/english/categories.php

 

It's worth looking through all of the language files as there are all sorts you can change.

Posted

i'm working with the 9-5-2003 snapshot.

in includes/languages/english i do not have a catagories.php.

the manufacturers box also is not in there. both of them boxes are located in my includes/boxes directory.

 

back in the english folder i have my index.php, in which it has a

 define('HEADING_TITLE', 'Categories');

 

but when i change the 'Catagories' to 'Items' , this is only shown as Items, once you actually click on one of catagories.

Posted

Sorry - my fault. I was going off memory and remembered it wrong. Mea culpa. :oops:

 

You should in fact be able to change it in includes/languages/english.php

 

Change:

define('BOX_HEADING_CATEGORIES', 'Categories');

 

to:

 

define('BOX_HEADING_CATEGORIES', 'Items');

 

That should do the trick. And you can find the text for the other boxes there also, along with all sorts of stuff to change.

 

Sorry for the mistake.

Posted

NOTE: Every time you edit english.php, scroll to the end and check for spaces. Some text editors add a space at the end and this will create header errors. If there are any spaces or empty lines after the last ?> be sure to delete them.

Posted

ey JulieCSM, that was in fact the code i had there before. i just recopied the code you put here, double checked for spaces and resaved/upload. still the same deal. when you go to the store. http://www.murdertheworld.net/distro you can see the catagory box is still the same, BUT once you click on a catagory, it will then display the 'Items' code as was put into the english.php

 

take a look see what ya can come up with. all your help and patients is much appreciated. this is a secondary storefrint to the one i currently have running. working it up behind the scenes.

Posted

Says 'Items' in the category box -which, I assume, is what it should say . . .

 

But you have messed up your manufacturer's heading, which says BOX_HEADING_LABELS

 

Try refreshing the page - the change might show up then.

Posted

OK - weird thing. When I clicked on a category, it said categories, which is the other way round to what you said. But then when I went BACK to catalog, it said categories also, not Items, whcih is what you said it was doing.

 

Pass. It seems to be doing what it likes. Maybe because you have a snapshot, not a fully tested version. Although this kind of simple stuff, I don't know why it would mess it up. I have added boxes and changed the text and moved stuff around and all sorts, all with no problems.

 

And now your news isn't working, which it was before . . .

Posted

hrmmm

when i open my browser and go to the page, yes it says items, and the box_heading_label *i want it to say labels actually.*

 

 

but, once i refresh the page, items changes to catagories, and box_heading_labels changes back to manufacturers.

 

for now i might hafta leave it as default, untill i understand the code more.

Archived

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

×
×
  • Create New...