It’s been three weeks since we released ShopMagic 2.17 and ShopMagic Abandoned Carts. This time we are back with a small but highly anticipated addition to ShopMagic – support for product images in the message field. Additionally, we fixed some small issues, which were reported by some of you.
Old but new – {{ order.products_ordered }}
If you are using ShopMagic on a regular basis, there’s a high chance that you’ve used {{ order.products_ordered }} before. Some of our customers, asked us about possible improvements to this placeholder. The most requested addition was to add image support to it.
I’m happy to say, that it’s done 🙂
How to use {{ order.products_ordered }}
When you find it on placeholder’s list, you will see a slight change in a new dialog which will open when you click on it. We added four templates to this placeholder:
- {{ order.products_ordered | template: ‘comma_separated_list’ }}
- {{ order.products_ordered | template: ‘unordered_list’ }}
- {{ order.products_ordered | template: ‘grid_2_col’ }}
- {{ order.products_ordered | template: ‘grid_3_col’ }}
Starting from the top, first one is comma separated view. Second is bulleted list.
The real fun begins with the grid template. You can choose from 2 or 3 items in a row. Curious how your product images will look like?
This is what I wrote in the message field:
Dear {{ customer.first_name }},
Here’s your order summary:
{{ order.products_ordered | template: ‘grid_3_col’ }}
And this is how your customer will see it:
Personally – I love it an I hope that you’ll use it often.
Review Request add-on
It’s worth to note, that aforementioned image support was also added to placeholders available in the Review Request add-on:
- {{ order.products_ordered_links }}
- {{ order.products_ordered_review_links }}
For both of these placeholders, you can also choose from list or grid view.
Is that all what you’ve prepared?
Not exactly. While adding images support to ShopMagic, we thought that 2 or 3 column grid system may not be enough for everyone. That’s why we decided to let you to add a custom template of your choice.
How to do it?
You can add your own templates to placeholders with WordPress add_filter function. Here are currently available filters:
- shopmagic/core/placeholder/products_ordered/templates
- shopmagic/reviews/placeholder/products_ordered_links/templates
- shopmagic/reviews/placeholder/products_ordered_review_links/templates
First one is available for everyone, while second and third will be available for ShopMagic PRO users only.
Last but not least, we added an option to overwrite email templates. To do this, locate email templates which you will find in:
/shopmagic-for-woocommerce/templates/emails/email-styles.php
You can overwrite this file by moving it to:
[yourtheme]/shopmagic/emails/
What’s next?
Currently, we are working on some amazing features which will extend Delayed Actions functionalities. We want to give you a possibility to add some modifiers to email delay option.
Stay tuned!