frankyw
Forum Replies Created
-
Forum: Reviews
In reply to: [Evidence - Social Proof & FOMO Notifications] PHP Errors@jarrodevidence downgraded my review to 1* due to the complete lack of support from Evidence.
Feb 18: 17 days of zero response, product remains unusable.
- This reply was modified 3 years, 9 months ago by frankyw.
Forum: Reviews
In reply to: [Evidence - Social Proof & FOMO Notifications] PHP Errors@jarrodevidence gotta say the Evidence support leaves a lot to be desired, 2+ weeks without any feedback is not acceptable.
Jan 26: Open support ticket related to webhook data not being captured properly.
Jan 27: Reply from support asking what the website is we need help with.
Jan 27: Respond to support with clarification.
Feb 1: Follow-up due to no response.
Feb 1: Support response saying issue has been escalated to Tier 2.
Feb 10 (Today): Radio silence after 9 days, product is still non-functional, and we have removed code from our site.Forum: Reviews
In reply to: [Evidence - Social Proof & FOMO Notifications] PHP ErrorsHi @jarrodevidence,
Thanks for the update, I had in the meantime simply added the tracking code manually to my website as a workaround.
I am hoping my outstanding support ticket related to Woocommerce webhook data is resolved soon, will be happy to update my review once everything is working correctly ??
The first function (and associated filter) creates a user if one does not exist. It basically renders the checkbox on the checkout to create an account irrelevant, and always creates an account. You can ignore this if you are going to rely on the checkout form checkbox, although we do not want to allow any guest checkouts.
The second function attaches an order to a user with the same email address, so if someone checks out without logging in (e.g. Apple Pay) then it will be attached to their existing account.
Hope this helps.
Here you go guys, no need to change the core code. Agree this is a stupid issue and this should be configurable in Woocommerce. This code attaches each order to an account, and creates an account if none exists.
Put this in functions.php:
// Create user if one does not exist function tn_checkout_create_acct( $post_data ) { $user = get_user_by( 'email', $post_data['billing_email'] ); if ( $user ) { $post_data['createaccount'] = 0; } else { $post_data['createaccount'] = 1; } return $post_data; } add_filter('woocommerce_checkout_posted_data', 'tn_checkout_create_acct'); // Attach order to existing account if user not logged in function tn_checkout_set_customer_id( $current_user_id ) { if ( !$current_user_id ) { $user = get_user_by('email', $_POST['billing_email']); if ( $user ) { $current_user_id = $user->ID; } } return $current_user_id; } add_filter('woocommerce_checkout_customer_id', 'tn_checkout_set_customer_id');
- This reply was modified 3 years, 10 months ago by frankyw.
Forum: Plugins
In reply to: [Payment Plugins for Stripe WooCommerce] Create Account with Apple PayGreat, thank you very much for your help (even though this turned out to not really be anything to do with your plugin!)
Forum: Plugins
In reply to: [Payment Plugins for Stripe WooCommerce] Create Account with Apple PayHi @mrclayton
Ok good to know, my understanding was the email was fixed to a verified email attached to an Apple ID.
Here is version two, appreciate any feedback you may have.
// Create user if one does not exist function tn_checkout_create_acct( $post_data ) { if ( !is_user_logged_in() ) { $user = get_user_by('email', $post_data['billing_email']); if ( !isset($user) ) { $post_data['createaccount'] = 1; } } return $post_data; } add_filter('woocommerce_checkout_posted_data', 'tn_checkout_create_acct'); // Attach order to existing account if user not logged in function tn_checkout_set_customer_id( $current_user_id ) { if ( !is_user_logged_in() ) { $user = get_user_by('email', $_POST['billing_email']); if ( isset($user) ) { $current_user_id = $user->ID; } } return $current_user_id; } add_filter('woocommerce_checkout_customer_id', 'tn_checkout_set_customer_id');
Forum: Plugins
In reply to: [Payment Plugins for Stripe WooCommerce] Create Account with Apple PayJust in case anyone else is interested in accomplishing this, this was my solution. Thanks again @mrclayton.
add_filter('woocommerce_checkout_posted_data', function($post_data){ // check if not already logged in if ( !is_user_logged_in() ) { // if payment method is mobile wallet if (isset($post_data) && in_array($post_data['payment_method'], array('stripe_applepay', 'stripe_googlepay'))) { //Check if user exists $user = get_user_by('email', $post_data['billing_email']); if($user){ // user found, log them in wp_set_current_user($user->ID); wp_set_auth_cookie($user->ID, true); } else { // no matching user, create account $post_data['createaccount'] = 1; } } } return $post_data; });
Forum: Plugins
In reply to: [Payment Plugins for Stripe WooCommerce] Create Account with Apple PayOk thank you, I will take a look at that. Cheers.
Forum: Plugins
In reply to: [Payment Plugins for Stripe WooCommerce] Create Account with Apple PayThank you @mrclayton, that is helpful to understand how it could work.
Is there a way to programmatically check if the user is using Apple Pay or GPay?
Obviously using the code snippet you posted as-is would throw an error if an account already exists, so would need some checking to see if a user already exists. In addition, our existing box-checking code also throws an error if the user uses Apple Pay/GPay from the checkout page, so we have removed that.
Where I am going with this is that I would like to connect mobile wallet checkouts to existing accounts, without them having to specifically log in (which defeats the purpose of using a low friction checkout method.
Forum: Plugins
In reply to: [Payment Plugins for Stripe WooCommerce] Create Account with Apple PayAhh that is a good thought, that does seem to be it after asking the customer.
Would you have any idea as to how to enable this to work with your plugin?
We currently have the following in the functions.php file:
// Check create account box on checkout add_filter('woocommerce_create_account_default_checked' , function ($checked){ return true; });
Theme compatibility issue was resolved by support, thank you.
Forum: Plugins
In reply to: [Advanced Local Pickup for WooCommerce] Customize Table columnHi @zorem
I added the instructions to the location, under “Pickup Location, Edit”. I guess because instructions are location specific.
The issue with using the pickup instructions in settings “Additional content on processing email in case of local pickup orders” is that a) This text appears ABOVE the title saying “Pickup Instructions” and b) it is sent on all emails, so is not location specific.
The same issue applies to editing the Pickup email itself – the text appears above Pickup Instructions heading, and is sent on all emails.