2009/09/10

Preserve Image Ratio in osCommerce

Filed under: osCommerce Coding — Tags: , — eCartz @ 00:31  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

By default, if you configure osCommerce to use a particular image size in admin >> Configuration >> Images, it will rescale the image to fit that size.  If the image had a different aspect ratio, it will then appear smushed or distorted.  It’s possible to set up osCommerce such that this does not happen.  You can do so by setting admin >> Configuration >> Images >> Calculate Image Size to true and then change the tep_image function in includes/functions/html_output.php (more…)

2009/09/02

Product Listing on Front Page

Filed under: osCommerce Coding — Tags: , , , — eCartz @ 14:41  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

I released a new osCommerce contribution yesterday:  Product Listing on Front Page
(more…)

2009/08/31

Check Referrer Sessions Option

Filed under: osCommerce Coding,osCommerce Community — Tags: , , , — eCartz @ 20:16  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

A situation that was mentioned on the osCommerce forums recently started me thinking.  Currently, if someone has cookies disabled, then the osCsid (the osCommerce session ID) appears in the URL.  If such a person logs in and then emails a link to someone else, the osCsid will be included in that URL (unless they remove [...]

2009/08/27

DHTML State Selection

Filed under: osCommerce Coding — Tags: , , — eCartz @ 15:15  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

In response to a request on the osCommerce forums, I wrote up a method for changing automatically among drop downs for the various zones and the text input.  The request was made to get it bundled into a contribution, and since there was unfinished work, I went ahead and did it.  The DHTML State Selection [...]

2009/08/21

osCommerce Image Uploads

Filed under: osCommerce Coding — Tags: , , , — eCartz @ 16:16  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

Recently, someone posted in the osCommerce forums looking for a way to upload product images into folders.  I found a post that I made six years ago:  Setting upload image destination in categories.php, Admin change.  Surprisingly, the post was remarkably accurate with the more modern osCommerce RC2a, even the line numbers were only a couple [...]

2009/08/19

Zip after State in Create Account

Filed under: osCommerce Coding — Tags: , , , — eCartz @ 22:56  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

For those in the UK, Gary Burton’s osCommerce for the UK provides instructions for how to move the post code after county.  Since the position of the zip code is just as inappropriate in the US as in the UK, I’m posting the equivalent instructions here.  First, make a backup copy of create_account.php.  Since you [...]

Get Free osCommerce Tutorials at osCBooks.com

Filed under: osCommerce — Tags: , , — eCartz @ 20:25  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

For those who haven’t already clicked the link at the left for osC Books, you might want to check it out.  The osC Books site currently offers free downloads for tutorials on installing osCommerce, working with products & categories, and adding informational pages.  All three tutorials are free to download on the osC Books site. [...]

2009/08/17

Trapped by the IP Trap

Filed under: osCommerce,osCommerce Coding — Tags: , , , — eCartz @ 22:39  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

I worked on a site recently where the client’s payment processing was not working.  The order was getting reserved in the database, but no details were appearing.  However, payment completed on the processor’s side. This particular processor operated like PayPal IPN.  First, you add an order to the database.  Then redirect to the processor to [...]

2009/08/13

osCommerce and setlocale

Filed under: osCommerce Coding — Tags: , — eCartz @ 20:24  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

If you look in the osCommerce language files, there is often a line like @setlocale(LC_TIME, ‘en_US.ISO_8859-1′); What this does, when it works, is it sets the PHP time handling functions to use the specified locale’s format.  For many installs, this is unnecessary, as the server default will be correct.  Not infrequently, the locale will be [...]

2009/08/11

The eCartz Biz is now on Kindle

Filed under: eCartz,osCommerce — Tags: , , , — eCartz @ 12:18  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

Now, if you want to read how to Make osCommerce Work for You from The eCartz Biz on your Amazon Kindle, you can. Have an idea about what you’d like to see discussed on The eCartz Biz? Post it here. Also post what kind of Kindle you have if you have one.  I’m curious as [...]

Older Posts »

Powered by WordPress