Un usuario preguntó 👇
El selector de fecha no se muestra, se muestra y funciona perfectamente, pero no hay selector de fecha.
La consola muestra el siguiente error:
TypeError: jQuery(...).datepicker is not a function
(@mycholan)
Hace 2 años, 1 mes
Hola, ¿ése es uno o más errores?
Esto probablemente significa que la interfaz de usuario de jquery no está cargada o no está cargada doble.
Algunos otros plugins pueden cargar otra versión de jquery UI.
Deshabilite todos los plugins excepto Fields Factory y Woocommerce y active el tema predeterminado de wordpress, y vea si el error aún existe o no.
Déjame saber tu final.
Lanzador de hilos
(@yward)
Hace 2 años, 1 mes
¡Hola! Gracias por su respuesta.
Aquí hay otro error de jQuery que aparece:
TypeError: jQuery(...).contents(...)[1].data is undefined[Learn More] ppcc_checkout.js:44:59
TypeError: jQuery(...).contents(...)[1].data is undefined[Learn More] ppcc_checkout.js:44:59
Ppcc_checkout.js es un archivo que requiere el plugin básico de conversor de divisas de PayPal
El contenido de ese archivo es el siguiente:
/*
Place this, or a subset of it, inside PayPal Payment description:
Cart Total: <span class="ppcc_cart_total" /><br>
Shipping Total: <span class="ppcc_shipping_total" /><br>
Order Total Tax: <span class="ppcc_tax_total" /><br>
Order Total inclusive Tax: <span class="ppcc_total_order_inc_tax" /><br>
Conversion Rate: <span class="ppcc_cr" />
*/
jQuery(document).ready(function(){
jQuery(document.body).on('change', 'input[name="payment_method"]', function() {
jQuery('body').trigger('update_checkout');
});
});
jQuery( document ).ajaxComplete(function(){
var myRegexp = / (DDD)//g;
var match = myRegexp.exec(php_data.cr);
// This Values come initially by the session
jQuery('.ppcc_cart_total').html(php_data.cart_total);
jQuery('.ppcc_tax_total').html(php_data.tax_total);
jQuery('.ppcc_shipping_total').html(php_data.shipping_total);
jQuery('.ppcc_total_order_inc_tax').html(php_data.total_order_inc_tax);
jQuery('.ppcc_cr').html(php_data.cr);
// This three values are not given on the checkout page, so can't be recalculated.
// jQuery('.ppcc_cart_tax').html(php_data.cart_tax);
// jQuery('.ppcc_shipping_tax_total').html(php_data.shipping_tax_total);
// jQuery('.ppcc_total_order_exc_tax').html(php_data.total_order_exc_tax);
// The following code retrieves and recalculates the changes made in the checkout preview:
if(jQuery("tr.shipping td span").length){
var ppcc_shipping_total = jQuery("tr.shipping td span").contents()[1].data.replace(".", "").replace(",", ".") * php_data.crval;
jQuery('.ppcc_shipping_total').html(ppcc_shipping_total.toFixed(2) + ' ' + match[1]);
}
if(jQuery("tr.tax-rate td span").length){
var tax_rate = jQuery("tr.tax-rate td span").contents()[1].data.replace(".", "").replace(",", ".") * php_data.crval;
jQuery('.ppcc_tax_total').html(tax_rate.toFixed(2) + ' ' + match[1]);
}
if(jQuery("tr.order-total td span").length){
var order_total = jQuery("tr.order-total td span").contents()[1].data.replace(".", "").replace(",", ".") * php_data.crval;
jQuery('.ppcc_total_order_inc_tax').html(order_total.toFixed(2) + ' ' + match[1]);
}
// unfortunately WooCommerc does not provide a filter to retrieve the preview values only. It uses its own wc-ajax mode to fetch the complete html code for the checkout preview.
});
Sin embargo, incluso deshabilitando ese plugin, el error aún existe.
Incluso probé el tema predeterminado de WordPress sin suerte.
Esta respuesta fue modificada hace 2 años, hace un mes por. Esta respuesta fue modificada hace 2 años, hace un mes por.
(@landabel)
Hace 2 años, 1 mes
Hola, tengo un problema con el selector de fecha que no se muestra
El selector de fecha no se muestra, el campo se muestra y funciona bien, pero no hay selector de fecha.
La consola muestra el siguiente error:
Escriba el error: jQuery (…). Datepicker no es una función
Tengo la versión 5.0.3 de wordpress
En la página del producto funciona pero en el check no se muestra el calendario, haz una instalación en blanco de wordpress sin plugins y sigue sin funcionar.
Esta respuesta fue modificada hace 2 años, hace un mes por. Esta respuesta fue modificada hace 2 años, hace un mes por.
(@sarkparanjothi)
Hace 2 años
hola @yward y @landabel,
¿Este problema en la página del producto o en la página de pago?
Lanzador de hilos
(@yward)
Hace 2 años
Consulte la página.
¿Solucionó tu problema??
0 / 0