Checkout takes several seconds after clicking “Finish order”

  • Posts: 456
  • Thank you received: 19
  • Hikashop Business
2 weeks 6 days ago #372415

Hi Nicolas,

I would like to ask you about something we are noticing during the checkout process.

When a customer clicks on the button to complete the order, the order processing takes a few seconds. During that time, a kind of loading/spinner icon appears, as if the system is “thinking”.

The problem is that several customers have told us that this step “takes too long”, and we are worried that some users may think the checkout is blocked or may even leave before the order is completed.

Is there any way to improve this delay, or at least to show a clearer message during that loading time, such as “Your order is being processed, please wait”?

Thank you.
Best regards, José Ángel

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

  • Posts: 85917
  • Thank you received: 14130
  • MODERATOR
2 weeks 6 days ago #372419

Hi,

Improving this delay is probably possible, but you probably don't want to do the necessary changes.
The delay comes either:
- from the emails being sent (so you could disable the email sending during the order creation, or use a faster email sending service, or remove attachments if you have attachments in the emails)
- from a plugin calling a third party service, like a shipping carrier, a payment gateway, analytics, etc.
or a combination of these.
Without these, creating an order take only a fraction of a second.

Regarding your question about adding a message, that's a good idea, but it's not easy to do. It will require some core changes in HikaShop. Now, I think it's a good idea, so we'll be including this in the next version. So I would recommend just updating when we release it.

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

  • Posts: 456
  • Thank you received: 19
  • Hikashop Business
2 weeks 6 days ago #372427

Hi Nicolas,

Thank you for the explanation.

We will not make core changes, so we will wait for the next HikaShop version with the improved loading message.

Regarding the delay itself, we would like to identify what is causing it on our website. Is there any recommended way to check which process is taking more time during order creation?

For example, is there a debug log, a timing report, or a recommended method to know whether the delay comes from emails, payment plugins, shipping plugins, analytics, or another third-party plugin?

Thank you.

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

  • Posts: 85917
  • Thank you received: 14130
  • MODERATOR
2 weeks 6 days ago #372429

Hi,

Well, you can run tests:
- first, place an order and measure the delay.
- disable all the order emails in System>Emails and place an order and measure the delay.
- enable back all the order emails, and create a bank transfer payment method and place the order via this and measure the delay (since there is no payment gateway to contact with bank transfer, it is instantaneous).
- continue with the plugins that connect to external services and linked to orders: ShipStation, DHL, MyParcel, Printify, Google Analytics, etc.
By comparing the delays you can figure out which elements add delay to the order creation and by how much.
As far as I know, Joomla doesn't provide event plugin logs, and HikaShop relies on Joomla in order to trigger the plugin events (and thus HikaShop doesn't know which plugin is called and for how long), so it's not possible to know that information without tests like described above.

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

  • Posts: 456
  • Thank you received: 19
  • Hikashop Business
2 weeks 5 days ago #372443

Hi Nicolas,

We have run several tests as you suggested.

All tests were made from a PC, using the same product, the same checkout process and bank transfer as the payment method.

These are the average results:

* Normal checkout, with order emails enabled: 11.29 seconds
* Checkout with these three emails temporarily disabled: 7.46 seconds

* Order notification to administrator
* Order creation notification
* Order status notification

So the emails seem to add around 3.83 seconds to the checkout process.

However, even with those emails disabled, the checkout still takes around 7.46 seconds, which still seems quite high for a bank transfer order.

We also tested by temporarily disabling these plugins one by one, with emails enabled:

* HikaShop Google Dynamic Remarketing: 11.19 seconds
* HikaShop Google Analytics 4: 11.64 seconds
* HikaShop Email History Plugin: 12.36 seconds
* HikaShop trigger for AcyMailing filters: 11.95 seconds
* HikaShop Massaction Order Plugin: 10.95 seconds
* HikaShop Orders Automatic Cancel Plugin: 10.93 seconds

None of these plugins seems to explain the delay.

