Welcome, Please login or register.
Drum Solo Artist Logo
*
*

phpFox osCommerce integration plugin updates

This page is here to list an important updates and updater files to the PhpFox osCommerce Integration along with some tips and tricks. The complete Integration can be obtained from HERE.

Version 1.2

Version 1.2 includes all the needed updates for phpFox 1.6 compatibility and an improved installation routine.

osCommerce Manual

For those who need the osCommerce manual you can get it HERE

PHP 5 compatibility

On some servers with PHP 5, osCommerce 2.2 can result in multiple errors, and pages not loading correctly after the installation, in that case, the first thing to do is to disable the “search friendly urls” from your Store Admin panel. - That should fix most of the incompatibility problems.

Admin Panel -> Customers screen

If you are also experiencing errors like:


  • Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/xxx/public_html/store/admin/customers.php on line 735
  • Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/xxx/public_html/store/admin/customers.php on line 737
  • Warning: reset() [function.reset]: Passed variable is not an array or object in /home/xxx/public_html/store/admin/includes/classes/object_info.php on line 17
  • Warning: Variable passed to each() is not an array or object in /home/xxx/public_html/store/admin/includes/classes/object_info.php on line 18

Download this patch and replace corresponding files in your store installation, with the updated files .

Note that although the fix is 100% stable, it is “temporary” and in order to fix the problem entirely a lot of files have to be changed (apparently oscommerce 2.2 is not 100% php5 friendly), the upcoming 3.0 Oscommerce will (according to oscommerce dev. team.) fix the php5 compatibility.

Alternative way to secure your admin panel

I have one client reported that after securing the admin panel via “.htaccess” he can no longer access the store admin panel (site redirects to “File Not Found” page), so I checked it out, and it appears that depending on your server setup and the folder structure you may get conflicts between the htaccess file in your main directory - (the one with the ModRewrire that came with phpFox) and the htaccess file in your store/admin/ directory

So I worked out a solution that will secure your admin panel via php sessions and without the use of htaccess file.

Only if you have problems securing your store admin panel via htaccess file, download and install this add-on

(it is not needed if you are fine with securing your store admin panel via htaccess):

Alternative way to secure your admin panel

Version 1.1.1

Ok here is another small update which makes version 1.1.1 of the integration.

Issue: Some of your customers will not setup their default address by ignoring the warning, and will process an order without it...

The order will come out fine, but from the admin panel some of the customer details like first name and email will be missing (note only missing from the admin panel - as far as I know) This fix will make it so that All Customers MUST set their Default Address in order to checkout an order.

Very light fix, only one file need to be changed, the updater is here:

Version 1.1

Found and corrected a bug that was cased by the way phpFox deals with its database tables:

Issue: When users register a new account on a phpFox based site, in some situations the user-id would not match in tables “user” and “user_info” for some user accounts due to an error in MySql (according to phpFox support that shouldn’t cause any problems within a phpFox based site) but that will present all kind of problems with Store user accounts as the osCommerce uses the user-id extensively in its operation and assumes that user-id will match in both the “user” and the “user_info” tables for the same user account. My solution was to completely eliminate the use of table “user_info” in osCommerce by moving all the users info stored in the “user_info” table directly to the table “user” - that will insure that the above problem will never happen again on any server/user account/site out there.

I consider the update to be critical for any store owner, and highly recommend updating your store.

Installing the update
  1. Backup your site and its database
  1. Download the attachment and follow the update instructions.

(The distribution includes only the files needed for the update, and not the complete package)

1.1updater


Version 1.0

Initial release.


phpfox/oscommerce.txt · Last modified: 2008/12/01 03:31 by PASHA
Search Drum Wiki



 

Featured Member
Featured Member
*
Pasha
Drum Solo Artist
Made by Drummers for Drummers [ Site Directory ] [ XML URL List ] --© 2007-- www.drumsoloartist.com