Archives for October 2005

Zen Cart vs osCommerce

Obviously I should have looked at SourceForge statistics before deciding whichsoftware to use instead of basing my decision exclusively on Googlepage count so here we go:
Zen Cart

Development Status: 5 – Production/Stable
Developers: 5
Activity Percentile (last week): 99.85
Latest Release: August 21, 2005
Google Hits: 2,110,000

osCommerce

Development Status: 4 – Beta
Developers: 3
Activity Percentile (last week): 92.80
Latest Release: July 12, 2003
Google [...]

oscommerce SQL errors on Fedora Core 4

Several parts of admin section shouldn’t not work in oscommerce-2.2ms2 installation on Fedora Core 4 due to some issues with MySQL 4.1 In order to fix them the following lines in admin/includes/classes/split_page_results.php:
$offset = ($max_rows_per_page * ($current_page_number – 1));$sql_query .= ” limit ” . $offset . “, ” . $max_rows_per_page;
should be changed to:
$offset = ($max_rows_per_page [...]

Blank admin screen in oscommerce on Fedora Core 4

This issue is a bug with oscommerce-2.2ms2 and PHP5. To fix it, replace
$this = null;
with
unset($this);
in catalog/admin/includes/classes/upload.php

oscommerce on Fedora Core 4

For those having problem with Step 2 installing oscommerce-2.2ms2 on Fedora Core 4 here is the solution:

Edit /etc/httpd/conf/httpd.conf replacing:
<Directory “/var/www/html”>

AllowOverride None

</Directory>
with
<Directory “/var/www/html”>

AllowOverride Options

</Directory>

Create .htaccess file in /var/www/html with the following contents:
php_flag register_globals on
php_flag register_long_arrays on