Based on these results, do you think 7.46 seconds for a bank transfer order with order emails disabled is still abnormal?

If so, what would you recommend checking next?

Thank you.

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

  • Posts: 85917
  • Thank you received: 14130
  • MODERATOR
2 weeks 5 days ago #372450

Hi,

As I said, HikaShop itself doesn't even need half a second. So the delay comes from something else.
On these 7 seconds, it's possible that your template and other modules take several seconds. How long takes the first page of the checkout to display ? if it takes 7 seconds, then it means that it's probably a modules / template delay issue. In that case, you can pin point the issue with the debug at the bottom of the pages of the frontend if you activate the debug setting of the Joomla configuration.
If a normal page takes less than a second (without cache activated), then the 6 / 7 seconds come from another plugin.

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

  • Posts: 456
  • Thank you received: 19
  • Hikashop Business
2 weeks 4 days ago #372466

Hi Nicolas,

We have now tested the first checkout page as well.

The first checkout page loads very quickly, in around 1 second. By default, the selected payment method is credit card. If we change the payment method to bank transfer, the checkout thinks for around 2 seconds, but nothing more.

So the checkout page itself does not seem to take 6–7 seconds to load.

The delay appears when clicking the final button to complete the order:

Bank transfer order with emails enabled: around 11.29 seconds
Bank transfer order with the three order emails disabled: around 7.46 seconds

So emails explain around 3.83 seconds, but even without those emails the final order creation still takes around 7.46 seconds.

Since the first checkout page loads in about 1 second, it does not look like a template/modules/page rendering issue.

Based on this, would you recommend checking another Joomla/HikaShop plugin that is triggered during order creation?

Thank you.

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

  • Posts: 85917
  • Thank you received: 14130
  • MODERATOR
2 weeks 4 days ago #372468

Yes, it must come from another plugin which is triggered during the order creation.

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

  • Posts: 456
  • Thank you received: 19
  • Hikashop Business
2 weeks 4 days ago #372470

Hi Nicolas,

We continued testing and we finally found a very clear result.

The delay seems to come mainly from AwoCoupon, specifically from the plugin:

* Hikashop - AwoCoupon

These are the average results with bank transfer, emails enabled and GA4 enabled:

* Normal checkout, with both AwoCoupon plugins enabled: 11.29 seconds
* Both AwoCoupon plugins disabled: 5.13 seconds
* Only “System - AwoCoupon” enabled: 5.99 seconds
* Only “Hikashop - AwoCoupon” enabled: 11.93 seconds

So the main delay seems to be caused by the “Hikashop - AwoCoupon” plugin.

If we disable “Hikashop - AwoCoupon”, the checkout becomes much faster, but our coupons are no longer applied, so we cannot simply keep it disabled without replacing that functionality.

I understand that this probably comes from AwoCoupon, not from HikaShop itself. However, I would like to ask you something before contacting AwoCoupon.

Since HikaShop 6.5.0 includes the new bulk import feature for discounts and coupons, would it be possible to stop using AwoCoupon and use only HikaShop’s native coupon/discount system instead?

Would HikaShop be able to cover the same kind of coupon/discount rules, and could we import our existing AwoCoupon coupons into HikaShop, for example via CSV/XML?

In your opinion, would migrating from AwoCoupon to HikaShop native coupons be a good solution to avoid this delay during order creation?

Thank you.

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

  • Posts: 85917
  • Thank you received: 14130
  • MODERATOR
2 weeks 4 days ago #372471

Hi,

I don't know all the features of AWOCoupon and I don't know exactly what you're using in AWOCoupon, so it would be foolish of me to guarantee you that you'll be able to do the same in HikaShop without relying on AWOCoupon.
However, between all the features we've added in HikaShop in the past year, as well as the coupon conditions plugin we've added on our marketplace recently and the cart fee plugin, etc I think we should be able to cover anything.
www.hikashop.com/marketplace/product/292-coupon-conditions.html

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

Time to create page: 0.060 seconds
Powered by Kunena Forum