# ShopMagic

[YayMail Addon for ShopMagic](https://yaycommerce.com/yaymail-addons/yaymail-addon-for-shopmagic/) allows you to customize templates generated by ShopMagic for WooCommerce plugin (by WP Desk) in YayMail interface.

**REQUIRED: In addition to these two plugins, here are the WordPress plugins you'll need for this guide.**&#x20;

* WooCommerce
* YayMail (free/pro)
* [ShopMagic - Follow-Up Emails & Marketing Automation for WooCommerce](https://wordpress.org/plugins/shopmagic-for-woocommerce/)
* [YayMail Addon for ShopMagic](https://yaycommerce.com/yaymail-addons/yaymail-addon-for-shopmagic/)

<figure><img src="/files/9H5dspkpbhxI9xfesUjh" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/sXDVGOw3Fs0U7sVUKWIF" alt=""><figcaption></figcaption></figure>

In the YayMail editor, you can add header, footer, and extra blocks to the email body.&#x20;

Apart from the extra blocks, you can add the content of your ShopMagic automation to the email body. Please use those ShopMagic shortcodes, which are listed in the **Shortcodes** section.

<figure><img src="/files/AKU7YFkJ7eKRTMdjv3lH" alt=""><figcaption></figcaption></figure>

These YayMail shortcodes help populate the content from your ShopMagic email setup in the new templates.&#x20;

* \[yaymail\_smfw\_email\_content] --> Email content
* \[yaymail\_smfw\_email\_heading] --> Email heading

In order to change these email sections' content, please do it in **ShopMagic** > **Automations**.

<figure><img src="/files/qlVQqnOhKdXCVrffyfkC" alt=""><figcaption></figcaption></figure>

And don't forget to enable and save those templates.

Happy customizing! 🪄


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yaycommerce.com/yaymail/addons/shopmagic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
