Hello, I am having trouble installing 2checkout payment module. Your help would be appreciated.
I am using Zen Cart 1.3.6.
I've copied the following files to the corresponding directories:
process_2checkout.php - (root folder, the rest of the folder below sit within the cart folder)
includes/modules/payment/as2checkout.php
includes/languages/english/modules/payment/as2checkout.php
includes/extra_configures/as2checkout_defines.php
but when I tried to run SQL patch from Zen Cart admin, it gave me this error ;
"ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'collate latin1_general_ci NOT NULL default '' ,
I found a slightly different SQL patch (below) from this forum, and run it again, and it seems to have worked without any errors;
CREATE TABLE 2checkout (
2co_id int(11) NOT NULL auto_increment,
start_time datetime NOT NULL default '0000-00-00 00:00:00',
finish_time datetime NOT NULL default '0000-00-00 00:00:00',
status varchar(50) NOT NULL default '',
return_md5 text NOT NULL,
amount float NOT NULL default '0',
2co_order_id int(11) NOT NULL default '0',
session_id varchar(50) NOT NULL default '',
PRIMARY KEY (2co_id)
) ENGINE=MyISAM;
But now the problem is that when I go to the Payment Module menu, it gives me this message,
Cannot redeclare class as2checkout in /homepages/25/d200017079/htdocs/includes/modules/payment/as2checkout.php on line 23
I searched this forum and it seems this error message is for Zen Cart install prior to v1.3 but I am using 1.3.6.
Please help!