Skip to main content

How to customize the email templates

The extension sends four emails: the customer receipt, the admin notification, the approved notification, and the rejected notification. Each one uses a template you can copy and edit.

Create your own template

  1. Go to Marketing → Email Templates and press Add New Template.
  2. In Template, choose the matching default under Mirasvit_Withdrawal, for example Withdrawal Request: Customer Receipt, and press Load Template.
  3. Edit the subject and content, then save the template.

Apply the template

  1. Go to Stores → Configuration → Mirasvit → EU Withdrawal Button → Email.
  2. Select your new template in the matching field: Customer Receipt Template, Admin Notification Template, Approved Notification Template, or Rejected Notification Template.
  3. Save the configuration.

Available variables

The withdrawal emails expose these variables for use in the template:

  • increment_id — the request reference, such as WD-00001.
  • order_id — the order number.
  • customer_name — the customer's name.
  • refund_amount — the requested item total.
  • shipping_refund — the shipping amount included in the request.
  • reason — the reason the customer entered, if any.
  • created_at — the date and time the request was submitted.
  • view_url — a link to the request.
Note

Templates can be set per store view, so each storefront can use its own wording and language.