- Implemented Google Pay parser in bongooglepay.js - Added Buckaroo 3 payment parser in buckaroo3.js - Introduced DataTrans CW Mastercard parser in datatranscw.js - Created DataTrans CW Credit Card parser in datatranscw_creditcard.js - Developed DHL Assistant shipping parser in dhlassistant.js - Added Estimated Delivery parser in estimateddelivery.js - Implemented Floapay payment parser in floapay.js - Created FS Pickup at Store shipping parser in fspickupatstore.js - Developed Generic Iframe parser in generic_iframe_parser.js - Added Geodis Officiel shipping parser in geodisofficiel.js - Implemented Glob Kurier module shipping parser in globkuriermodule.js - Created Latvija Post Express Pickup Terminal parser in latvijaspastsexpresspastspostterminalslv.js - Developed LP Shipping parser in lpshipping.js - Added Mijora Venipak parser in mijoravenipak.js - Implemented Apple Pay parser in pm_applepay.js - Created Przelewy24 payment parser in przelewy24.js - Developed Pshugls shipping parser in pshugls.js - Added Redsys Insite payment parser in redsysinsite.js - Implemented Tpay payment parser in tpay.js - Updated third-party integration documentation for FedEx DotCom
77 lines
2.4 KiB
JavaScript
77 lines
2.4 KiB
JavaScript
/**
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Software License Agreement
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
*
|
|
* @author Peter Sliacky (Zelarg)
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
|
*/
|
|
|
|
tc_confirmOrderValidations['packetery'] = function() {
|
|
if (
|
|
$('#packetery-widget').is(':visible') &&
|
|
"" == $('#packeta-branch-id').val()
|
|
) {
|
|
var shippingErrorMsg = $('#thecheckout-shipping .inner-wrapper > .error-msg');
|
|
shippingErrorMsg.show();
|
|
scrollToElement(shippingErrorMsg);
|
|
return false;
|
|
} else {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
checkoutShippingParser.packetery = {
|
|
|
|
after_load_callback: function(deliveryOptionIds) {
|
|
// if ('undefined' !== typeof initializePacketaWidget && $(".zas-box").length)
|
|
// initializePacketaWidget();
|
|
// if ('undefined' !== typeof tools){
|
|
// tools.fixextracontent(country);
|
|
// if ('undefined' !== typeof tools && 'undefined' !== typeof tools.readAjaxFields) {
|
|
// tools.readAjaxFields();
|
|
// }
|
|
// var packeteryEl = $('.carrier-extra-content.packetery');
|
|
// if (packeteryEl.length) {
|
|
// var extra = packeteryEl.parent();
|
|
// if ('undefined' !== typeof packetery && 'undefined' !== typeof packetery.widgetGetCities) {
|
|
// packetery.widgetGetCities(extra);
|
|
// }
|
|
// }
|
|
// }
|
|
},
|
|
|
|
init_once: function (elements) {
|
|
|
|
},
|
|
|
|
delivery_option: function (element) {
|
|
|
|
},
|
|
|
|
extra_content: function (element) {
|
|
element.after("<script>\
|
|
var country = 'cz,sk'; /* Default countries */\
|
|
$(document).ready(function(){\
|
|
if ('undefined' !== typeof initializePacketaWidget && $(\".zas-box\").length)\
|
|
initializePacketaWidget();\
|
|
if ('undefined' !== typeof tools){\
|
|
tools.fixextracontent(country);\
|
|
if ('undefined' !== typeof tools && 'undefined' !== typeof tools.readAjaxFields) {\
|
|
tools.readAjaxFields();\
|
|
}\
|
|
var packeteryEl = $('.carrier-extra-content.packetery');\
|
|
if (packeteryEl.length) {\
|
|
var extra = packeteryEl.parent();\
|
|
if ('undefined' !== typeof packetery && 'undefined' !== typeof packetery.widgetGetCities) {\
|
|
packetery.widgetGetCities(extra);\
|
|
}\
|
|
}\
|
|
}\
|
|
});\
|
|
</script>");
|
|
}
|
|
|
|
}
|