Commit Graph

86 Commits

Author SHA1 Message Date
Jan Jakes
89b10e7504 Avoid ignoring PHPCS checks in automation field factories
[MAILPOET-6150]
2024-08-29 17:23:34 +02:00
Jan Lysý
c6caee6f7a Add comments to the WPDB queries in Automation Integrations
[MAILPOET-6150]
2024-08-29 17:23:34 +02:00
David Remer
cbed9d49fc Rename abandoned cart trigger
[MAILPOET-6015]
2024-04-29 11:08:53 +02:00
Jan Jakes
7dd1cd213b Cast args to expected types to catch type errors in the future
[MAILPOET-6000]
2024-04-08 12:55:54 +02:00
Jan Jakes
677c6f22ee Fix loading order in customer payload for guest users
We were passing order ID istead of the order itself for guest users.

[MAILPOET-6000]
2024-04-08 12:55:54 +02:00
Mike Jolley
435f638011 Apply rules on lib dir 2024-03-21 16:57:59 +01:00
Jan Jakes
7df37c88f6 Apply "in the last X" parameter to fields backfilled from orders for guests
[PREMIUM-253]
2024-03-18 13:36:08 +01:00
Jan Jakes
29083b1f0f Ensure expected field types in customer payload
[PREMIUM-253]
2024-03-18 13:36:08 +01:00
Jan Jakes
efb56c7469 Pass order ID to customer subject from order-related triggers
[PREMIUM-253]
2024-03-18 13:36:08 +01:00
Jan Jakes
e054d455d4 Pass order to customer payload when available
[PREMIUM-253]
2024-03-18 13:36:08 +01:00
Jan Jakes
516d719111 Fallback on order categories/tags in order fields
[MAILPOET-5378]
2024-03-18 13:36:08 +01:00
Jan Jakes
4b1027fcc7 Fallback on order date in first/last order date fields
[MAILPOET-5378]
2024-03-18 13:36:08 +01:00
Jan Jakes
bae1f44378 Use the new getters in field value factories
[MAILPOET-5378]
2024-03-18 13:36:08 +01:00
Jan Jakes
950747a15f Add getters for total spent, average spent, and order count with order fallback
[MAILPOET-5378]
2024-03-18 13:36:08 +01:00
Jan Jakes
b6c81f8ff6 Add getters for billing & shipping customer data with order fallback
[MAILPOET-5378]
2024-03-18 13:36:08 +01:00
Jan Jakes
adb5d16fab Allow optional WC_Order to customer payload for guest user data
[MAILPOET-5378]
2024-03-18 13:36:08 +01:00
Jan Jakes
8ba4335dfb Optimize and cache term loading
[MAILPOET-5942]
2024-03-18 11:53:16 +01:00
Jan Jakes
eaee987048 Implement cart total field
[MAILPOET-5934]
2024-03-14 11:09:12 +01:00
David Remer
1a753ca2af Order explicitly by name
[MAILPOET-5942]
2024-03-12 14:27:21 +01:00
Jan Jakes
9327485441 Use "comment_date_gmt" for "in the last" condition
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
b5b21c9f7a Add check for product post type when fetching customer review data
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
5439db1e5a Unify parameter naming
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
1a0eb90402 Mark which fields support the "in the last" parameter for UI
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
7cb75e77c5 Add explicit casts for WordPressDotOrg.sniffs.DirectDB.UnescapedDBParameter
None of these are needed, but the sniff reports them as false positives, so this is a workaround.

[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
d4fd0bec71 Check for empty array when getting parent term IDs
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
5b2d75dc1f Add "in the last" parameter to "woocommerce:customer:purchased-tags" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
176b2dbd53 Add "in the last" parameter to "woocommerce:customer:purchased-categories" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
399e61d7b9 Add "in the last" parameter to "woocommerce:customer:review-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
3dbe1bd049 Add "in the last" parameter to "woocommerce:customer:spent-average" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
adff3b61a6 Add "in the last" parameter to "woocommerce:customer:order-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
d9be326aa7 Add "in the last" parameter to "woocommerce:customer:spent-total" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Lysý
525c80bac4 Fix PHPStan warnings in lib
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
 Ján Mikláš
f71935f137 Add translator comments to automation steps and subjects
[MAILPOET-5729]
2023-11-24 08:10:35 +02:00
David Remer
4a15751d7a Add comment to explain why we just return true
[MAILPOET-5661]
2023-11-06 12:57:56 +01:00
David Remer
ae0e952159 Use the correct WordPress wrapper
[MAILPOET-5661]
2023-11-06 12:57:56 +01:00
David Remer
1d885ea238 Add order created|cancelled|completed triggers
[MAILPOET-5661]
2023-11-06 12:57:56 +01:00
David Remer
d4ea49d09a Move OrderStatusChangeTrigger into own namespace
[MAILPOET-5661]
2023-11-06 12:57:56 +01:00
David Remer
261098cc41 Add ratings enabled value to context
[PREMIUM-249]
2023-10-31 10:20:17 +01:00
David Remer
9fe87e8910 Add wcReviewRatingsEnabled
[PREMIUM-249]
2023-10-31 10:20:17 +01:00
David Remer
787e4d32b2 Return parent product for variations
[MAILPOET-5553]
2023-10-02 14:24:42 +02:00
David Remer
978ca03189 Add wcGetProduct method
[MAiLPOET-5553]
2023-10-02 14:24:42 +02:00
David Remer
5ef146cc2b Add BuysFromACategory Trigger backend
[MAILPOET-5517]
2023-09-25 07:11:43 -07:00
David Remer
a7f66d9812 Add BuysAProduct trigger backend
[MAILPOET-5516]
2023-09-25 07:11:43 -07:00
David Remer
ff78c0907d Add AbandonedCart trigger
[MAILPOET-5576]
2023-09-13 14:58:48 +02:00
Jan Jakes
c09410af94 Include parent category IDs in customer order fields
[MAILPOET-5377]
2023-08-14 16:41:29 +02:00
Jan Jakes
6414cc832c Include parent category IDs in order category field
[MAILPOET-5377]
2023-08-14 16:41:29 +02:00
Jan Jakes
8e640acaf1 Fix is-first-order for guest customers
[MAILPOET-5459]
2023-08-14 13:59:38 +02:00
David Remer
c71d2cb97f Add wc_get_order_status_name
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
c03a3becc4 Use WooCommerce abstraction from automations instead of MP 2023-07-03 12:44:07 +02:00
Jan Jakes
245c433650 Make TermOptionsBuilder a universal service
[MAILPOET-5169]
2023-06-19 11:06:23 +02:00