- 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
45 lines
1.6 KiB
JavaScript
45 lines
1.6 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)
|
|
*/
|
|
|
|
$('#x-checkout-edit').on('click', function() {
|
|
location.href = $(this).attr('data-href');
|
|
});
|
|
|
|
var contentRowContainer = $('#checkout-payment-step').closest('.row');
|
|
|
|
if (contentRowContainer.length) {
|
|
contentRowContainer.before($('#separate-payment-order-review'));
|
|
}
|
|
|
|
if ("undefined" !== typeof amazon_ongoing_session && amazon_ongoing_session) {
|
|
|
|
$('.payment-options').addClass('amazon_ongoing_session');
|
|
|
|
var formEl = $('form[action*="/amazonpay/"]').parent('.js-payment-option-form');
|
|
var additionalEl = formEl.prev('.additional-information');
|
|
var titleEl = additionalEl.prev('div');
|
|
|
|
titleEl.find('input[name=payment-option]').prop('checked', true);
|
|
|
|
formEl.addClass('amazon-visible');
|
|
additionalEl.addClass('amazon-visible');
|
|
titleEl.addClass('amazon-visible');
|
|
}
|
|
|
|
// Check if there's 'option' parameter in the url, if yes, let's hide everything except single payment method
|
|
var searchParams = new URLSearchParams(window.location.search);
|
|
var optionSet = searchParams.get('option');
|
|
if (optionSet) {
|
|
$('body').addClass('p3i-option-set');
|
|
// $('[id='+optionSet+'-container]').parent('div').addClass('p3i-visible-only');
|
|
$('[id^='+optionSet+'-]').addClass('p3i-visible-only');
|
|
setTimeout(function() {$('[id='+optionSet+']').trigger('click');}, 200);
|
|
$('[id^=conditions_to_approve]').prop('checked', false).trigger('click');
|
|
} |