36

How to get a new theme for your osCommerce store

multimixer | learn | Thursday December 2 2010

That’s how the osCommerce theme looks by default in version 2.3.1

the default redmond theme

What we want to do is, to change the light blue of the buttons, infobox headings and breadcrumb line (thats the line just under the header). In other words, we’re going to change the color theme of the store. The whole process won’t take more than some minutes, let’s start

1. Choose a theme from “themeroller”

Just go to the jquery-ui page and pick a new theme from themeroller. You can take one of the ready themes, you can make adjustements to an existing one or even create your own theme.

The jquery ui themeroller

There are really many themes to choose from. After you are done click “download”. You’ll be transfered to another screen.

Download your new theme

Leave all components checked and click “download” again. You’ll get a complete copy of jquery ui to your computer. Unzip the file and open the folder.  The folder will look like this

The themeroller folder

We don’t need all of it’s contents, because jquery ui is already installed in osCommerce. The part we need is marked with orange in the above image. It’s named by the name of the theme we choose. Here we need to do one change, to rename the file jquery-ui-1.8.6.custom.css to jquery-ui-1.8.6.css

2. upload the theme to your server

Use your favorite FTP program to upload the folder “ui-darkness” (the folder name depends on the theme you downloaded from themeroller) to following location

[catalog]/ext/jquery/ui/

3. activate the new theme

Last step is to “tell” to our store to use the new theme. To do this we need to go to file [catalog]/includes/template_top.php and change the path to the theme. This path is set in following line

<link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.6.css" />

This we change to

<link rel="stylesheet" type="text/css" href="ext/jquery/ui/ui-darkness/jquery-ui-1.8.6.css" />

Only thing we do is, to change the path to go to folder “ui-darkness” instead of “redmond” which is the default theme. You need ofcourse to set the right name, according to the theme you’re going to use

Lets see how our store looks now

the new ui-darkness theme

Yes, we changed the background too, that’s also very easy to do. You can read about here: How to change the background of my store.

Update on 6.1.2011: You will notice when downloading a new theme from themeroller, that the file name is not jquery-ui-1.8.6.custom.css butjquery-ui-1.8.7.custom.css. This is because jQuery Ui updated their version to 1.8.7 Do not just rename the fileback to 1.8.6. Read here how to upgrade your jquery UI version easily

In case you use mini template system, things are more easy, since you don’t need to modify any file. Mini template system users, please read here about how to install a new jQuery UI theme to your template

In case you are interested: Here is how I created a complete osCommerce template from scratch

Enjoy

Click +1 to recommend this to your friends when they search.

multimixer

follow multimixer on Twitter

Follow me on twitter. I'm not tweeting all day long and guaranteed no spam and no advertising.

If you like what you read and if you think it will help you in your online business, then please consider a donation.

There is no obligation to do so and all information provided here is free to use.

