Post by NoJoy » Tue May 29, 2012 2:05 am

I've installed OpenCart ver 1.5.3.1 and am testing the 2Checkout payment module in demo mode before opening the site for public use. I have 3 issues:

1) When I get to the 2Checkout credit card page I just get shown the cart ID and no detail of the order.

2) The email I get similarly has no cart detail. This is a snippet from an email I typically get back from 2CO for a purchase of two items.

Contents of your purchase :
Cart ID : 40
Vendor Product ID : 40
Product Description : Vendor site cart purchase: Cart id 40
Product Name : Cart purchase: 40
Quantity : 1
Base Price : 24.49

Total : 24.49 ( GBP )


The value and cart ID are correct but that's about as far as it goes.

3) The shopping cart is empty when I get back to the success page, but when I go back to the site home page the cart has magically remembered my last purchase.

Does anyone know of a fix for these issues please?

Thanks.

Newbie

Posts

Joined
Mon May 28, 2012 10:00 pm

Post by 2Checkout » Wed May 30, 2012 1:45 am

Hello,

Our Integrations team might be able to help you. Their email is techsupport@2co.com if you would like to email them.

Best -

2Checkout team

Newbie

Posts

Joined
Wed May 30, 2012 1:37 am

Post by NoJoy » Wed May 30, 2012 5:09 am

Thank you. I'll give them a try and post back the solutions if I get some.

Newbie

Posts

Joined
Mon May 28, 2012 10:00 pm

Post by evgenyfr » Sun Jun 10, 2012 1:26 pm

Hello ,
I am have same problem any solution ?
Regards,
evgeny

Newbie

Posts

Joined
Tue Aug 09, 2011 8:34 pm

Post by NoJoy » Tue Jun 12, 2012 8:02 am

My problem turned out to be partly due to an erroneous space in the code. In the catalog\view\theme\default\template\payment folder is a file called 'twocheckout.tpl'. The line that should read:

<input type="hidden" name="c_prod_<?php echo $i; ?>" value="<?php echo $product['product_id']; ?>,<?php echo $product['quantity']; ?>" />

had a space before the comma between the product_id and quantity. This was causing an issue at 2CO preventing anything other than the cart ID from showing. Having removed that space I was able to improve matters but not resolve my issues completely. I now get more meaningful emails back from 2CO that look something like this:

Contents of your purchase :
Cart ID : 40
Vendor Product ID : c_prod_0
Product Description : Party pack
Product Name : Party pack
Quantity : 1
Base Price : 24.49

Total : 24.49 ( GBP )


As you can see, it's still not right. So I installed the TamperData plugin into Firefox to check what was being sent to 2CO in the post data, and this revealed the following :

c_prod_0 PP-2425,1
c_name_0 Party pack
c_description_0 Party pack
c_price_0 24.49

So there are still two more issues. One is with the Opencart code which is not populating the description with the production description at all, but just repeating the product name. I've not found the culprit for that yet, but I will. I'm currently comparing all the files in my install with the latest download of Opencart to see if I have any more odd/corrupt files.
The other issue is the product_id. Despite the fact that the post data includes this, 2CO are still returning 'c_prod_x' in their emails etc. 2CO have confirmed that this is an issue and their developers are working on a fix. I don't have a date for that yet. In the meantime I've made a small adjustment to the 'twocheckout.tpl' file so that the product id is included in the name field. This way I can at least carry on trading, and make some sense of the emails I get after each purchase.

Hope this helps.

Newbie

Posts

Joined
Mon May 28, 2012 10:00 pm

Post by ankurgambhir3 » Mon Jul 23, 2012 9:13 pm

after working 3 days on this i have fixed this issue

How to integrate Open Cart with 2Checkout

Open Cart Settings:

1. Sign in to your OpenCart admin

2. Click Extensions tab and Payments subtab

3. Under 2Checkout Click Install and then click Edit

4. Enter your 2Checkout Account ID (2Checkout Account Number)

5. Select No under Test Mode

6. Select Complete under Order Status

7. Select Enabled under Status

8. Enter your Secret Word (enter your 2checkout's password)

9. Save your changes

2Checkout Settings:

1. Sign in to your 2Checkout account

2. Click the Account tab and Site Management subcategory

3. Under Direct Return select Given links back to my website

4. Set the Approved URL to http://www.yourstore.com/index.php?rout ... t/callback (Replace http://www.yourstore.com with the actual URL to your store.)

5. Enter your Secret Word (Must be the same value entered in your OpenCart admin.)

6. Click Save Changes




what we need to do just to replace this file
http://www.mediafire.com/?cf1aiqjl111da2g

with

catalog/controller/payment/2checkout.php

and after that order will start displaying in admin area ;D ;D

say thanks to http://www.legenddaddy.com

Newbie

Posts

Joined
Mon Jul 23, 2012 8:56 pm

Post by mrafique » Sat Feb 23, 2013 6:14 pm

Hi ankurgambhir3,
MediaFire link is not working as you advised to replace the existing one. Can you please upload the file 2checkout.php again so that i can fix my issue as i am facing the same issue as the other people. Your steps are perfect but i can not download the file 2checkout.php which you upload it on mediafire server.

Your prompt response would be highly appreciated.


regards,
Mohsin Rafique

Newbie

Posts

Joined
Fri Jun 22, 2012 8:49 pm

Post by way4love » Sat Mar 23, 2013 12:09 am

Please we need the file urgently!!!! The Mediafire says file is invalid, please fix ittttttt

New member

Posts

Joined
Tue Jul 05, 2011 9:37 pm

Post by thinks » Sat Mar 01, 2014 10:10 pm

AAAAh such a brilliantly simple solution - just download Craig Christensen's free mod. Works perfectly- and your customers even stay on your site, AND you get the usual OpenCart emails generated- THANK CRAIG!!

Integrate OpenCart with 2Checkout (Supports Direct Checkout)
OpenCart Settings

Download the 2Checkout payment module from https://github.com/craigchristenson/opencart-2checkout
Upload the files to your OpenCart directory.
Sign in to your OpenCart admin.
Click Extensions tab and Payments subtab.
Under 2Checkout click Install and then click Edit.
Enter your 2Checkout Account ID. (2Checkout Account Number)
Select No under Test Mode.
Select Yes under Checkout Display.
Select Complete under Order Status.
Select Enabled under Status.
Enter your Secret Word (Must be the same value entered on your 2Checkout Site Management page.)
Save your changes.

2Checkout Settings

Sign in to your 2Checkout account.
Click the Account tab and Site Management subcategory.
Under Direct Return select Header Redirect or Given links back to my website.
Enter your Secret Word.(Must be the same value entered in your OpenCart admin.)
Set the Approved URL to http://www.yourstore.com/index.php?rout ... t/callback (Replace http://www.yourstore.com with the actual URL to your store.)
Click Save Changes.

Newbie

Posts

Joined
Sat Jul 07, 2012 9:28 pm

Post by agusalsa » Fri Sep 18, 2015 2:31 am

module from https://github.com/craigchristenson/opencart-2checkout is missing Publishable Key and Private Key fields, any other download option? thank you

Newbie

Posts

Joined
Fri May 04, 2012 11:46 pm
Who is online

Users browsing this forum: No registered users and 5 guests