Created
October 5, 2017 22:42
-
-
Save BrianHenryIE/1d04ada11ac11d1dad409a8f172ecfc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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