This module is being sent to the contributions section today. This is the support thread for any problems regarding to the module.
The site wiki has been updated with the install file.
Absolute
Printable View
This module is being sent to the contributions section today. This is the support thread for any problems regarding to the module.
The site wiki has been updated with the install file.
Absolute
Download available from: http://www.zen-cart.com/index.php?ma...roducts_id=180
Absolute
BUG FIX RELEASED
A bug has been detected when using FireFox. The problem is with the redirect URL. This has now been found, and updated, with thanks to godin5150 for finding the issue.
The updated files have just been posted tp the contribs section, but in the meantime, here is the fix:
+ Open process_2checkout.php
+ Goto Line 46, where you will find
Insert a new line before the ?>, and paste the following line of code:Code:?>
<body>
Many thanks, and if anyone should find anything further, please let me know.Code:$redirect_url = str_replace('&', '&', $redirect_url);
Absolute
I read the reade file. it mentions that in order for products to be dispayed on the 2co website, we need to upload csv of our products. we will need to do this each time we change our cataog?
Unfortunately, with 2CO, yes you do. There is no way of sending the products with each transaction. 2CO insist that they have an up-to-date list of your products, with a short description and a price.
If 2CO alter this procedure, then we'll keep an eye out, and release an updated version.
Absolute
Another little bug has just been reported and solved.
Bug: 2CheckOut refuses orders over 999.99
Solution:
Please edit the following code:
includes/modules/payment/as2checkout.php
Line 160
Replace :withCode:zen_draw_hidden_field('x_amount', number_format($cOrderTotal, 2)) .
This update has just been submitted to the contributions section.Code:zen_draw_hidden_field('x_amount', number_format($cOrderTotal, 2, '.', '')) .
Absolute
what does happen when the list is not kept uptodate and a customer buys something not on 2co's list?
I want to write my own contribution to enable checkout for zen cart and one more cart which doesnt have 2checkout
How can I start?
Is there any tutorial for that?
What are the thing which should be taken care of while writing a module for a payment gateway like 2checkout?
Thanks
There are various "how-tos" on the 2CO site. Unforunately, there aren't any definitive lists, so you have to read through the whole site and get the relevant information.
Have a look through my module, and you may get the rough idea. 2CO is not the easiest company to start with, as they're slightly unique!
Good luck
Absolute
Thanks Absolute, I am reading the contributionsQuote:
Originally Posted by Absolute
Will let you know in case I have any questions!
San
Hi there,
well i haven't buy the 2co account yet but i was thinking of using 2co as for my cart gateway. So, i have download the module from your place & i'm thinking of that i could of install the 2co module first instead of buying the account first since i haven done all my stock up to date. I was following the installation from the readme file until the 2nd part that it say + Run the database_update.sql file so i go into the mysql control centre to run it but unfortunately it came out :
"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 '',
`return_md5` t"
so i can't get to update the update_database.sql file. Is there anything i have done wrong or i need to do something on the setting or do i need to buy the gateway account first on the 2co only that i can make the 2co file? sorry that i'm still kind of a new user of the zen cart but i do study around the forum to do it my self in not that i really can't solve the problem i will try to not disturbing anyone.
Thanks in advance.
You could edit the database_update.sql file with a text editor, and remove this part:... and then retry running it.Code:collate latin1_general_ci
Some more restrictive database setups don't like you setting a collation method at the per-table level.
DrByte thanks for your advice but is not working. It still giving me the :Quote:
Originally Posted by DrByte
"[e-market] 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 '',
`return_md5` t"
is there anything wrong with my SQL? since it mention about my SQL Version will it anything do with the SQL? Well i'm using Version MySql 4.3.11. Or do i have to follow the update_database.sql to update manually?
DrByte,
Thank You for your advice that i have done it with your advice. This is what i have done to create the data base :
Original Sql file :
After Deleting some command:Code: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) collate latin1_general_ci NOT NULL default '',
`return_md5` text collate latin1_general_ci NOT NULL,
`amount` float NOT NULL default '0',
`2co_order_id` int(11) NOT NULL default '0',
`session_id` varchar(50) collate latin1_general_ci NOT NULL default '',
PRIMARY KEY (`2co_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
i'm not sure if there will be any problem by deleting off all of the collate. I was thinking if there is anyone who having the same problem as me i think this could help abit. Please advice will there be any problem with the SQL file i change. Thank You.Code: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;
The edit to the SQL you made will be fine. My version of MySQL is the latest version, which includes the collate statements at the end. All you actually need for this is the CREATE TABLE xxxxxx ( ............. ) . The rest of the SQL after the ')' is not strictly necessary.
Good luck with the module. Looking forward to some feedback from those who are curently using it.
Absolute
ThankYou for your advise Absolute. :thumbsup: & Thanks for your time to making this modules i really appreciate it.
It states in 2checkout that the currency is in USD will the module accept an order in GBP and convert this to USD and so on. or must my site be all done in USD
The module can be setup to send the order in any currency, as long as 2CO accept it. You need to set the receiving currency through the 2CO checkout admin page to GBP, and then set your 2CO checkout module to GBP also. Then your orders will be sent as Pounds, rather than dollars. If you have dual currencies setup on your store, the module will convert any currency to GBP before sending, but can display the current price in the other currency on the 2CO checkout page.
Basically, you can choose which currency to receive, but this has to be the same on the 2CO admin page, and the module admin.
When your customer checks out, if you have more than 1 currency installed, then the currency your customer sees on the 2CO checkout page can stay the same as they used in your store, but the price sent to 2CO is always sent in the same currency, regardless of the shoppers preference.
Absolute
I have a stupid question. I downloaded the module but am uncertain as to where I should be uploading it to. Should I be putting in the modules folder? The readme file doesn't really say and this will be the first module that I am installing.
Thanks,
Bonnie
Never mind. I think I figured it out and I think it works. At least the demo works!
Thanks that makes life easy:thumbsup:
I can't get to the payment modules section in Admin...I am getting this:
Fatal error: Class as2checkout: Cannot inherit from undefined class base in /home/digiscr/public_html/store/includes/modules/payment/as2checkout.php on line 23
Any ideas?
Thanks!
Sounds like you're using a Zen Cart install prior to v1.3 but are attempting to use a module designed for v1.3.x
Finally I subscribed with 2checkout because this is the only solution I have, my country not accepted in PayPal and Card Service International.. what else can I do..?
Thanks for the 2checkout module for ZC 1.3.0.2 from absolute.. it works, but I faced problem... I put test order.. 2checkout didn't return me to my ZC chekout-success-page, it just stayed in 2CO thank-you-page... so I can't check any success orders from my ZC admin... and also my customer wont be able to see their success order from their account.
What was happened? Is that because I used 'test' only in the module's transaction mode?
or because I didn't put anything in the 2CO-Admin 'return url' ?
Please enlighten me further... thanks in advance.
You need to set the return URL in the 2CO admin page, as set in the install instructions. This also includes the type of return as well.
This should fix your problem, but let me know if you have any further problems.
Absolute
Absolute
Thank you very much for such a wonderful contribution : )
This was the one which was missing from Zencart which lowered it status from among other Shopping Carts. ( my view)
Wow - over 660 downloads! Its nice to see that you all find this module so useful.
I'd like to thank those few individuals who have recently sent me a contribution recently to thank me for my efforts with the creation of the module. Your names will be added to the supporters list for the next release.
Thanks again,
Absolute
thank you (developers) for developing and (and everyone here) for supporting this great cart!
Have a problem though:
installed as2checkout because my version of zencart had no 2checkout module pre-installed.
Things seemed to go ok, with the number of tables in the database going up to 94 after I did a "CREATE TABLE `2checkout` ( etc etc"
However, when I use the cart, I get up to step 3 of 3 and then get an error:
1146 Table 'scarls_zc1.zen_2checkout' doesn't exist
in:
[INSERT INTO zen_2checkout (start_time, status, amount, session_id) VALUES (now(), 'Requested', '25', '3282e8436e3de1c2c5bbcb7fe5f4106c')]
As far as I can make out it does exist. (2checkout is the very first table listed in myphpadmin on the left when myphpadmin opens)
I have done multiple searches on variations on the error message but could not find anythin relevant.
can anyone help, please?
Well, quick question for you: where did you run the create table sql? Did you directly run it through phpmyadmin, or through the zen SQL patches page in the admin?
The reason for this ask, is that if you run it in phpmyadmin, you will create a table called 2checkout. If you do the same through the admin, it automatically adds your default prefix, which in your case would be 'zen_'.
A fix for you is to simply rename the 2checkout table to zen_2checkout, and you're there.
Absolute
I get this errormessage when I go to admin modules payment
Fatal error: Class as2checkout: Cannot inherit from undefined class base in /home/uwantit/public_html/shop/includes/modules/payment/as2checkout.php on line 23
This happened after I installed the 2checkout module...
Help anyone
Uwantit,
Are you running Zen Cart v1.2.x, but trying to use a v1.3.x module?
Where do I check my version?
Admin->Tools->Server Info
I am running version 1.2.7
Have any of you installed 2co for this version??
2co has advised that you can modify the authorize.net php file and I've done that. CC number and order total is not brought across. Any ideas..
cheers
The files are fairly easy to alter to ensure 1.2.7 compatible.
Line 23 replace:
class as2checkout extends base {
with
class as2checkout {
That should be it.
Let me know how you get on.
Absolute
Worked like a dream.
Easy when you know what to do :)
thanks a lot for your help
Thanks so much for your reply.Quote:
Originally Posted by Absolute
I just used cpanel (fantastico, I believe) to install the script. I guess that results in the zen_ being added. In any case, I removed the zen_ and it works!
thanks again!
Does it support multiple currency?
it is my case
the default currency in my cart and in 2co admin is in USD
while my cart support GBP also
For a buyer checkout a product in value GBP13.4(Default USD is $24.9), the 2CO shown up in GBP 25.67
I also do a test in Japanese Yen, when I checkout, the 2CO
show up in around 25 Yen.
It seem to me all currency rates is in 1:1
It seems that this modulus dont support multi currencies, am I correct?
If it does support multiple currency, then what do I do wrong?
THank you
I've been able to configure my cart properly and have the FedEx module up and running, great work Merlin, but I can't get this 2CO module running properly.
I've uploaded the four files into the proper directories, have imported the SQL, but I receive this error:
Fatal error: Cannot redeclare class as2checkout in /home/username/public_html/cart/includes/modules/payment/as2checkout.php on line 318
Has anyone received this before? Did I miss something simple? I'm at a loss.
Thanks for any help.
IF you are receiving an error, saying cannot redeclare class, then it seems that the class is being called twice. Which 4 files did you install? Have you left a backup of one of them in the payment modules directory?
Leaving backups in this folder will break the code, as it iterates through each file, and create a class form them.
Absolute
Thanks for the help,
I've copied the following files to the corresponding directories:
process_2checkout.php - (root or /cart/ 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
That all looks to be correct. When does the redeclare class error appear? Which other payment modules do oyu have installed in payment directory?
Absolute
Currently in the cart/includes/modules/payment directory I have:
a paypal folder
as2checkout.php
authorizenet.php
authorize_aim.php
cc.php
cod.php
freecharger.php
moneyorder.php
paypal.php
I only want to use 2Checkout, so I imagine I could delete most of thes files, unless the 2CO module relies on any of them.
In the cart/includes/languages/english/modules/payment directory, I have the exact same set of files.
The error appears in the administration panel when I select Modules > Payment
Under the Pyment Modules header, it displays the error message:
Fatal error: Cannot redeclare class as2checkout in /home/headrack/public_html/cart/includes/modules/payment/as2checkout.php on line 318
Can you go to the file where the issue is arising - includes/modules/payment/as2checkout.php.
Then copy and paste line 315-> 320. Line 318 should only be a bracket, with the end of the file on line 319.
If this isn't the case, you may have a corrupt download. It may be worth removing these files, downloading a fresh copy and installing it again, jsut in case the download is corrupt.
Good luck
Absolute
is there anyone who cud help me im using zencart 1.3.5 and i uploaded the 2CO payment but when im going to the checkout process and link to 2CO there is a parameter error? the products is not showing anything im new in this code is ther anyone who could help me?:cry:
I still use 1.3.0.1. But today I could not see an order in the admin. The sale was processed by 2CO and i got notification from 2CO in my email. But in the admin I don't see the order, what was ordered is not clear.
I wonder if this new 2CO mod for 1.3.0.2 will help or if others are having the same problem.
Little more info: hoping that the order details might be still in my database, I checked : zen_2checkout, zen_orders, zen_orders_products.
But I don't see any trace of the customer or his order.
When we contacted 2CO, all the info was retrieved. they gave this answer:
"This sale may have been closed before it was completed so this is why
your cart does not have the sale recorded. If you view the sale detail in
the 2CheckOut system you will see a button on the right titled "Unknown
Parameters". If you click this button you will see a section with
product creation parameters. This is what was purchased for this order. I
have included it below for reference.
Parameter: c_description_1 Value: wool blanket-001
Parameter: c_price_1 Value: blah blah
Parameter: id_type Value: blah
Parameter: c_prod_1 Value: blah
Parameter: c_name_1 Value: blah ........" (quantity, model, unit price, etc)
Is it fixed in the latest 2CO mod? I use 2CO mod downloaded in August.
It might those who lost order report.
:no:hi there,
Im a new zenner i've already installed the 2checkout module also its sql patch but the proble is everytime i choose the 2co payment it always give me the "PARAMETER ERROR" is there anyone who could help me about this. This is my company shopping website www.mysarisarishop.com that im been doin this is not that much good the design. ppls help me here...........:down:
Thanks.
Absolute, thank you for your great work!
Everything's working right, except one minor thing.:huh:
After I clicked "check out" and confirmed the order, I was redirected to 2checkout.com to pay, however, if I changed my mind, I wanna cancel the deal or go back to shop more, I couldn't find a button to go back to the previous site, only a "save and check out" button, is this my problem or what? thank you!
P.S Sorry about my english, not english speaker.
I have the same problem as rayken.
1) I ran the sql update through ZenCart and the table is correctly named.
2) I have a test product loaded on my site and in 2CO
3) I have the passback url set to http://www.mysite.com/catalog/process_2checkout.php
4) I have redownloaded the module and reinstalled it twice in case the files were corrupted.
Any help available?
RW
At the risk of openning the flood gates, and being bombarded with people requesting help, I need to make you all aware of two issues with this module's development.
Firstly, the development of the original module was partially by a Zen-Cart user. The module is working fully on their site, and it was released to the cumminty as a gester of good will. The original user does not wish to fund any further development.
Secondly, and more importantly, 2CO do not offer any development environments. This means that if you wish to develop anything to work with their systems, you need to sign up and pay for a live account. Due to the cost, and unhelpful attitude we received from 2CO, we terminated our account, once the initial module was created.
Currently, due simply to a lack of a test account, we are unable to offer continued support for this module.
Should 2CO review their development procedures, and offer some kind of test facility, we will again review this module. We developed this module to enable a good number of Zen users to utilise, and pay for the 2CO system. Despite this, 2CO are not willing to support us.
Absolute
Understood. Sadly, I am not a programmer and cannot afford to hire one, so I will have to ditch ZenCart in favor of Oscommerce since that 2checkout payment module works. I really wanted to get away from all that bloated code, though.
Hello Guys,
Absolute first let me thank you for your contrib and your generous attitude when helping others.... I really appreciate this.
I know well how "special" are 2CO and how not so business oriented is their business attitude. However, it has some good points. I know that the support is discontinued but just in case someone met my pb before, I will appreciate any help here.
(A classical pb I knot...) My "direct returns" does not work (when "Direct Return" is set to YES). The impact being that I don't capture the order in my zen db. I tried the "Direct Return" set to "No' but I get daily 3 to 4 clients that don't click on the "Please click here..." button after the payment form. So lot of complaints, refunds because of this.
I had contacted 2 Checkout regarding this and they advise me first to test a basic return url (such as a basic html page) which I did and it worked. However when I try with process_2checkout.php return page, it does not. I did try to see what's wrong with the process_2checkout.php so I commented all the lines and I found out that when the "require ('/includes/application_top.php') is there, 2CO does not apprantly like it and so doesn not allow automatic Direct Return. HANKS FOR ANY HELP. IT'S SO FRUSTRATING.... I am considering using Worldpay if this thing does not work in the next few days...
I am enclosing here in an email I got from 2checkout so that maybe it can help others solve this pb or other problems as well.
=========================================
Thank you for contacting 2checkout.com. I'm very sorry for any trouble that you may be experiencing, and I'll be glad to assist you with this issue. I have tested a demo order on your site and I am able to reproduce the issues that you are describing. From looking at your account it does not appear that anything is set up incorrectly and I am unable to tell immediately why this has happened to your account.
Before I continue with this issue I think it is best if I describe the way that the direct return process works. When direct return is set to NO and a customer finishes a purchase they will be directed to the "Order Processed" page on 2Checkout.com. On this page they are provided with a "Finalize Order Now" button which will take them to your Approved or Pending URL. If you would like the 2Checkout.com to automatically redirect the customer back to your site then all you need to do is set this option to Yes instead. Keep in mind though that the procedure with direct return set to Yes is a little different then when set to No. What will happen is that 2Checkout.com will send a request for your return URL, which in turn will execute any scripts on your server, then 2Checkout.com saves the output of that page and hosts in the 2Checkout.com. After all of this is done the customer will be automatically redirect back the to saved output page on the 2Checkout.com servers. To the customer it will seem as though they have returned to your page as normal, although they will be unable to access your return URL.
Because of the way this is done if you are planning on using the direct return feature there are a few things to keep in mind. First keep in mind that if any script on your page automatically redirects to another page, the 2Checkout.com server will not be able to continue and instead sent the customer to that standard order processed page. Secondly, any links or images you have on that site must be set up using absolute paths, and not relative paths, otherwise it will not link correctly. Lastly if a SSL does not match or there are any error with the SSL connection then the customers will not be returned to your page.
The next step that will assist you here will be to test the direct return feature with just a normal HTML page with no scripts or anything special. If the direct return feature works then we know that it may have been just the page that you were using, if not then there is a larger issue at hand. You had mentioned that you were using a SSL on your site. As mentioned above if there are any errors or problems with your SSL or the SSL connection the direct return feature will not direct the person back to you page. I would suggest contacting the maintainer of your SSL to make sure that everything is in order. If still nothing proves to solve this issue please feel free to reply back and I'll be happy to continue assisting you with this issue.
I hope that I have been able to answer your questions fully and provide a detailed level of support, although if you feel I have missed anything do not be hesitate to reply to this ticket.
We appreciate your patience and understanding.
Hello all,
Quote:
I read the reade file. it mentions that in order for products to be dispayed on the 2co website, we need to upload csv of our products. we will need to do this each time we change our cataog?
Quote: Unfortunately, with 2CO, yes you do. There is no way of sending the products with each transaction. 2CO insist that they have an up-to-date list of your products, with a short description and a price.
If 2CO alter this procedure, then we'll keep an eye out, and release an updated version.
Well, I am not sure if my info may be out of date, but I got info from 2CO that...
Quote:
It is also important to note that if you are using a third party
> shopping cart, you are not required to create the product in your
> 2Checkout account.
Kruna
Can someone post some step-by-step instructions or upload an exemplar .csv file with the appropriately-named columns that are needed, and *where* to upload this file? I feel a bit dense here, but I would appreciate any insight.
Thanks!
--Melissa
Hello!!
I have a problem. when i use 2co. and the customers go to checkout they come to a site thats have an error like this:
Parameter Error Incorrect parameters were supplied, therefore this purchase cannot begin.
If you are attempting to purchase from a web site please contact the web site so that they can correct the error.
and what is the "secret word"? where cna i fint that?
You are better off using another Payment method as Zencart does not support 2Checkout and I dont think they will in the future.
If you dont have a choice except to use 2Checkout, then use another Shopping Cart such as CS-Cart or Cube Cart etc.
Hi all - still looking for someone to help me with some development and integration in various open source software packages. Unfortunately payment will only be done once the project is completed. Please contact [email protected]
Hi Guys and Gals, I am using a 2checkout.com account for my CC payments. They charge 5.5% of the total sale and a 45 cent transaction charge. The module works fine, but I have a question regarding their fees. Where can I incorporate this to be added onto the total cost of the customers purchase?
In other words I need the module to calculate the price for our customers including the fee to be incorporate in the final product cost shown at the checkout.
TIA for you help and suggestions.
Regards Malcolm
I think you can use a tax calculation for the 5.5%, and then just add on 45 cents to the price of each product.
Is it the ONLY payment method you use? Or do you want to charge extra for this particular payment method - that would be hard if not impossible, I think (off the top of my head).
hello im having trouble installing 2CO. For a start i install item in the directory, but it wont come up on the admin site???
please email if you can help me
ben AT troomstudio DOT com
Thanks
ben
Just any case anyone has seen this before I thought I'd toss this error out there.
On the return to the process_2checkout.php file I get "page not found"
The file is in the root directory and if I attempt to goto it directly in a browser address line I get DB erors which you would expect not coming back from 2checkout.
I've contacted 2co and everything is set right on their end or so it says but the return manual or automatic keeps giving me that error.
Any ideas would be great.
Thanks
Chris
www.wccomputers.com
Well I fixed mine however I don't know if it is the correct way or not.
In the includes\modules\payment\as2checkout.php find line 181 or do a search for Process_2checkout (there is only one) the line will look like this
zen_draw_hidden_field('x_receipt_link_url', HTTPS_SERVER . DIR_WS_CATALOG . 'process_2checkout.php');
take the "S" out of HTTPS_Server so it reads
zen_draw_hidden_field('x_receipt_link_url', HTTP_SERVER . DIR_WS_CATALOG . 'process_2checkout.php');
This solved both the issue of the blank page as well as the issue of MODULE_PAYMENT_2CHECKOUT_TEXT_ERROR_HASH_MESSAGE
What this line does is overwrite the settings that you have in 2CO, they call it an X-Return if you look in thier forums.
Hey,
the 2checkout mod was working great, but suddenly my orders are not getting back to admin, and the emails tell me I have 1) Cart 22 ordered, and the customer is getting the same info.
Any ideas?
Using 1.3.7
JP
I just set up2CheckOut and I'm having the same problem as birdoasis - customers aren't being taken back to the site, orders aren't being posted to the site, and the receipt email from 2CheckOut says "Product Description: Cart 12".
Any ideas?
Solution to my problem: in includes/modules/payment/as2checkout.php I had to change HTTPS_SERVER to HTTP_SERVER (around line 181), as we aren't using SSL for this site.
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!
Does anyone found the workable solution for the currency conversion bug at the 2CO module?
the default currency in my cart and in 2co admin is in USD
while my cart support other currencies such as GBP.
For a buyer checkout a product in value GBP13.14 (Default USD is $25.75 Total: ), the 2CO payment page shown up in USD 50.46
the zen cart conversion pass to 2CO for almost double than should be.
my paypal module is working fine, so this must be something to do with the code of this module
does anyone knows the solution to this bug ?
please help
thanks
Hi serigold,
how did you configure values of USD and GBP?
regards,
kruna
Hi Kruna;
Thanks for your reply.
So certainly there are some a bugs in the code of this module.
For those having the same currency conversion problem, to fix this one, we have commented in line 128( adding //) of /includes\modules/payment/as2checkout.php
and that's it, is working fine now , including enable currency conversion.
Hi,
After installing the 2checkout payment module and running the sql, I am having the following problems on my homepage:
Warning: Variable passed to each() is not an array or object in /home/dealbyet/public_html/includes/classes/db/mysql/query_factory.php on line 114
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 'EXPECTED_PRODUCTS_SORT limit MAX_DISPLAY_UPCOMING_PRODUCT' at line 6
in:
[select p.products_id, pd.products_name, products_date_available as date_expected from zen_products p, zen_products_description pd where to_days(products_date_available) > to_days(now()) and p.products_id = pd.products_id and pd.language_id = '1' order by EXPECTED_PRODUCTS_FIELD EXPECTED_PRODUCTS_SORT limit MAX_DISPLAY_UPCOMING_PRODUCTS]
I read some threads, dropped the previous 2checkout table and run the following sql script. However the problems persist.
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;
Did your hosting company recently upgrade you to PHP 5 ?
If so, then this will likely help: http://www.zen-cart.com/forum/showthread.php?t=67521
Hi DrByte,
Thanks for your response. No, my hosting company hasn't upgraded me to php5. The php version I have is 4.4.4. Any suggestion?
Then try this:
http://www.zen-cart.com/forum/showpo...357#post378357
Hi DrByte,
The problem I had previously seems to have disappeared. However, when I checkout using 2checkout, I get the following a Parameter Error. What did I do wrong?
Hi.
If you have only recently uploaded your products to 2Co then this is most likely the reason for the Parameter Error.
Your products need to be approved by 2Co before you are able to sell them, this takes a little time.
All you can do is sit it out I'm afraid.
Hi,
Thanks for your response. How do I uploaded my products to 2CO?
Log-in to the Sellers Area and click on "Set Up Products" [item 4]
Then, using the links on the right, you can either add products one-by-one, or if you have a lot of products you can prepare a spreadsheet [Easy if you use Easypopulate mod for this].
May take several goes to get the spreadsheet right but all of the information is there.
I would like to put an image next to the Text for 2CO on the Payment Information Page. Is there a way to do this?
JodiB
Hi,
Does anyone know what I should put for the Pending URL and Approved URL in the 2checkout module? Thanks in advance.
Hi,
I figured out what the Pending URL and Approved URL are. I had a chat with 2Checkout about my other problems (see below):
1. When I checkout from zencart using 2checkout as the payment method,
the total is incorrect as it does not include shipping cost and
Australian tax. Can these been included?
2. I received the following error message during checkout. What did I
do wrong?
"We're Sorry! This supplier cannot currently offer these products to
you based upon your current shipping location (Australia). If you still
wish to continue with your order please use the button below to go back
and select a different shipping location or remove the items from your
cart."
They answered the following:
1. When a shopping cart sends a customer to our site they send also send a total for that customer to pay. Because of the way this works it is possible for the shipping and tax to be added to the total, although this is something your shopping cart is going to have to do.
2. When using a third party shopping cart you should not be receiving the error during checkout.
They then mentioned that if I am using a third party cart then there is most likely no need for me to upload my products into my account. Most 2Checkout.com payment modules will send the product information to their site at the beginning of the purchase and then will save that product information in my account once the sale has been complete.
I am really confused. What should I do now to make 2Checkout to work on my site when customers checkout using this payment method? Upload products or not upload products to their site? Please help. Thanks in advance.
2Checkout Tech Support said the following but I am still stuck. I don't know how to solve the problem. Can anyone please help. Thanks in advance.
"Your cart will need to support the Plug and Play cart parameters, 2CO’s custom cart parameters, or the 2CO-supported Authorize.net parameters. If using one of the latter two parameter sets, your cart will also need to support the New Cart Purchase Parameters. We offer a Common Gateway Interface (CGI). This means your site will need to contain an HTML form or link with cgi parameters appended which passes the correct parameters (and your customer) to our site for checkout. Passing in the Proper Parameters will result in your customer going through the rest of our checkout process (such as entering their credit card information), and after verification, a successful sale."
On the 2checkout site. Take a look at the authorize.net parameters and use the authorize.net portal instead of the 2checkout module since 2checkout seems to change things which make the 2checkout module non computable.
I think it's more reliable than the 2checkout module.
Hi birdoasis,
Thanks for your response. I did take a look at the 2checkout site for the information about the authorize.net parameters at the following link.Quote:
Take a look at the authorize.net parameters and use the authorize.net portal instead of the 2checkout module
http://www.2checkout.com/community/?...eters#post-203
I am not familar with this stuff and don't understand them. How and where do I use the authorize.net portal? Can you please provide me with the detailed instructions? Thank you.
2checkout work fine with zencart. I am do business with them via zencart now.If you dont use SSl,please remove https
KIMSON
Hi Kimson,
That's good. Can you please provide me with the detailed instructions on how you get 2Checkout integrated with ZenCart? Thanks in advance.
I do not remmeber but it just have 1 issues with me : https and http ! Standard of this module is https and you need change to http if you do not use ssl.
You can search again in this thread!
Hi, I forgot to tell you that I am using SSL, should I still change https to http?
Upload products or not upload products to their site?
Is it works or not if I not uploaded products?
I just installed 2checkout payment mod and ran a couple test transactions. The tests worked fine, but the info contained in the email sent from 2checkout to the customer and myself doesn't look right. I have bought things from people via 2checkout who were using zen cart and my receipts never looked like these.
Below is what one looks like:
I left the billing info on down off since it looks correct. Product ID, Vendor Product ID and Product Description are either missing or wrong. Anyone have this working correctly with the latest version of Zen and the most current requirements of 2checkout, which is here ?Quote:
[*** DEMO ORDER ***
This order will not be processed. No items will be shipped and you will not be charged.
*** DEMO ORDER ***
2Checkout.com Order Number 3883680615
Contents of your purchase:
Cart ID : 2
Product Name : Cart Purchase: 2
Quantity : 1
Product ID :
Vendor Product ID : c_prod_1
Product Description: STRAW04
Product Name : Strawberry Scented 4 oz Candle
Quantity : 3
Total : 19.92 ( USD )
Thanks for any help.
Ps
I should add that it is working on the admin side and updating the db as it should and sending the customers the emails. I asked 2checkout about how there emails look and they said it's because the info from zen cart is not being passed correctly.
2checkout release "Single Page Checkout" feature, would be great it this can be added to the 2checkout payment module
http://www.2checkout.com/community/b...out-announced/
Just read up on it. If you sell only intangible items then it will work, but if you have tangible or a mix, it will not. Also if you offer paypal also they say your better off using the traditional checkout.
It looks like only one line needs to be changed to reach the new page from zen cart. I will have a look later and see if I can get it to work. I'm not a coder so no promises, plus I don't sell any intangibles, but I will look into it.
Hi,
My 2checkout module was working fine. Until recently, I found out that I stopped getting the order confirmation email if customers chose to pay using 2checkout. There is no order record in my zencart admin either. Any idea how this happened? Please help. Thank you.