osCmax v2.5 User Manual
Results 1 to 2 of 2

A shop with single language

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 ...

      
  1. #1
    New Member
    Join Date
    Dec 2003
    Location
    Moscow
    Posts
    11
    Rep Power
    0


    Default A shop with single language

    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, != 'checkout') {
    // 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.

  2. #2
    New Member
    Join Date
    Sep 2004
    Posts
    5
    Rep Power
    0


    Default

    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)) {
    to:
    Code:
      if (isset($currencies) && is_object($currencies) && sizeof($currencies)>1) {
    For languages, after this in /includes/boxes/languages.php:
    Code:
      if (!isset($lng) || (isset($lng) && !is_object($lng))) {
        include(DIR_WS_CLASSES . 'language.php');
        $lng = new language;
      }
    insert this:
    Code:
      if (sizeof($lng->catalog_languages) > 1) {
    And, insert this:
    Code:
      }
    before this, at the bottom:
    Code:
      $boxContent_attributes = '';
    It's not an admin settting, but I think it's better since it works automatically, depending on the number of languages and currencies your store supports.

    EDIT: Moved IF in languages

Similar Threads

  1. Can I download orders in a single order transaction log
    By DrHBR in forum osCommerce 2.2 Discussion
    Replies: 1
    Last Post: 05-05-2006, 08:10 AM
  2. Single shipping option - UPS Ground - no other UPS services
    By adam71o in forum osCMax v1.7 Installation
    Replies: 5
    Last Post: 04-11-2005, 12:40 PM
  3. creating single sign-in with scheduling feature
    By afmastro in forum osCommerce 2.2 Modification Help
    Replies: 10
    Last Post: 08-11-2004, 07:24 AM
  4. creating single sign-in with scheduling feature
    By afmastro in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 07-15-2004, 09:14 AM
  5. How to get single line per item in catalog display?
    By dhinz in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 10-09-2003, 06:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •