Documents
-
Extend a subscription renewal date
Use this as an AutomateWoo Custom Function action on a subscription workflow. It moves the next payment three months forward and adds an order note. WooCommerce Subscriptions is required.
-
Load custom order actions for workflows
Custom order actions must be registered during non-admin requests too. The first example loads them only before AutomateWoo’s Trigger Order Action runs; the second loads them before any workflow. Replace the two placeholder functions with your plugin’s registration functions.
-
Query a customer’s generated coupons
This helper returns coupon IDs for an AutomateWoo customer. The limit is capped to avoid an unbounded query on stores with many coupons.
-
Register a custom email template
Register a template slug and its directory. Create the corresponding template files in the supplied path before selecting the template in a workflow.
-
Register a custom order date variable
This two-file example registers {{ order.custom_date }} and formats a Unix timestamp stored in _my_custom_timestamp. Put both files in the same custom plugin directory.
-
Register a custom product display template
Register the template filename so it appears as a product-template option. Place the matching template file in your theme’s /automatewoo/email/ directory.
-
Set a custom reply-to address
Set the Reply-To header after AutomateWoo creates the workflow mailer. Use a verified address for your domain.
-
Set the order used for email previews
Replace the example ID with an order that contains representative data. The guard keeps the existing preview data when the order cannot be loaded.
-
Style links as buttons in AutomateWoo emails
Use AutomateWoo’s email button classes to style links in a workflow’s HTML email. These classes apply to the WooCommerce Default email template and do not apply to the Send Email – Plain Text action. Add a button to an email In a workflow’s Send Email action, select the Code tab in Email content. Add the […]
-
Update a queued workflow run date
Use a queued-event ID and a MySQL-formatted UTC date. The helper validates the ID and returns false when the event cannot be loaded.