osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Installation

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-18-2003, 02:04 PM
New Member
 
Join Date: Dec 2003
Location: Moscow
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
case510
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 09-19-2004, 06:49 AM
New Member
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kguske
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 03:33 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax