Frontend display var data from jQuery in a php file -
i trying devise plan display jquery.post current_date
, checkin_date
& diff_days
php file in plugin. price of rental item calculated using bkap_get_per_night_price
ajax code here:
jquery.post("'.get_admin_url().'admin-ajax.php", data, function(response) { eval(response); var data = { current_date: jquery("#wapbk_hidden_date_checkout").val(), checkin_date: jquery("#wapbk_hidden_date").val(), attribute_selected: jquery("#wapbk_variation_value").val(), currency_selected: jquery(".wcml_currency_switcher").val(), block_option_price: jquery("#block_option_price").val(), post_id: "'.$duplicate_of.'", diff_days: jquery("#wapbk_diff_days").val(), quantity: quantity_str, variation_id: variation_id, gf_options: gf_options, bundle_optional: bundle_optional, action: "bkap_get_per_night_price", product_type: "'.$product_type.'" '.$attribute_fields_str.' };
i found leads on this article, still having trouble finding solution. appreciated.
Comments
Post a Comment