/** * 2025 DPD Polska Sp. z o.o. * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * prestashop@dpd.com.pl so we can send you a copy immediately. * * @author DPD Polska Sp. z o.o. * @copyright 2025 DPD Polska Sp. z o.o. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of DPD Polska Sp. z o.o. */ $(document).ready(function () { const refreshDpdPudoState = () => { if (typeof handleDpdPudo === 'function') { handleDpdPudo(); } }; setTimeout(() => { refreshDpdPudoState(); }, 2000); $(document).on('opc-load-carrier:completed opc-update-carrier:completed', () => { setTimeout(refreshDpdPudoState, 100); }); }) function disableDpdPolandOrderProcessBtn() { $("#opc_step_shipping_footer, #opc_step_payment_header").css("pointer-events", "none"); } function enableDpdPolandOrderProcessBtn() { $("#opc_step_shipping_footer, #opc_step_payment_header").css("pointer-events", "auto"); }