• Resolved fakemeta

    (@fakemeta)


    Hello,

    Pickup point selector has too many options for some countries. Clicking it causes browser to freeze even on high-end computers. France has 14000 pickup points, for example.

    Is there any chance we get a fix for this anytime soon?

    Best Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author dpdbaltics

    (@dpdbaltics)

    Hello, @fakemeta,

    This is not normal plugin behavior. With each pick-up points iteration that is being done through Cron job(it runs depending on your website time), all pick-up points are deleted from Database and then rewritten again. So each time all pick-up points are deleted and then new one’s are inserted into DB.

    This functionality seems not working on your system and pick-up points keeps stacking up. Even if they are not in database.

    Please send your website URL that we can check and analyze the problem and then we will fix it or it’s gonna be delegated to our developers.

    Thread Starter fakemeta

    (@fakemeta)

    Hello,

    I’ve checked DPD pickup points (France) for duplicates and didn’t find any.

    • Every #wc_shipping_dpd_parcels_terminal option has unique value.
    • Cron jobs are running every minute, WordPress virtual cron is disabled.
    • There are no 500 error responses for /wp-cron.php?doing_wp_cron request in apache access log.
    • There are no errors in PHP logs.
    • There are no fatal errors in WooCommerce logs.

    There are exactly 14259 option elements inside DPD pickup point selector, and also 14259 unique option values.

    I got this numbers by running this code on checkout page in browser console when DPD pickup points are selected. Country field needs to be set to France.

    var values = jQuery('#wc_shipping_dpd_parcels_terminal').find('option').map(function() { return jQuery(this).val(); }).toArray()
    
    console.log('Total values:', values.length)
    
    var uniques = values.filter(function(value, i) {
        return values.indexOf(value) === i;
    })
    
    console.log('Total unique values:', uniques.length)
    

    Also, I’ve checked number of pickup points returned by DPD API.

    I’ve got 14267 pickup points by sending a POST request to this endpoint:

    https://integration.dpd.lv/ws-mapper-rest/parcelShopSearch_?username=$username&password=$password&country=FR&fetchGsPUDOpoint=1&retrieveOpeningHours=0

    I guess the problem is not related to our system. Pickup points are not stacking.

    Best Regards

    • This reply was modified 3 years, 5 months ago by fakemeta.
    • This reply was modified 3 years, 5 months ago by fakemeta.
    • This reply was modified 3 years, 5 months ago by Yui.
    Plugin Author dpdbaltics

    (@dpdbaltics)

    What do you mean with this one:

    • Cron jobs are running every minute, WordPress virtual cron is disabled.
    • We recommend to update pick-up points every day, because updating them every hour or even every minute would cost a lot of resources from your server. Also it is advised to update them through WordPress virtual CRON updater, because plugin is configured for it, it is not compatible with any 3th party one’s.

    Thread Starter fakemeta

    (@fakemeta)

    Hello,

    By virtual cron I mean WordPress cron (“WP-Cron”) scheduler which runs on every page load. We have it replaced with system cron scheduler.

    This is a common practice and is documented: https://developer.www.ads-software.com/plugins/cron/hooking-wp-cron-into-the-system-task-scheduler/

    This has nothing to do with 14000 pickup points.

    Best Regards

    Plugin Author dpdbaltics

    (@dpdbaltics)

    Understood, thanks for information ?? .
    This is not common issue (actually nobody told us about it before) , so we do not a lot of info about it. For further inspection of the problem you should contact our developers through this email – [email protected] .

    For now I’m marking this issue as Resolved, but problem analysis will continue.

    Best Regards,
    DPD Baltic Support.

    Thread Starter fakemeta

    (@fakemeta)

    Hello,

    Contacted your developers few months ago, but this issue is still not resolved. Please don’t mark it as resolved until it is resolved. This might confuse other developers who look into this issue.

    Best Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Pickup select causes browser to freeze’ is closed to new replies.