Yes,
I edited the file: wc-fields-factory/assets/js/wccpf-front-end.js
Around line 25:
var prodId = ahd_get_data(target, “product_id” );
var product_cart_id = ahd_get_data(target, “cart_id” );
//var product = target.closest( “tr.cart_item” ).find( “.wcff_get_referance_data” );
//var prodId = product.data( “product_id” );
var field_name = target.data( “field” );
//var product_cart_id = product.data( “cart_id” );
Around line 48 i commented 2 lines and add this:
var prodId = ahd_get_data(target, “product_id” );
var product_cart_id = ahd_get_data(target, “cart_id” );
//var prodId = target.closest( “tr.cart_item” ).find( “.wcff_get_referance_data” ).data( “product_id” );
//var product_cart_id = target.closest( “tr.cart_item” ).find( “.wcff_get_referance_data” ).data( “cart_id” );
And in line 399:
function ahd_get_data(ahd_target, ahd_data) {
ahd_elemento = ahd_target.closest(‘div.row’).find(‘.delete-item’);
if (ahd_data ==”product_id”) {
ahd_return = ahd_elemento.find(“a”).data(“product_id”);
} else if (ahd_data ==”cart_id”) {
ahd_str = ahd_elemento.find(“a”).attr(“href”); separador1=”remove_item=”; separador2=”&”;
ahd_return = ahd_str.substring(ahd_str.indexOf(separador1) + separador1.length,ahd_str.indexOf(separador2));
}
return ahd_return;
}
I can send you the file but i dont know how attach a file here…
Thanks.