Blog Archives

Nice and easy modification for a beer

A person searching for a way to ensure unique data came across this post which I made for a client a couple of years ago. Within 20 minutes, that new client had paypal'd me a couple of beers, I had

Posted in 2.3.3, Code Tips

Challenges on the osCommerce Forum

Quite often, in the osCommerce forum, I state my idea about something and am usually challenged by someone or other to show that what I have said can be done, can be done. I must admit that sometimes what I

Posted in Code Tips

Making a simple "similar products" module

By "similar products" module, I mean s similar products to the product you are already looking at. What do we need to show; 1. products name (linked to it's own product page). 2. products price These need to be shown

Posted in Code Tips

Add a Special Offer banner to product listings…

In this tutorial I am going to show you how to add a "special" banner into the product listing in the "new products for…" module. At the end of the tutorial it will look like this: As you can see,

Posted in Code Tips

How to show more categories of a linked product

In osCommerce, there is a mechanism by which a product can exist in multiple categories. It's the "copy to" functionality on the product adding/editing page in admin. Obviously, the "copied" product needs to be LINKED (not DUPLICATED) as a linked

Posted in Code Tips

Update all your prices in one go to 1 cent under the dollar

A customer of mine wanted to update all his prices to 1 cent under the dollar, eg go from 15.80 to 15.99. With 1000s of products that's an utter waste of time, so here is one line of SQL to

Posted in Code Tips

Add Math Protection to contact_us.php

This morning I was contacted to see about adding a question to osCommerce just like I have on this blog – where I ask a math question…I was going to suggest using Google recaptcha service, but the client did not

Posted in 2.3.1, Code Tips

JavaScript Off? Check your site…

Some people, myself included, browse websites with .js turned off. If I need to access a sites javascript features I can easily make an exception on a site by site basis. What this means is that 90% of sites I

Posted in 2.3.1, Code Tips

Open a different box by default in Admin

Really short post as this is so simple. When you open the osCommerce admin, the "configuration" box is open by default. This is because it is at the top of the boxes list. If you place a different box on

Posted in 2.3.1, Code Tips

Database interrogation using PHPMyAdmin

Although I have not logged into the osC forum for a few weeks, I have been directed to a number of threads where users are wanting help. I'll log in the forum sometime soon. In the meantime, someone for whom

Posted in Code Tips