Paz
Forum Replies Created
-
Forum: Plugins
In reply to: [Download Monitor] Deliever Unique Virtual FileGotcha. I’m working on this. Thank you.
Forum: Plugins
In reply to: [Affiliates] Sending Affiliate URL on Welcome Email versus have them log in.Ok. Finally spent some time over this and nailed this out.
Fellow developers here is the code I edited where I registered the shortcode [affilateurl] which was my need and actual support request.
1) FIRST STEP
File: (class-affiliates-notifications.php)
case self::DEFAULT_REGISTRATION_ACTIVE_MESSAGE :$text = __(
‘Username: [username]<br/>
Password: [password]<br/>
[site_login_url]<br/>
[affiliatesUrl]<br/> // ADD THIS SHORTCODE AND IN SECOND STEP REGISTER THIS.
<br/>
Thanks for joining the Affiliate Program.<br/>’,
‘affiliates’ );2) SECOND STEP
File:
class-affiliates-registration.phpLocation:
\affiliates\lib\core//Code by Paz
global $global_user_pass;
// notify new user
self::new_user_notification( $affiliate_user_id, $global_user_pass, affiliates_get_affiliate_url( $url, $affiliate_id ) );
$global_user_pass = “”;
return $output;
}//Code by Paz
global $global_user_pass;
$global_user_pass = $user_pass;
// notify new user
//self::new_user_notification( $user_id, $user_pass );return $user_id;
}public static function new_user_notification( $user_id, $plaintext_pass = ”, $affiliate_id = ” ) {
$user = get_userdata( $user_id );
$blogname = wp_specialchars_decode( get_option( ‘blogname’ ), ENT_QUOTES );
if ( !empty( $plaintext_pass ) ) {
if ( get_option( ‘aff_notify_affiliate_user’, ‘yes’ ) != ‘no’ ) {
$message = sprintf( __( ‘Username: %s’, ‘affiliates’ ), $user->user_login) . “\r\n”;
$message .= sprintf( __( ‘Password: %s’, ‘affiliates’ ), $plaintext_pass ) . “\r\n”;
$message .= wp_login_url() . “\r\n”;
$params = array(
‘user_id’ => $user_id,
‘user’ => $user,
‘username’ => $user->user_login,
‘password’ => $plaintext_pass,
‘site_login_url’ => wp_login_url(),
‘blogname’ => $blogname,
‘affiliatesUrl’ => ‘yoursite’.$affiliate_id //get this from here
);
@wp_mail(
$user->user_email,
apply_filters( ‘affiliates_new_affiliate_user_registration_subject’, sprintf( __( ‘[%s] Your username and password’, ‘affiliates’ ), $blogname ), $params ),
apply_filters( ‘affiliates_new_affiliate_user_registration_message’, $message, $params ),
apply_filters( ‘affiliates_new_affiliate_user_registration_headers’, ”, $params )
);
}
}
}Forum: Plugins
In reply to: [Affiliates] Sending Affiliate URL on Welcome Email versus have them log in.Hi Kento,
Thanks for your response. I completely understand the delay.
I think I have reached a solution but then I realized that I’m using Ninja Forms. What I was able to do is that as soon someone register, I showcase them up with Affiliate link right in front to them without having them worrying on checking on to their email and then log in to retrieve Affiliate Link.
This is what I was successful with:
File:
class-affiliates-registration.phpLocation:
\affiliates\lib\core
My Code:
$output .= apply_filters( ‘affiliates_thanks_sign_up_text’, ‘<p>’ . __( ‘Thanks for signing up!’, ‘affiliates’ ) . ‘</p>’ );
if ( !$is_logged_in ) {
$output .= apply_filters( ‘affiliates_check_confirmation_text’, ‘<p>’ . __( ‘Please check your email for the confirmation link.’, ‘affiliates’ ) . ‘</p>’ );
$output .= apply_filters( ‘affiliates_get_user_affiliate’, ‘<p>’ . ‘<span class=”affiliate-link”>affiliates_get_affiliate_url( $url, $affiliate_id ) . ‘</span>’ .
‘<br/>’ . ‘</p>’ );This actually solved my purpose on getting users Affiliate link right when they sign up but I was using a dev environment, I later realized that this is not supported in Ninja Forms 🙁 as I’m using form success message versus this registration file due to my needs to put data in constant contact platform.
I’m not very sure how I can apply filters to notifications. I tried to use the same code (class-affiliates-notifications.php) but emails are in text and they need some kind of Shortcode to read affiliate URL as requested in the original message. Any help would be great from here. To describe this more precisely, here is what should be ideal and would help me:
File: (class-affiliates-notifications.php)
case self::DEFAULT_REGISTRATION_ACTIVE_MESSAGE :$text = __(
‘Username: [username]<br/>
Password: [password]<br/>
[site_login_url]<br/>
[affiliate_url]<br/> (CAN THIS BE CONNECTED TO READ FILTER OR WE CAN SOMEHOW MAKE IT WORK?)
<br/>
Thanks for joining the Affiliate Program.<br/>’,
‘affiliates’ );Thanks, Paz
Forum: Plugins
In reply to: [Affiliates] Sending Affiliate URL on Welcome Email versus have them log in.Just checking if you have any update for this request.
Forum: Plugins
In reply to: [Affiliates] Affiliates Constant Contact IntegrationOk Cool. Thanks.
Forum: Plugins
In reply to: [Affiliates] Affiliates Constant Contact IntegrationThank you, Kento! Appreciate it. We are using Affiliates, if you want us to use Pro, I can ask the client to purchase a license too.
Forum: Plugins
In reply to: [Affiliates] Sending Affiliate URL on Welcome Email versus have them log in.Just to give heads up on what I have tried so far:
Location:
\affiliates\lib\coreFile:
class-affiliates-notifications.phpcase self::DEFAULT_REGISTRATION_ACTIVE_SUBJECT :
$text = __( ‘site_title Your username and password’, ‘affiliates’ );
break;
case self::DEFAULT_REGISTRATION_ACTIVE_MESSAGE :
$text = __(
‘Username: [username]<br/>
Password: [password]<br/>
[site_login_url]<br/>
[affiliate_url]<br/> //Not working.
<br/>
Thanks for joining the Affiliate Program.<br/>’,
‘affiliates’
);Question: How do [affiliate_url] shortcode would be picked up and generate a URL while sending the welcome email?
Forum: Plugins
In reply to: [Affiliates] Affiliates Constant Contact IntegrationIt worked perfectly. I did purchase Ninja extension for Constant Contact.
Sorry for the confusion. What I meant was instead of using Ninja Forms, I was planning to use Contact Form 7 plugin but now that is not required anymore. Thank you.
Could you also respond here to my other question when you can:
https://ww.wp.xz.cn/support/topic/sending-affiliate-url-on-welcome-email-versus-have-them-log-in/
I’m needing to send affiliate URL in an email or welcome email. The other solution I’m thinking is to generate and make affiliate URL visible with thanks message. Any thoughts?Cheers
Forum: Plugins
In reply to: [Affiliates] Affiliates Constant Contact IntegrationNow, that is a super fast response. Thank you Again for the speedy response! 🙂
I was hoping if I can use a Contact Form integration versus Ninja as it comes with a topped up plugin which takes the lead to CC automatically for me.
Forum: Plugins
In reply to: [Payment Gateway Payeezy for WooCommerce] API/API Secret KeyHello.
We did called Payzee. They were the one who needed to have us use API Key and API secret key. We did tried the transaction with only your Merchant token which did not worked.
Alternatively we had to deactivate your plugin and use another one which supported the API Key and Secret. The plugin we used which is working for us now is Payeezy for Woocommerce, by Pluginsmaker
Though we liked the user interface of your plugin better but we needed to make it work anyhow.
I think you might need to get an update with API/Key/Secret support soon.
Thanks!
Forum: Plugins
In reply to: [Payment Gateway Payeezy for WooCommerce] API/API Secret KeyHow do we add API Key and API secret when we only see the option to add Merchant Token?