Commit 6d2cfd05 authored by Varun Sridharan's avatar Varun Sridharan
parent b7831763
...@@ -31,9 +31,13 @@ class WooCommerce_Quick_Donation_Shortcode { ...@@ -31,9 +31,13 @@ class WooCommerce_Quick_Donation_Shortcode {
$donation_box = WC_QD()->f()->generate_donation_selbox($settings['grouped'],$settings['type']); $donation_box = WC_QD()->f()->generate_donation_selbox($settings['grouped'],$settings['type']);
$donation_price = WC_QD()->f()->generate_price_box(); $donation_price = WC_QD()->f()->generate_price_box();
$currency = get_woocommerce_currency_symbol(); $currency = get_woocommerce_currency_symbol();
do_action('wc_quick_donation_before_doantion_form',$settings['type'],$settings['grouped']); $return_value = '';
ob_start();
do_action('wc_quick_donation_before_doantion_form',$return_value , $settings['type'],$settings['grouped']);
WC_QD()->f()->load_template('donation-form.php',WC_QD_TEMPLATE); WC_QD()->f()->load_template('donation-form.php',WC_QD_TEMPLATE);
do_action('wc_quick_donation_after_doantion_form',$settings['type'],$settings['grouped']); do_action('wc_quick_donation_after_doantion_form',$return_value , $settings['type'],$settings['grouped']);
return ob_get_clean();
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment