0 x97wehner Posted November 14, 2018 Author Posted November 14, 2018 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.
0 datakick Posted November 14, 2018 Posted November 14, 2018 @x97wehner what payment module is that? Shouldn't be hard to fix it to work as other payment modules
0 x97wehner Posted November 14, 2018 Author Posted November 14, 2018 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 datakick Posted November 14, 2018 Posted November 14, 2018 @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 x97wehner Posted November 20, 2018 Author Posted November 20, 2018 @datakick Didn't work. Got this error when trying to return after the order. Got a 500 server error
0 datakick Posted November 20, 2018 Posted November 20, 2018 @x97wehner look into /log directory inside your thirtybees installation, there you should see the 'real' error message
0 x97wehner Posted November 20, 2018 Author Posted November 20, 2018 @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 datakick Posted November 20, 2018 Posted November 20, 2018 @x97wehner I meant logs stored in file inside log directory: /log/20181120_exception.log
0 x97wehner Posted November 20, 2018 Author Posted November 20, 2018 @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
0 datakick Posted November 20, 2018 Posted November 20, 2018 @x97wehner edit this line and change it to look like this: php 'total_to_pay' => Tools::displayPrice($params['total_to_pay'], $params['currencyObj']),
0 x97wehner Posted November 20, 2018 Author Posted November 20, 2018 @datakick I believe this worked. Thanks!
0 datakick Posted November 20, 2018 Posted November 20, 2018 Good. I've created pull requests with the changes to master repository. It seems to be abandoned, though
Question
x97wehner
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now