It will however help to keep this blog alive, free of advertising and full of content.

  • Berkedam 02/12/2010 at 16:04

    Thanks George, nice instructions

    • multimixer 02/12/2010 at 18:38

      You’re welcome. Don’t hesitate to ask (per mail or per comment) if there are any issues with the process

      LG mm

  • multimixer 13/12/2010 at 11:04

    A osCommerce user, Rob, asked me yesterday by mail

    “When I view my product listings, the background color of each listing alternates between black and white. However, the text is always white. Therefore I can’t see the product name, quantity, price, etc for every other product.”

    I decided to answer here, because maybe others will have the same problem in the future

    The text is white, because the ui theme you choose is a dark one. This is set “automatically” by the ui theme creator.

    The problem starts because the “white” line on product listings is “hardcoded” in the stylesheet.css file, so it’s always white, it doesn’t adjust to the ui theme

    Going to the stylesheet.css, line 90, we see following line

    .productListTable tr.alt td {
    background-color: #ecf6fc;
    }

    In real it’s not white, just a very light color, that stays always same, doesn’t matter the ui theme.

    What to do now? One option is to delete the color definition, but then we’ll not have a visual row alternation (light and dark color)

    What I do, is to set a semi transparent color, that will do the alternation job, but also will let the ui color go through

    So I change this line to

    .productListTable tr.alt td{
    background:rgba(255, 255, 255, 0.1);
    }

    You can change the values to fit your color theme.

    Hope it helps

  • Saad 27/01/2011 at 17:34

    thanks alot..but what if i want to change the default(white) background color…is there any way to change it? :(

  • sara 27/01/2011 at 23:19

    Thanks! At the moment I am upgrading a RC2a store to v2.3 So the above might become useful. I have previously made some major improvements of the RC2a before upgrading (go and have a look).
    At the moment I am hesitant to install (AC) (NEW) Introduce Template Layout and Modular Header Tags. Mostly because of the lack of documentation… I’d like to know what the benefit would be…

    What’s your opinion?

    • multimixer 31/01/2011 at 11:29

      Hi Sara.

      Looking at your store, I don’t see anything that could not be done in the latest version of osCommerce easily and without any troubles.

      In any case, a new skin will not cause any issues to anything that you have installed

    • Serg 07/04/2020 at 13:18

      The following comment is spam:

      Hi, Sara. have you already checked another oscomerce template system made by solomono? they already have 6 templates and I think a lot of colors could be changed directly in admin panel without coding. what they say comparing to oscommerce phoenix: https://solomono.net/compare-solomono-oscommerce-vs-phoenix-oscommerce-ce-a-415.html
      have a look

      Beware and avoid any business that depend on spam for promotion. You can imagine how desperate they are to sell what they call a “template” if they need to post spam replying to 10 year old comments. Avoid in any case. There are many, more than capable designers available, do your self a favour and stay away from this type of crap

  • JazzzMAn 05/02/2011 at 19:26

    Hi
    i’m working in oscommerce v2.3.1 and i followed every step in changing the theme, but when i change the body color in the css file from white to black the links in the body section and the name of the store in the footer area dont change color? do i have to change these colors when customizing the theme (themeroller)?ou do i change them elsewhere?

    • JazzzMAn 05/02/2011 at 19:35

      Sorry to bug you…i got it!
      Just change

      A {
      color: #(color);
      text-decoration: none;
      }

      and it will change to the color you want!
      Congratulations on the site i’ts awsome

      • multimixer 06/02/2011 at 09:27

        This would change the color of the links for the complete store. Since you target just the links for the footer, it’s better to say in your stylesheet.css file:

        .footer a {
        color: #f00;
        }

  • JazzzMAn 06/02/2011 at 11:48

    Thanks that worked perfectly!

  • Danny 23/02/2011 at 00:38

    Ok I get this, but what if I go to like template monster or some other place and download an oscommerce template. How do you implement those into your site?

    • multimixer 24/02/2011 at 09:05

      Hi Danny

      Not all templates are the same.

      They differ alot, not only in design, but also in the quality of coding, the grade they affect the core osCommerce files etc. So, there are some templates that request changes just on some basic files, some others come equal to a complete new osCommerce installation.

      I would avoid personally the second case, not only that it is not necessary to replace all files, it also makes it more difficult to add contributions or to get support. In short: the more core files are changed, the more you depend exclusively on the template provider

      Templates differ also n the grade of jQuery UI theme integration. While the default osCommerce use this feature, some templates strip it out to some grade, some others totally. In this case you will not be able to change the theme in the above way but you will need to do any changes your self, to the .css file(s) and also maybe to the core files. In case the template is image based, you will need also some photoshop skills.

      A last note: Template monster templates are considered as poor or bad coded, at least by the majority of the osCommerce forum members

  • Chris 29/03/2011 at 21:37

    I installed one of the templates and now my admin screen is messed up. There isnt any more boxes and I cant read the wording because it is off the left of the screen. Do you have an idea what i need to do to fix this?

    • multimixer 30/03/2011 at 06:00

      Well, Chris, to be exact, what you installed is a new theme and not a template.
      However, if you followed the instructions of this post, you should not have any problems in your admin, since the admin is not involved at all.

      So, I can only guess
      (1) You mixed up the files catalog/includes/template_top.php and catalog/admin/includes/template_top.php
      (2) you did some other changes at the same time, or you had the problem already, before changing the theme and didn’t notice, so it is caused by something else.

      There is just one solution: Go the route backwards by restoring all files you changed using your backup files, then try one more time. It’s a very easy and straight forward process

      • Chris 30/03/2011 at 15:41

        Ok, I started over and tried again but it seems to happen when I change to the 1.8.11 from the 1.8.6 and when i also change the 1.4 to the 1.5. I know this is what was included with the download. Is their something I can do to fix this? Thanks fro all your help.

    • multimixer 30/03/2011 at 16:17

      You need also to upgrade your jQuery UI version http://multimixer.gr/06/01/2011/how-to-upgrade-your-jquery-ui-version-in-oscommerce/

  • Chris 30/03/2011 at 22:08

    I updated all the files as instructed and I still am having the same trouble. Forgive me for my lack of experience in this but I have tried everything I know to do. Can you think of something I might not be linking properly.

    • multimixer 31/03/2011 at 08:14

      Try to update also file catalog/admin/includes/template_top.php to link to the new jQuery version and new ui version you have now. Relevant lines are 21 – 23

  • Chris 31/03/2011 at 21:15

    I retried it and everything worked this time. only thing different is I did not change to the new i18n. Is this going to cause a problem? I cant thank you enough for the help. You have kept me from pulling my hair out. I also did not remove the old js which might have been why the admin wasnt working before?

    • multimixer 01/04/2011 at 07:06

      Chris, I don’t know what .js file you’ve been removing before. However, glad that it works, enjoy your new look :)

  • Chris Y. 15/04/2011 at 01:30

    Thank you for the clear and concise instructions. As a complete newcomer to osCommerce I was fairly concerned about the difficulty level in pulling off a complete re-design of the stock theme.

    The only obstacle I encountered was that the new version number created was neither 1.8.6 or 1.8.7.

    Other than that small difference, the instructions were identical to my experience.
    Thanks again!

    • multimixer 17/04/2011 at 09:29

      I guess that the jQuery UI team is doing upgrades all the time. I’m sorry that I can’t do the same with this blogpost. However, the version number of the last version is indifferent, the process remain same.

  • Joexxi 23/06/2011 at 23:22

    Thank you for the clear instructions.

  • Jazz 10/01/2012 at 07:35

    very useful, thanks a lot

  • dermot 30/01/2012 at 22:32

    hello George (multimixer)
    just playing about with the mini template software and must say that it is very easy to use and that i am well pleased with it.

    i have spent hours and hours changing code on oscommerce sites and tried all types of templates free and paid for, but i like yours the best.(so far anyway)

    one question the links at the bottom of index page footer how do i remove these or change them.
    thks dmc

  • multimixer 31/01/2012 at 15:39

    Hi Dermot

    Great that you like mini template system. There is always space for improvements and ways to make things better, in case you have any ideas or suggestions, please share them.

    To your question about the footer I’ll reply by mail

  • gwen 10/06/2012 at 01:54

    i am using the new version 2.3, i want to remove or replace the reveiw button with a trans gif, but the button folder shows the old stock images, is there a simple way to solve this? as ive have a deadline to finish this site
    kindest regards
    gwen

    • multimixer 10/06/2012 at 08:18

      @gwen,

      You can replace any existing button image with anything you like.

      To get it into the page, you need to replace the tep_draw_button function with tep_image_button for this particular button in the file you want, I guess it is product_info.php

      As a sidenote, and since you have a deadline to finish, I would say hat there are other issues to worry about. Take care of the overal design first, that is still stock osCommerce, and leave the details, like the reviews button, for the end

  • luisribas1 09/04/2013 at 08:09

    Spam deleted

    • multimixer 09/04/2013 at 08:53

      @luisribas1

      Do not spam my blog and find other ways to promote your stuff

  • Geoff 10/03/2014 at 22:09

    Working on a test site for wife who wants to set up a small business. I am a coder but not a web guy so learning as I go. Anyway I followed the instructions above with the wife on jquery-ui. We applied it to the site but 2 parts of text still show as white. First the breadcrumbs (Top » Catalog) is in white. Second if you go to a listing of several products the “Buy Now” is in white (http://overdunne.ca/catalog/index.php?cPath=3_10). Using the most recent version 2.3.3.4 for the site.

    I was also trying to figure out why the buttons are different setup. Ie if you look at the link below the “Add To Cart” is solid black text, but other buttons on the page are lighter orange and not solid black text, like some kind of shading or something is done to them.

    http://overdunne.ca/catalog/product_info.php?products_id=1

    I will continue to look as I have time, but figured might as well ask a expert :)

    Thanks

  • Melissa 01/04/2014 at 17:56

    HELP? What am I doing wrong? I have been trying for hours now to upload the Jquery themeroller files and I cannot for the lif of my find the catalog folder. Can any help me before I go insane?

    • multimixer 01/04/2014 at 18:40

      It looks like you have your store in the “root” and not in any subfolder.

      In this case you can skip /catalog/ from any path given and follow the path from there on