jump to navigation

UK Based setup for osCommerce June 4, 2007

Posted by admin in : UK Based , add a comment

We have several customers queued up asking for a UK Based setup for osCommerce

Wouldn’t it be great if the default osCommerce installation is configured for UK businesses by default?

This can be achieved on an  osCommerce DEFAULT installation and NOT a “loaded” installation.

Features:

- Added UK counties of England, Wales, Scotland, Northern Ireland and Channel Islands.
- UK date format for Admin section.
- UK date format for Catalog section.
- UK address layout in create_account.php, address_book_process.php and checkout_shipping_address.php
- Updated date format related error constants.
- Added British Currency (default).
- Updated the sample catalog’s price database.
- VAT.
- VAT zones.

There is a simple contribution to achieve this.

Reach us for more info !

Lightbox for osCommerce ! May 25, 2007

Posted by admin in : Simple Issues , add a comment

Fed up with the default option given by osCommerce to enlarge product images, one of the client wanted to implement Lightbox (http://www.huddletogether.com/projects/lightbox/)

Lightbox JS is a simple, unobtrusive script used to overlay images on the current page. It’s a snap to setup and works on all modern browsers.

We took it up and made the changes. It worked like breeze

############################################################

First upload the files that are included with this package to the root directory of your catalog.

Typically the catalog directory.
############################################################

Secondly you will add the following code between the <head> and </head> to any page that you want to use the script on.

Typically on catalog/product_info.php

<script type=”text/javascript” src=”js/prototype.js” mce_src=”js/prototype.js”></script>
<script type=”text/javascript” src=”js/scriptaculous.js?load=effects” mce_src=”js/scriptaculous.js?load=effects”></script>
<script type=”text/javascript” src=”js/lightbox.js” mce_src=”js/lightbox.js”></script>

thirdly if you want to use this contrib on the catalog/product_info.php page you will change

<script language=”javascript”><!–
document.write(’<?php echo ‘<a href=”java script:popupWindow(\\\” . tep_href_link(FILENAME_POPUP_IMAGE, ‘pID=’ . $product_info[’products_id’]) . ‘\\\’)”>’ . tep_image(DIR_WS_IMAGES . $product_info[’products_image’], addslashes($product_info[’products_name’]), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, ‘hspace=”5″ vspace=”5″‘) . ‘<br>’ . TEXT_CLICK_TO_ENLARGE . ‘</a>’; ?>’);
//–></script>
<noscript>
<?php echo ‘<a href=”‘ . tep_href_link(DIR_WS_IMAGES . $product_info[’products_image’]) . ‘” target=”_blank”>’ . tep_image(DIR_WS_IMAGES . $product_info[’products_image’], $product_info[’products_name’], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, ‘hspace=”5″ vspace=”5″‘) . ‘<br>’ . TEXT_CLICK_TO_ENLARGE . ‘</a>’; ?>
</noscript>

with

<?php echo ‘<a href=”‘ . tep_href_link(DIR_WS_IMAGES . $product_info[’products_image’]) . ‘” rel=”lightbox”>’ . tep_image(DIR_WS_IMAGES . $product_info[’products_image’], $product_info[’products_name’], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, ‘hspace=”5″ vspace=”5″‘) . ‘<br>’ . TEXT_CLICK_TO_ENLARGE . ‘</a>’; ?>
<noscript>
<?php echo ‘<a href=”‘ . tep_href_link(DIR_WS_IMAGES . $product_info[’products_image’]) . ‘” target=”blank”>’ . tep_image(DIR_WS_IMAGES . $product_info[’products_image’], $product_info[’products_name’], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, ‘hspace=”5″ vspace=”5″‘) . ‘<br>’ . TEXT_CLICK_TO_ENLARGE . ‘</a>’; ?>
</noscript>

############################################################

lastly
add contents of lightbox.css to the bottom of catalog/stylesheet.css

osCommerce – What is it and its benefits ? May 13, 2007

Posted by admin in : Basic Info , 1 comment so far

You should have come across this word ‘ osCommerce’. What is it ? osCommerce (available as free download from http://www.oscommerce.com) is the most comprehensive and popular open source Shopping Cart system in existence. It has a huge list of features and is probably the most versatile shopping cart solution and offers vast range of customization choices for the on-line storefront owners depending on their need at a very affordable price. If you are looking for setting up an e-shop, you should definitely consider osCommerce

osCommerce is an online shop e-commerce solution that offers a wide range of out-of-the-box features that allows online stores to be setup fairly quickly with ease, and is available for free as an Open Source based solution released under the GNU General Public License.

osCommerce is a complete online store solution that contains both a catalog frontend and an administration tool backend, which can be easily configured over web.

(more…)

Problem with setting default language ! May 8, 2007

Posted by admin in : Simple Issues , add a comment

A customer faced this pecuiliar issue.

” Whatever I set as  Default Language in ADMIN, it is override by the browser..can you help..? ”

Solution :

We just changed the code at file: …/includes/application_top.php

At line +/- 274
from:
CODE
if (isset($HTTP_GET_VARS[’language’]) && tep_not_null($HTTP_GET_VARS[’language’])) {
$lng->set_language($HTTP_GET_VARS[’language’]);
} else {
$lng->get_browser_language();
}

to:
CODE
if (isset($HTTP_GET_VARS[’language’]) && tep_not_null($HTTP_GET_VARS[’language’])) {
$lng->set_language($HTTP_GET_VARS[’language’]);
} else {
$lng->set_language(DEFAULT_LANGUAGE);
}

Simple !

Warning: session_save_path(): SAFE MODE Restriction in effect May 4, 2007

Posted by admin in : Simple Issues , add a comment

One of our customers faced this issue

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is *** is not allowed to access owned by uid ***in /httpd/html/oursite/www/catalog/admin/includes/functions/sessions.php on line 213

Solution :

Fix: Goto Admin / Configuration / Sessions and change the “Sessions Directory” to tmp (no slashes)

If you can’t get into Admin, goto your Database Admin page (usually PhPAdmin app.)
Click on any table on the left hand side.
Click on SQL at the top of the screen
Overtype whatever appears in the SQL window with …
UPDATE configuration SET configuration_value = ‘tmp’ WHERE configuration_key=’SESSION_WRITE_DIRECTORY’