Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

BOX_HEADING problem


jamiewiles

Recommended Posts

Hi all,

 

Have been banging my head against the wall with this one.

 

I have added two new boxes on my store- a payments accepted and a live help box, using some contributions i found on here.

 

My site is at: http://www.digital-devices.co.uk

 

On the main index.php, everything looks fine. However when you view a product, i.e:

 

http://www.digital-devices.co.uk/product_i...;products_id=40

 

You will see that the title above the two new boxes is showing BOX_HEADING...etc.etc...

 

My store is quite basic at the moment with just a few mods, but this has me stumped, any ideas guys?

 

Many thanks in advance for any help!

 

 

Jamie

Link to comment
Share on other sites

Either you missed out an edit instruction during the installation, probably to /includes/english.php or the installation instructions are wrong.

 

I know the voluvision one works as I have installed it myself......

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

You have installed some kind of contribution, check you have not missed adding something to the language files, either its own file or in english.php

Nic

 

The only contribution i added after the adding of boxes, was http://www.oscommerce.com/community/contributions,2710

 

It was after i installed this that i noticed the problem, although i am not sure if this caused the problem and i just didn't notice anything wrong at first!

 

this mod, only altered the header.php, footer.php and the CSS, so i am sure its not this?

 

Thanks for your comment jack, i will check what i have done!

Link to comment
Share on other sites

When i added the two new boxes, i edited the languages/english/index.php:

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'s See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

 

define('BOX_HEADING_LIVE_HELP', 'Live Help');

//Payment Logo Box v1.0

define('BOX_HEADING_PAYMENTLOGO','We Accept');

?>

 

 

You can see the new boxes i added at the bottom, i.e:

 

 

define('BOX_HEADING_LIVE_HELP', 'Live Help');

//Payment Logo Box v1.0

define('BOX_HEADING_PAYMENTLOGO','We Accept');

?>

 

Does this look right to you?

Link to comment
Share on other sites

And the columnleft.php to:

 

<?php

/*

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

//Payment Logo Box v1.0

include(DIR_WS_BOXES . 'paymentlogo.php');

include(DIR_WS_BOXES . 'categories.php');

}

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');

?>

 

I am Sure i have followed the contribution readme 100%?

Link to comment
Share on other sites

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

//Payment Logo Box v1.0

include(DIR_WS_BOXES . 'paymentlogo.php');

include(DIR_WS_BOXES . 'categories.php');

}

 

Should look

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

//Payment Logo Box v1.0

include(DIR_WS_BOXES . 'paymentlogo.php');

 

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

Thanks for the reply nic, have just tried your suggestion and all it has done is move the payment accepted box to below the categories box.

 

What i do not understand is both my original mods, and the one you have suggested work fine on the index.php and when you click on a category. The problem is only arising when you click on aproduct and call the product_info.php script?

 

I am totally baffled!

Link to comment
Share on other sites

Perhaps you need to empty and turn off your cache?

Admin / configuration / Cache set to false

 

Oh dear....i just tried to follow your suggestion, now it's got worse, when i go to http://www.digital-devices.co.uk/admin i get the password box that i set up on my server for added security. Then it just goes to http://www.digital-devices.co.uk/admin/login.php and displays an empty page...what have i done! damn

Link to comment
Share on other sites

Can you log in?

 

No, i couldnt, but i added a mod earlier to reduce the width of the site and it's been fine all day, anyway tried replacing index.php and login.php and a few others with a site backup i made earlier to no avail.

 

So started working backwards with mods i installed today-starting with the width mod mentioned above, i replaced the css,header and footer files with backups i made (I always without fail backup anything i change) and bingo, back into admin. What i dont get is how the heck the main site worked but not admin? I back up and running now thank god, obviously still got the header_box problems. This is gonna be a long night!

Link to comment
Share on other sites

Yes but its a great feeling to get it done!

Good Luck

Your right there mate! Just re-applied the width mod, and everything (including admin) is working so who knows what caused the admin problem? weird? i even rebooted the server in plesk without success. I know computers work on logic...but sometimes...i bloody wonder! lol

 

Oh well, back to the original problem now...hmmmmm...........

Link to comment
Share on other sites

Sorted! Was looking through the php files in includes/boxes, namely live_help.php and paymentlogo.php and noticed there was nothing to actually define the header text! So anyway i added the following to live_help.php:

 

define('BOX_HEADING_LIVE_HELP',' Live help');

 

And bingo,

 

Added the following to paymentlogo.php:

 

define('BOX_HEADING_PAYMENTLOGO',' We accept');

 

And bingo again!

 

Can't believe i missed it in the first place, wonder why it's not mentioned in the instal readme's though? For example the readme for live help only mentions the following editing for the live_help.php:

 

1. Edit the included live_help.php file using your text editor of choice.

Look for this string: id=xxxxx. Replace xxxxx with the number that got from the script in step (1).

make sure you don't change anything else. save the file.

 

2. copy live_help.php file to your catalog/includes/boxes/

 

And thats it.

 

It does however say to add the following:

 

 

3. open your catalog/includes/language/english.php for editing.

Go to the end of the file before the closing ?> and add this line of code:

 

define('BOX_HEADING_LIVE_HELP', 'Live Help');

 

Obviously thats the define statement for the header txt, and yes it worked all the time you called the index.php, but as soon as you called anything else such as product_info.php or shopping_cart.php it lost the define statement i guess?

 

Anyway, it's working fine now!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...