Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BrianHenryIE/1d04ada11ac11d1dad409a8f172ecfc2 to your computer and use it in GitHub Desktop.
Save BrianHenryIE/1d04ada11ac11d1dad409a8f172ecfc2 to your computer and use it in GitHub Desktop.
diff --git a/3.0/automation-recipes/triggers/IW_OrderCreation_Trigger.class.php b/3.0/automation-recipes/triggers/IW_OrderCreation_Trigger.class.php
index ebc1110..a00e105 100644
--- a/3.0/automation-recipes/triggers/IW_OrderCreation_Trigger.class.php
+++ b/3.0/automation-recipes/triggers/IW_OrderCreation_Trigger.class.php
@@ -60,7 +60,7 @@ class IW_OrderCreation_Trigger extends IW_Automation_Trigger {
if(!is_admin() && empty($cookie)) {
$wc_order = new WC_Order($order_id);
- $this->user_email = $wc_order->get_billing_email();
+ $this->user_email = $wc_order->billing_email;
$this->identify_user();
update_post_meta( $order_id, 'iwar_saved_cookie', $this->user_cookie);
diff --git a/modules/subscriptions2.php b/modules/subscriptions2.php
index 50bd000..1c01371 100644
--- a/modules/subscriptions2.php
+++ b/modules/subscriptions2.php
@@ -452,7 +452,7 @@ function ia_woocommerce_order_items_table($order) {
function ia_woocommerce_email_table($order) {
- $subs = get_post_meta( $order->get_id(), 'ia_subscriptions', true );
+ $subs = get_post_meta( $order->id, 'ia_subscriptions', true );
if(!empty($subs)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment