Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Simple Box Title Change (manufacturers To Locations)


nyukid

Recommended Posts

Ok,

 

When you access oscommerce home page (ex: http://order.ncnadnet.com) It puts boxes in the left column.

 

I want to make a simple change of title for the "Manufacturers" box to "Locations" but I don't necessarily want to change the database tables or coding from manufacturers to locations.

 

Just the title that shows to the end-user.

 

I've combed through the coding and may be cross-eyed but I don't see where it's pulling the title from. Closest is manufacturers.php line 60, but changing that doesn't work.

 

Ex: $info_box_contents[] = array('form' => tep_draw_form('Locations', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'),

 

Anyone know if I can just change the title that shows to the end-user or if I have to change all the table titles in the database and associated coding?

Link to comment
Share on other sites

Ok,

 

When you access oscommerce home page (ex: http://order.ncnadnet.com) It puts boxes in the left column.

 

I want to make a simple change of title for the "Manufacturers" box to "Locations" but I don't necessarily want to change the database tables or coding from manufacturers to locations.

 

Just the title that shows to the end-user.

 

I've combed through the coding and may be cross-eyed but I don't see where it's pulling the title from. Closest is manufacturers.php line 60, but changing that doesn't work.

 

Ex: $info_box_contents[] = array('form' => tep_draw_form('Locations', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'),

 

Anyone know if I can just change the title that shows to the end-user or if I have to change all the table titles in the database and associated coding?

 

If you just want to do a simple name change, you don't have to go through all of that code in order to find where the text is being drawn in from. If you go to store/includes/languages/english, you'll find the names of all of the files that are in the regular /store directory. These are your language files, and just about every text that you see in your store is declared here. Most of the stuff that you are going to find is going to be in /store/includes/languages/english.php. That file in particular is where 'manufacturers' is located.

 

You should find a line of code around line 75 that says define('BOX_HEADING_MANUFACTURERS', 'MANUFACTURERS'); All that you would have to do is turn it into define('BOX_HEADING_MANUFACTURERS', 'Locations');, and you're done!

Link to comment
Share on other sites

LOL!

 

2 seconds after I posted it, I found it in the language file you mentioned.

 

I had hoped to close out the topic without embarrassment, but oh well.

 

Thanks for the info as well.

Link to comment
Share on other sites

LOL!

 

2 seconds after I posted it, I found it in the language file you mentioned.

 

I had hoped to close out the topic without embarrassment, but oh well.

 

Thanks for the info as well.

 

this is murphy's law applied to osC, and it's happened to me a bunch of times: try like crazy to fix something, give up in frustration, post a plea to the forum, then immediately go solve my own problem.

 

anyway, all is not in vain. it's always useful to post your solutions, even (maybe especially) when you fix them yourself, so that the next person looking for a solution to the same problem can find their answer by searching the archive. at least it's the hope that they'll search first.

 

cheers,

rj

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...