- Posts: 31
- Thank you received: 1
Clicking Back From PayPal Results in "Select a billing address" Error
- nyanginator
-
Topic Author
- Offline
Less
More
7 years 3 months ago - 7 years 3 months ago #307405
by nyanginator
-- HikaShop version -- : 4.1.0
-- Joomla version -- : 3.9.6
-- PHP version -- : 7.2.19
-- Browser(s) name and version -- : Firefox 67.0.1
After arriving at the paypal.com page, if I click back on the browser instead of proceeding with the payment, the error message "Select a billing address" now shows. In the previous version 4.0.3, this didn't happen.
You can also get the "Select a billing address" error by clicking back on the browser on the "Please wait while you are redirected to PayPal" page, and then clicking forward on browser.
-- Joomla version -- : 3.9.6
-- PHP version -- : 7.2.19
-- Browser(s) name and version -- : Firefox 67.0.1
After arriving at the paypal.com page, if I click back on the browser instead of proceeding with the payment, the error message "Select a billing address" now shows. In the previous version 4.0.3, this didn't happen.
You can also get the "Select a billing address" error by clicking back on the browser on the "Please wait while you are redirected to PayPal" page, and then clicking forward on browser.
Last edit: 7 years 3 months ago by nyanginator. Reason: Another error case scenario
Please Log in or Create an account to join the conversation.
7 years 3 months ago #307406
by nicolas
Replied by nicolas on topic Clicking Back From PayPal Results in "Select a billing address" Error
Hi,
Could you provide a link to the shop and instructions to reproduce the problem (if needed) ?
Could you also tell us how the "clean cart when order is" setting is configured on your HikaShop configuration ?
Could you provide a link to the shop and instructions to reproduce the problem (if needed) ?
Could you also tell us how the "clean cart when order is" setting is configured on your HikaShop configuration ?
Please Log in or Create an account to join the conversation.
- nyanginator
-
Topic Author
- Offline
Less
More
- Posts: 31
- Thank you received: 1
7 years 3 months ago - 7 years 3 months ago #307623
by nyanginator
Replied by nyanginator on topic Clicking Back From PayPal Results in "Select a billing address" Error
Hi, sorry for the delayed response. Don't know how I wasn't subscribed to the thread.
"Clean cart when order is" is set on Created (default).
Temporary test site:
- I setup a new Joomla install and the latest HikaShop with all default settings, except adding in an email for PayPal
- I created a product and gave it a price.
- Add to cart and checkout. I logged in as admin user to checkout.
- Initially, there is no problem. The "Select a billing address" error does not show in the 2 scenarios I noted: 1) clicking back from the paypal.com page, and 2) clicking back then forward from the "redirecting to PayPal" page.
- Go into HikaShop configuration and click Save. Don't need to change any settings.
- Try checking out again and again clicking back from paypal.com, and clicking back-forward from the redirect page. The error now shows.
"Clean cart when order is" is set on Created (default).
Temporary test site:
This message contains confidential information
Last edit: 7 years 3 months ago by Philip.
Please Log in or Create an account to join the conversation.
7 years 3 months ago #307640
by Philip
Replied by Philip on topic Clicking Back From PayPal Results in "Select a billing address" Error
Please Log in or Create an account to join the conversation.
- nyanginator
-
Topic Author
- Offline
Less
More
- Posts: 31
- Thank you received: 1
7 years 3 months ago #307770
by nyanginator
Replied by nyanginator on topic Clicking Back From PayPal Results in "Select a billing address" Error
Hi, sorry again for the delay. Somehow I got unsubscribed one more time.
After trying in Chrome and Edge, I realized only one of the problems occurs on those browsers. That is:
For Firefox, the problem occurs in the case described above as well as for clicking Back after getting to the PayPal.com site.
After trying in Chrome and Edge, I realized only one of the problems occurs on those browsers. That is:
- While the browser is pausing for 10 seconds to redirect to PayPal, click Back on browser instead of letting it redirect.
- Remember to click Forward on the browser aftwards for the error to appear.
For Firefox, the problem occurs in the case described above as well as for clicking Back after getting to the PayPal.com site.
Please Log in or Create an account to join the conversation.
7 years 3 months ago - 7 years 3 months ago #307788
by Philip
Replied by Philip on topic Clicking Back From PayPal Results in "Select a billing address" Error
Hello,
Thanks for your details, we work on our side in order to correct your issue and with the same move improve HikaShop.
I will guide you to process some test with a short fix, here the step by step process :
1. Go in YourWebsite\components\com_hikashop\controllers
2. Open the checkout.php file
3. Around line 705, you have this :
4. Add this :
5. To have this :
Important point, we are awaiting your returns to be sure that this fix is efficient before add it to our next HikaShop releases
Regards
Thanks for your details, we work on our side in order to correct your issue and with the same move improve HikaShop.
I will guide you to process some test with a short fix, here the step by step process :
1. Go in YourWebsite\components\com_hikashop\controllers
2. Open the checkout.php file
3. Around line 705, you have this :
Code:
if($checkoutHelper->isStoreClosed()) {
hikaInput::get()->set('layout', 'shop_closed');
return $this->display();
}
$check = $this->checkWorkflowSteps($step);
if($check !== true)
$this->app->redirect($checkoutHelper->completeLink('cid='.((int)$check + 1), false, true, false, $checkout_itemid));
$old_messages = $this->app->getMessageQueue();
Code:
//
// Get and check the cart
//
$cart = $checkoutHelper->getCart();
if(empty($cart) || empty($cart->cart_id) || empty($cart->products)) {
if(!empty($cart->messages)) {
// Display messages
foreach($cart->messages as $msg) {
$this->app->enqueueMessage($msg['msg'], $msg['type']);
}
}
$this->setRedirect($checkoutHelper->getRedirectUrl(), JText::_('CART_EMPTY'));
return true;
}
Important point, we are awaiting your returns to be sure that this fix is efficient before add it to our next HikaShop releases
Regards
Last edit: 7 years 3 months ago by Philip.
Please Log in or Create an account to join the conversation.
- nyanginator
-
Topic Author
- Offline
Less
More
- Posts: 31
- Thank you received: 1
7 years 3 months ago #307874
by nyanginator
Replied by nyanginator on topic Clicking Back From PayPal Results in "Select a billing address" Error
Yes! It seems to be working. Thanks for responding so quickly.
The following user(s) said Thank You: nicolas
Please Log in or Create an account to join the conversation.
Time to create page: 0.216 seconds