Подскажите пожалуйста, как передать скрытое поле из корзины в checkout? пробовал ajax не получилось..
jQuery(".checkout-button").click(function(){
var present1 = jQuery("#present1").val();
console.log(present1);
jQuery.ajax({
type: "POST",
url: "/wp-content/plugins/woocommerce/templates/checkout/review-order.php",
data: present1,
});