Jump to content
thirty bees forum
  • 0

2Checkout payment module redirects to order history


Question

  • 0
Posted

My tag on the order confirmation page isn't registering, I believe, because of my payment module returning to the order history page instead. Not sure how to get around this issue though.

12 answers to this question

Recommended Posts

  • 0
Posted

2Checkout's. Their GitHub module page is here https://github.com/craigchristenson/PrestaShop-2Checkout . If you can tip up a modified 30B fork that would be awesome!

  • 0
Posted

@x97wehner I don't have 2checkout account, so I can't verify that the following will work. Could you please check

Edit file /modules/checkout/controllers/front/validation.php and change line 40 from php Tools::redirect('index.php?controller=order-confirmation&id_cart='.(int)$cart->id.'&id_module='.(int)$this->module->id.'&id_order='.$checkout->currentOrder); to php Tools::redirect('index.php?controller=order-confirmation&id_cart='.(int)$cart->id.'&id_module='.(int)$this->module->id.'&id_order='.$checkout->currentOrder.'&key='.$customer->secure_key);

That should do the trick

  • 0
Posted

@datakick Here it is: 4658 -- 1 Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart Cart 3226 0x 0 11/20/2018 08:57:10

  • 0
Posted

@datakick Sorry. Here is the context of that. I removed the user directory path at the beginning.

ERROR 2018/11/20 - 08:37:39: Argument 4 passed to ToolsCore::displayPrice() must be an instance of Context, boolean given, called in ....../publichtml/modules/checkout/checkout.php on line 301 at line 803 in file classes/Tools.php *ERROR* 2018/11/20 - 08:57:11: Argument 4 passed to ToolsCore::displayPrice() must be an instance of Context, boolean given, called in ....../publichtml/modules/checkout/checkout.php on line 301 at line 803 in file classes/Tools.php

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...