kahara
Forum Replies Created
-
@champsupertramp also i think its an issue with my 2 custom fields which i have hooked as below;
add_filter( 'um_template_tags_patterns_hook', 'my_template_tags_patterns', 10, 1 ); function my_template_tags_patterns( $placeholders ) { $placeholders = array( '{company_name}', '{manager_name}', ); return $placeholders; } add_filter( 'um_template_tags_replaces_hook', 'my_template_tags_replaces', 10, 1 ); function my_template_tags_replaces( $replace_placeholders ) { global $wpdb; $company_name = str_replace("um_","",str_replace("-".substr(um_user('role'), strrpos(um_user('role'), "-") + 1),"",um_user('role'))); $added_by = get_user_meta( um_user( 'ID' ) , 'added_by', true ); $module_data = $wpdb->get_row("SELECT display_name FROM wp_users WHERE ID = '$added_by' "); $replace_placeholders = array( strtoupper($company_name), $module_data->display_name, ); return $replace_placeholders; }
When i delete one eg. {manager_name}, the welcome email is being sent once as required, please assist.
Below is the html for the email
<div style="max-width: 500px; padding: 20px; background: #ffffff; border-radius: 5px; margin: auto; font-family: arial,sans-serif; font-size: 20px; color: #666;"> <div style="text-align: center;"><img class="aligncenter" src="https://nidum.io/wp-content/uploads/2021/08/NIDUM-logo-template.png" alt="Welcome to Nidum" width="250" height="61" /></div> <div style="color: #444444; font-weight: bold;"><br /> <div style="text-align: center; font-weight: 600; font-size: 26px; padding: 10px 0; border-bottom: solid 3px #ffff01;">{manager_name}<br />Invited you to<br />{company_name}<br /><br /></div> </div> <div style="padding: 30px 0; font-size: 20px; text-align: center; line-height: 40px;"><span style="display: block;">{manager_name} invited you to join {company_name} in NIDUM. Accept your invite to access their immersive modules.</span></div> <div>?</div> <div style="color: #666666; text-align: center;"><a href="https://localhost:8080/nidum-io/password-reset/"><img class="aligncenter" src="https://nidum.io/wp-content/uploads/2021/10/email-btn.jpg" /></a></div> <br /><br /><br /> <div>Thanks!</div> <div>The Team @ NIDUM</div> </div> <div style="text-align: center; width: 500px; margin: auto; background: #fff; padding: 20px;"><img class="aligncenter" src="https://nidum.io/wp-content/uploads/2021/04/astronaut.png" alt="image.png" /></div> <div style="text-align: center; width: 500px; margin: auto; background: #fff; padding: 20px;"><img class="aligncenter" src="https://nidum.io/wp-content/uploads/2021/04/evolve.png" alt="EVOLVE AND.png" width="443" height="54" /></div> <div> <div style="text-align: center; width: 500px; margin: auto; background: #fff; padding: 20px;"><img class="aligncenter" src="https://nidum.io/wp-content/uploads/2021/04/we-are-nidum-heart.png" alt="image.png" /></div> </div>
I have customised the email, and it has images in the content. I have uploaded the screenshots here,
https://pasteboard.co/2zEkdBHYnY2K.png – first email
https://pasteboard.co/nXbPMbKAqSPh.png – second emailForum: Plugins
In reply to: [WooCommerce M-PESA Payment Gateway] MPesa Payment Issue on checkoutHello mates @huytran00967 and @4testurposeonly , have you managed to solve the above problem yet? if yes kindly assist. Thanks
Forum: Plugins
In reply to: [WooCommerce M-PESA Payment Gateway] MPesa Payment Issue on checkoutI am also experiencing the same error with a warning on the cart page saying:-
Warning: session_start(): Cannot start session when headers already sent in /home/startupscrib/webapps/gripsfilmsrentals/wp-content/plugins/woo-m-pesa-payment-gateway/Woocommerce_mpesa.php on line 122
Forum: Plugins
In reply to: [Read More Login] showing blank page for logged out usersDone