first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
function showInstallmentsWidgetInCart() {
if (window.OpenPayU && !document.getElementById('installment-mini-cart')) {
jQuery(document).find("label[for='payment_method_payuinstallments']")
.append(("<div id='installment-mini-cart'>"));
var options = {
creditAmount: Number(PayUInstallmentsWidgetCartData.priceTotal),
posId: PayUInstallmentsWidgetCartData.posId,
key: PayUInstallmentsWidgetCartData.widgetKey,
showLongDescription: true
};
OpenPayU.Installments.miniInstallment('#installment-mini-cart', options);
}
}
document.addEventListener("DOMContentLoaded", showInstallmentsWidgetInCart);
showInstallmentsWidgetInCart();
jQuery(document).on('updated_checkout', function() {
showInstallmentsWidgetInCart();
});