magento icon indicating copy to clipboard operation
magento copied to clipboard

Hiding tablerates after onInitializeSuccess is sometimes too slow

Open Kroellie opened this issue 2 years ago • 3 comments

Plugin version

4.3.0

Magento version

2.4.3-p1

PHP version

7.4

What went wrong?

We use a rather large tablerate (matrix rate) plugin for basis of MyParcel plugin. The more rates we have, the slower it becomes, obviously. Now we suffer from the MyParcel plugin sometimes not 'cleaning up' the original rates after onInitializeSuccess, as they are simply not there yet. Which causes the 'fix postcode + housenr.' form to show, and under that form, it shows the table rates, without deliveryoptions of MyParcel.

Maybe it's possible to use another trigger, besides onInitializeSuccess? Or postpone the call for a couple of ms?

Reproduction steps

  1. Navigate to ...
  2. Click on ...
  3. See ...

Relevant log output

No response

Additional context

No response

Kroellie avatar Apr 15 '22 13:04 Kroellie