OSCommerce Guide

OSCommerce Tips, Tricks, Tweaks, Tutorials, Templates


OSCommerce - How to Remove the Currency Box

If you have just installed OSCommerce you may find that some of the boxes in the left and right columns of your ecommerce store are not needed. In this article I show you how to delete the currency box so that it will no longer be seen when a customer is viewing your online store.

If you wish to remove the currency box from your OSCommerce installation you are likely to be selling to customers only within your own country rather than to customers worldwide. In this situation there is no need to display the currency in use and the box can be hidden. It is a simple adjustment to the code to hide the currency box.

I have rated the difficulty level as easy. This tweak can be performed by any beginner user of OSCommerce.

  1. Log in the Admin section of your OSCommerce store

  2. Find the file catalog/includes/column_right.php

  3. Download the file catalog/includes/column_right.php

  4. Find the code pertaining to the currency box at the end of the file. The code will resemble the following:

    if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
    include(DIR_WS_BOXES . 'languages.php');
    include(DIR_WS_BOXES . 'currencies.php');

  5. Add // in front of the command that includes the currency box in the catalog as follows:

    if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
    include(DIR_WS_BOXES . 'languages.php');
    //include(DIR_WS_BOXES . 'currencies.php');

  6. Save your changes and upload your edited file using FTP

  7. Refresh your OSCommerce store to see that the currency box has disappeared from the bottom right corner.

1 comment:

Anonymous said...

Very helpful thanks!

Post a Comment

Enter your email address:

Delivered by FeedBurner

feedburner count