Documentation

Learn how to set up, customize, and expand the functionality of WooCommerce

Developer Docs


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.

  • 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.

  • Use a custom shop.products filter

    Use this with {{ shop.products | type: ‘custom’, filter: ‘my_store_featured_products’ }}. Return product IDs that should be rendered by the variable.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.