Refund form (Returns)

You are here:
Estimated reading time: < 1 min

This is a basic simple contact form that shows the customer’s orders and allows selecting which products are needed to be refunded.

Simply access Customizer > WooCommerce > Refunds and enable it and configure the other settings.

Make sure to access Settings > Permalinks and save the settings. This will flush an internal WordPress cache. If you won’t do this step, you’ll likely get a 404 error.

Customize various internal settings. Copy the code below and paste it into the child theme’s functions.php .

add_filter('reycore/woocommerce/returns', function($settings){

	$settings['subject'] = esc_html__('Return request from %s', 'text-domain');
	$settings['heading'] = esc_html__('Return request', 'text-domain');
	$settings['email'] = 'custom_email_address@email.com';
	$settings['order_text'] = '{{ID}} ( {{DATE}} / {{TOTAL}}{{CURRENCY}} )';
	$settings['error_not_sent'] = esc_html__('Something went wrong and the request hasn\'t been sent. Please retry later!', 'text-domain');
	$settings['success_msg'] = esc_html__('Return request sent successfully.', 'text-domain');

	return $settings;
	
}, 20);
Was this article helpful?
Dislike 1
Views: 343

Join the conversation