- Posts: 17
- Thank you received: 0
Bpost shipping manager stuck in loop
10 years 1 month ago #247833
by Bram
Bpost shipping manager stuck in loop was created by Bram
-- url of the page with the problem -- :
www.hiphey.be
-- HikaShop version -- : 3.6.2
-- Joomla version -- : 3.5
Hello guys,
Me again.
The bpost shipping manager is stuck in a loop.
I can enter the shipping info in the manager but when all is done it just starts all over again. The information is send correctly to the Bpost site but the customer cant continu the checkout process as they are stuck in the Bpost shipping manager window.
Do you know a way to fix this?
Maybe a hikashop option that i have used wrongly?
Kind regards
Bram
-- HikaShop version -- : 3.6.2
-- Joomla version -- : 3.5
Hello guys,
Me again.
The bpost shipping manager is stuck in a loop.
I can enter the shipping info in the manager but when all is done it just starts all over again. The information is send correctly to the Bpost site but the customer cant continu the checkout process as they are stuck in the Bpost shipping manager window.
Do you know a way to fix this?
Maybe a hikashop option that i have used wrongly?
Kind regards
Bram
Please Log in or Create an account to join the conversation.
10 years 1 month ago #247892
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Bpost shipping manager stuck in loop
Hi,
There are some checks in the function which display the popup
github.com/HikaShop/hikashopshipping-bpo...bpost/bpost.php#L275
The first one is to only display the popup when "bpost" is selected.
Second one is to not display two popups in the same page.
The third is not check the cache to not re-display the popup if nothing changed.
Unfortunately, the function which update the cache and the function which display the popup can be called in the same "page" and they do not use the same container for the cache.
For the line 224
github.com/HikaShop/hikashopshipping-bpo...bpost/bpost.php#L224
Please replace
By
I guess that it should fix your issue.
Let's us know if you have any further problem with the plugin so we can validate the patch and submit it in the github repository.
Regards,
Regards,
There are some checks in the function which display the popup
github.com/HikaShop/hikashopshipping-bpo...bpost/bpost.php#L275
The first one is to only display the popup when "bpost" is selected.
Second one is to not display two popups in the same page.
The third is not check the cache to not re-display the popup if nothing changed.
Unfortunately, the function which update the cache and the function which display the popup can be called in the same "page" and they do not use the same container for the cache.
For the line 224
github.com/HikaShop/hikashopshipping-bpo...bpost/bpost.php#L224
Please replace
Code:
$cartClass->save($cartObj);
Code:
$cartClass->save($cartObj);
$cart->cart_params->bpost = $cartObj->cart_params->bpost;
Let's us know if you have any further problem with the plugin so we can validate the patch and submit it in the github repository.
Regards,
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
10 years 1 month ago #247940
by Bram
Replied by Bram on topic Bpost shipping manager stuck in loop
Please Log in or Create an account to join the conversation.
10 years 1 month ago #248032
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Bpost shipping manager stuck in loop
Hi,
Without having a look at your website with a test account, it will be difficult to say.
There are some code in the plugin in order to handle the popup closure ; unfortunately such kind of script is hard manage.
github.com/HikaShop/hikashopshipping-bpo...bpost/bpost.php#L209
You can see in the plugin that there is a function to get the bpost return and try to close the bpost popup.
If there is a javascript error ; if there is no access to the parent ; if *something* ; it is possible that the popup do not close and you will get the checkout directly in the popup.
Regards,
Without having a look at your website with a test account, it will be difficult to say.
There are some code in the plugin in order to handle the popup closure ; unfortunately such kind of script is hard manage.
github.com/HikaShop/hikashopshipping-bpo...bpost/bpost.php#L209
You can see in the plugin that there is a function to get the bpost return and try to close the bpost popup.
If there is a javascript error ; if there is no access to the parent ; if *something* ; it is possible that the popup do not close and you will get the checkout directly in the popup.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
10 years 1 month ago #248314
by stef101
Replied by stef101 on topic Bpost shipping manager stuck in loop
Hi Jerome, Nicolas, Bram,
I am also using the Bpost Shiping manager and I have the same problem as Bram describes. I get an error message (which is normal in my case because my credentials for BPOST are not ready yet) When I click return to webshop the rest of the sequence is displayed in the popup window and that makes it difficult.
I can provide you credentials so that you can check my webshop which is www.webenwielshop.be .
Where can I send the credentials ?
I am also using the Bpost Shiping manager and I have the same problem as Bram describes. I get an error message (which is normal in my case because my credentials for BPOST are not ready yet) When I click return to webshop the rest of the sequence is displayed in the popup window and that makes it difficult.
I can provide you credentials so that you can check my webshop which is www.webenwielshop.be .
Where can I send the credentials ?
Please Log in or Create an account to join the conversation.
10 years 1 month ago - 10 years 1 month ago #248318
by Bram
Replied by Bram on topic Bpost shipping manager stuck in loop
Jerome I have made a login for you.
Part of the message is hidden for the guests. Please log in or register to see it.
How can i make things private so only the devs can see the HikaDev password for my site?
Kind regards
Bram
Part of the message is hidden for the guests. Please log in or register to see it.
How can i make things private so only the devs can see the HikaDev password for my site?
Kind regards
Bram
Last edit: 10 years 1 month ago by Bram.
Please Log in or Create an account to join the conversation.
10 years 1 month ago - 10 years 1 month ago #248350
by Philip
Replied by Philip on topic Bpost shipping manager stuck in loop
Hello,
To provide references, you can use your Contact us form, add a Url link to this thread to keep the link in your message.
Please, note that for now we just have your website url and login, but nothing for the password.
Awaiting news from you.
Regards.
To provide references, you can use your Contact us form, add a Url link to this thread to keep the link in your message.
Please, note that for now we just have your website url and login, but nothing for the password.
Awaiting news from you.
Regards.
Last edit: 10 years 1 month ago by Philip.
Please Log in or Create an account to join the conversation.
Time to create page: 0.205 seconds