Top WooCommerce & WordPress Plugins › Forums › Custom Emails for WooCommerce › Shortcode not printed in mail
- Support forum for the Custom Emails for WooCommerce.
- This topic has 2 replies, 3 voices, and was last updated 4 months, 2 weeks ago by
Tom Anbinder.
- AuthorPosts
-
April 18, 2023 at 9:58 am #113460
Ylenia Vernucci
ParticipantHI,
I created a personalized email for order confirmation f a product category to the customer(Trigger= Order Status Updated To Complete).
Here is the body of the email:<p align="center">Reservation Nr. [wcj_order_number]<br /> On behalf of: [order_func func="get_billing_first_name"] [order_func func="get_billing_last_name"] -<br /><br /> <p align="center"> <table class="table_main"><tr><td align="center">[wcj_order_items_table table_class="table_ebike-test" variation_as_metadate=no columns="item_quantity|item_name|" columns_titles="Qty|Reservation and Details| " columns_styles="width:5%;text-align:left;|width:75%;text-align:left;|width:20%;|;text-align:left;"] </td></tr> <tr><td style="padding-top:2%;padding-bottom:2%"> </td></tr></table>
Unfortunately, when the customer places the order, he receives the mail but the shortcode values are not printed. However, if I enter the order and resend the confirmation email, then the email is generated correctly. Why? Thank you
April 20, 2023 at 4:54 am #113584Hi there,
Thank you for reaching out to us. It appears that most of the shortcodes used in your custom email may not be supported by our plugin.
However, I have escalated your concern to our development team and they will investigate further to see if there is any solution we can provide to resolve the issue.
We will get back to you as soon as possible with an update on the matter.
Thank you for your patience and understanding.
Kind regards,
MoshtafizurMay 9, 2023 at 3:56 pm #114734Hi,
Sorry for the late reply.
I can see that you have shortcodes with the
wcj_
prefix in your email – these shortcodes are from another plugin, you need to use our own shortcodes instead:[order_number]
instead of the[wcj_order_number]
, and[order_details]
instead of the[wcj_order_items_table]
.Please give it a try and let me know what you think.
- AuthorPosts
- You must be logged in to reply to this topic.