This is a discussion on A shop with single language within the osCMax v1.7 Installation forums, part of the osCMax v1.7 Forums category; Hi all. It is good idea to disapear Languages box from Right Column if you have only one language. To ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi all. It is good idea to disapear Languages box from Right Column if you have only one language. To do that I remarked last four lines in catalog/includes/column_right.php Like this: // if (substr(basename($PHP_SELF), 0, // include(DIR_WS_BOXES . 'languages.php'); // include(DIR_WS_BOXES . 'currencies.php'); // } It would be great if someone can add such a setting into admin interface. |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| Another option is to only display the languages and currencies boxes when there is more than one to select. For currencies, change the line in /includes/boxes/currencies.php that looks like: Code: if (isset($currencies) && is_object($currencies)) {
Code: if (isset($currencies) && is_object($currencies) && sizeof($currencies)>1) {
Code: if (!isset($lng) || (isset($lng) && !is_object($lng))) {
include(DIR_WS_CLASSES . 'language.php');
$lng = new language;
}
Code: if (sizeof($lng->catalog_languages) > 1) {
Code: } Code: $boxContent_attributes = ''; EDIT: Moved IF in languages |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can I download orders in a single order transaction log | DrHBR | osCommerce 2.2 Discussion | 1 | 05-05-2006 09:10 AM |
| Single shipping option - UPS Ground - no other UPS services | adam71o | osCMax v1.7 Installation | 5 | 04-11-2005 01:40 PM |
| creating single sign-in with scheduling feature | afmastro | osCommerce 2.2 Modification Help | 10 | 08-11-2004 08:24 AM |
| creating single sign-in with scheduling feature | afmastro | osCMax v1.7 Discussion | 1 | 07-15-2004 10:14 AM |
| How to get single line per item in catalog display? | dhinz | osCMax v1.7 Discussion | 1 | 10-09-2003 07:43 AM |