Bpost shipping manager stuck in loop

  • Posts: 17
  • Thank you received: 0
7 years 8 months ago #247833

-- 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

Please Log in or Create an account to join the conversation.

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
7 years 8 months ago #247892

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

$cartClass->save($cartObj);
By
$cartClass->save($cartObj);
$cart->cart_params->bpost = $cartObj->cart_params->bpost;
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,


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.

  • Posts: 17
  • Thank you received: 0
7 years 8 months ago #247940

Hello Jerome,

That stopped the loop but everything from there on stays in that popup window.
Is there a way to close it when you are done with the shipping manager and continue in the main window?
see screenshot



Thanks for all the help.

Kind regards

Bram

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
7 years 8 months ago #248032

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,


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.

  • Posts: 7
  • Thank you received: 0
7 years 8 months ago #248314

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 ?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 17
  • Thank you received: 0
7 years 8 months ago #248318

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

Last edit: 7 years 8 months ago by Bram.

Please Log in or Create an account to join the conversation.

  • Posts: 4540
  • Thank you received: 612
  • MODERATOR
7 years 8 months ago #248350

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.

Last edit: 7 years 8 months ago by Philip.

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum