update
This commit is contained in:
42
modules/dpdpoland/js/pudo-opc-prestateam-1.7.js
Normal file
42
modules/dpdpoland/js/pudo-opc-prestateam-1.7.js
Normal file
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* 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() {
|
||||
$("#btn_place_order").css("pointer-events", "none");
|
||||
}
|
||||
|
||||
function enableDpdPolandOrderProcessBtn() {
|
||||
$("#btn_place_order").css("pointer-events", "auto");
|
||||
}
|
||||
Reference in New Issue
Block a user