Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon What are some common issues when using WooCommerce shortcodes in emails


What are some common issues when using WooCommerce shortcodes in emails


Here are some common issues when using WooCommerce shortcodes in emails:

Shortcodes Cannot be Embedded between
 Tags

If the shortcodes are embedded between `

` tags, they will not render correctly. Make sure to remove these tags when editing the email template[2].

Curly Quotation Marks vs Straight Quotation Marks

Another issue is that straight quotation marks (`"`) may display as curly quotation marks (`"`). For the shortcodes to work, you need straight quotation marks[2].

Variation Product SKU Shortcodes

When using an SKU shortcode like `[products skus="sku-name"]`, the variation product SKU is not intended to be displayed by itself. Instead, use the parent variable product SKU from Product data > Variable product > Inventory > SKU[2].

Shortcodes Not Working in Specific Plugins

Some users have reported issues with shortcodes not working correctly in certain plugins, like the Q&A plugin. Deleting and reinstalling the plugin resolved the issue for some, but this is not recommended on a live site[1].

Shortcodes Not Updating "From" Email

In some cases, the "From" email in the email template may not update correctly, even though it displays properly within the template. This could be a bug in the plugin[1].

To troubleshoot these issues:

- Ensure you are using straight quotation marks and not embedding shortcodes between `

` tags
- Use the parent variable product SKU instead of variation SKUs
- Test the shortcodes on a staging site before implementing on a live site
- Disable conflicting plugins and switch to a default theme to rule out conflicts

If problems persist, seek assistance from the plugin's support channels or a qualified WordPress/WooCommerce developer.

Citations:
[1] https://wordpress.org/support/topic/qa-email-shortcodes-and-from-email-not-working/
[2] https://woocommerce.com/document/woocommerce-shortcodes/troubleshooting-shortcodes/
[3] https://stackoverflow.com/questions/74574196/add-a-shortcode-to-woocommerce-emails
[4] https://www.flycart.org/blog/woocommerce/better-woocommerce-email-customizer-shortcodes
[5] https://woocommerce.com/document/email-faq/