Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Troubleshooting › Integration Wp Affiliate / Wishlist member not (completely) working
- This topic has 10 replies, 2 voices, and was last updated 10 years, 8 months ago by dj_cholapin.
-
AuthorPosts
-
March 7, 2014 at 2:51 pm #9926dj_cholapinMember
Hi,
I recently set up a “0$ trial membership” for one of my product, using wishlist member. It didn’t worked, and I figured out that the code responsable for it, was the WP Affiliate code. I am actually using this methode to integrate WP Affiliate for my paypal buttons : http://www.tipsandtricks-hq.com/wordpress-affiliate/plain-paypal-button-and-affiliate-plugin-integration-168 (Option 2), and it works well with every kind of paypal buttons, and wishlist. But with a “0$ trial subscripcion” button, here is the problem : Datas that the buyers purshased, are not passed to wishlist member. So the client is not recognized as a client.
The button looks like that :
<form action=”https://www.paypal.com/cgi-bin/webscr” method=”post”>
<input type=”hidden” name=”cmd” value=”_s-xclick” /> <input type=”hidden” name=”hosted_button_id” value=”XXXXXXXXXXX” />
<input class=”alignnone” title=”Paiement Par Carte ou Paypal” type=”image” name=”submit” src=”http://www.XXX.com/wp-content/uploads/2012/02/carte.png” width=”142″ heigh”113″ />
<input name=”notify_url” type=”hidden” value=”http://www.XXX.com/wp-content/plugins/wp-affiliate-platform/api/ipn_handler.php” />
<input name=”custom” type=”hidden” value=”<?php echo $_COOKIE; ?>” />
<script type=”text/javascript” src=”http://www.objectifmonetiser.com/?wlm_th=field:custom”></script></form>
What is different from the other buttons, is that wishlist requires us to add the “<script type=”text/javascript” src=”http://www.objectifmonetiser.com/?wlm_th=field:custom”></script>” line at the end of the script, to support the “0$ trial subscripcion”. But what it happens, is the 2 lines from WP Affiliate : <input name=”notify_url” type=”hidden” value=”http://www.XXX.com/wp-content/plugins/wp-affiliate-platform/api/ipn_handler.php” />
<input name=”custom” type=”hidden” value=”<?php echo $_COOKIE; ?>” />, are avoiding paypal to notify Wishlist member about the new client…
Basically it works without the code, and adding these two lines of code will avoing wishlist to know that there is a new client :
<input name=”notify_url” type=”hidden” value=”http://www.XXX.com/wp-content/plugins/wp-affiliate-platform/api/ipn_handler.php” />
<input name=”custom” type=”hidden” value=”<?php echo $_COOKIE; ?>” />
I also tried this method : http://www.tipsandtricks-hq.com/wordpress-affiliate/wishlist-members-plugin-and-wp-affiliate-plugin-integration-723, but I don’t know why, the shortcode is not recognized, it just send [wp_aff_custom_args] literally, and still the problem with wishlist is the same.
Again, integration works fine with all the other buttons, just for that particular case. So what did I missed or how to integrate WP Affiliate properly, to make these buttons work ?
Thanks in advance for your help !
March 8, 2014 at 7:28 am #61371adminKeymasterThe preferred method of integrating with WishList Members is the following so lets try to get that working:
What version of the affiliate plugin are you using?
March 8, 2014 at 10:15 pm #61372dj_cholapinMemberHi there,
Thanks for your feedback. As mentionned, I also tried that method, and problem is the same as it is with the other method. (Also the reason why I didn’t adopt this method, is because the shortcode is not recognized, the affiliate ID is not displayed. The data sent is value=”[wp_aff_custom_args]”, instead of value=”affiliate ID”. Shortcode won’t be traduced by the affiliate ID, so sale is registered to the affiliate.
Regards
March 8, 2014 at 11:10 pm #61373adminKeymasterI understand. I needed to know your affiliate plugin’s version. Please reply to that question (I asked that in my previous post).
Do the following anyway:
https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins
Now, check this shortcode to see if that is working (you can add this shortcode on a test page to check if it is working):
[wp_aff_custom_args]
March 10, 2014 at 8:04 pm #61374dj_cholapinMemberOk thanks for the feedback ! So I did the update, I had the 5.5.3, and the updated version is the 5.7.8.
Two things :
1/ The shortcode now seems to display well, or I guess this is what the shortcode is supposed to send : [http://screencast.com/t/PTEIbtEHE]
2/ It doesn’t work either, but it works a LITTLE better : [http://screencast.com/t/RxIdnHw0w] (Video of the whole process).
With the php code, data is not passed at all, and user is not recognized. Now, the user IS recognized by wishlist member as a buyer (when I enter the email at the end of the process, I can register). So the only problem left, is that paypal is not redirecting me where I should be redirected. The page I should see at the end of the process is this one: [http://screencast.com/t/d3eY6o1VW8WM]
So with this update, it’s BETTER, as the buyer is now recognized as a buyer by wishlist member, so datas are passed correctly. The only problem left seems to be the redirection, in fact you can see in the video, that the payment process take an usual long time to proceed. (About 10 / 15 sec).
(And do you have a trick so I can keep the updated version, but also know what changes I did in the 5.5.3 version ?)
Thanks !
(I’m not sure if I will be able to keep it, I had some custom modifications on the other and I’m not sure how to reproduce them.. or is there some solution to compare the 2 scripts and adapt the custom modifications ?)
March 11, 2014 at 3:44 am #61375adminKeymasterEverything in the affiliate plugin’s side seem to be working correctly. That redirection stuff is not controlled by the affiliate plugin. The affiliate plugin simply tracks the sale when it gets the notification after the sale. The redirection is something you set in the PayPal button.
Custom modification is not something we can keep track of or help in the support forum unfortunately. The best option is to re-apply your changes to the new version.
March 11, 2014 at 1:30 pm #61376dj_cholapinMemberHi there,
Thanks for your answer ! I understand that the redirection is controlled by paypal.
The facts are, everything works perfectly WITHOUT the WP Affiliate code. The redirection is done perfectly, the wishlist process is done good, and the paypal settings are corrects.
The redirection is NOT done correctly, ONLY when I had the WP Affiliate code. So that code causes the information not to be passed correctly (I think it conflicts with Wishlist, as it use the same “notify URL” process). Everything in the affiliate’s side seems to be ok I agree, but that side, causes other sides not to be working (Using the shortcode is better because now wishlist recognize the client, but still something had to be wrong).
(The “enter your email..” page at the end of the video, you only see it when using the WP Affiliate code tho)
And again, that conflict only exists with a 0$ trial subscription button, everything works fine with every other kind of payments. This is the weirdest.
Did you have this situation tested on your side, using wishlist member and a 0$ trial subscription button with the WP Affiliate plugin, and having it working correctly ?
Regards
March 12, 2014 at 1:50 am #61377adminKeymasterA $0 trial shouldn’t make any difference.
Are you saying that if you use a $0 trial subscription without the [wp_aff_custom_args] shortcode in the custom field. It behaves differently with your wishlist PayPal button integration?
The [wp_aff_custom_args] shortcode only adds couple of custom field value to the “custom” field of the button. So I can’t see that can make any difference.
March 13, 2014 at 12:08 pm #61378dj_cholapinMemberYes, it has a different behaviour if I insert the shortcode in my code, or not. I made a video, first without the shortcode, and the 2nd part with the shortcode : [http://screencast.com/t/dcfvDlkZiU] (When I was using the PHP code, it wasn’t working at all. Now at least I’m happy the customer is recognized with the shortcode. But still the problem is this extra step)
On that video you can see the extra step, meaning that the redirection set in my paypal settings, is not working well.
And I agree a 0$ trial shouldn’t make any difference, but the button code is slightly different, as wishlist requires to add an extra line : “<script type=”text/javascript” src=”http://www.website.com/?wlm_th=field:custom”>”, to support the 0$ trial subsripcion. I don’t know if WP Affiliate conflicts with that, because again, it works perfectly with all my other buttons.
So my questions is if this is some native problem and nothing can be done ? (Did you have this situation tested on your side, using wishlist member and a 0$ trial subscription button with the WP Affiliate plugin, and having it working correctly ?), or if the problem is due to some mistake made by me, something I am doing wrong and can be corrected ?
I didn’t found any other information about that particular case here on tipsandtricks, so I wonder if this was a situation covered by WP Affiliate as I understand it has been made to be fully integrated.
Thank you very much for the support !
March 14, 2014 at 2:36 am #61379adminKeymasterI haven’t tried the 0$ trial subscription test because I didn’t think that would make a difference. Now it looks like they have a little weird system for $0 trial. They seem to be using that custom field for the $0 trial subscription (the same custom field the affiliate plugin uses… not sure what can be done about that).
March 18, 2014 at 5:46 pm #61380dj_cholapinMemberHi there,
Ok thanks for your answer. So I guess I could just leave it that way, at least now the client is recognized, thanks for the help about the shortcode. Could be a good thing to add on the FAQ or the sale page, as it’s mentionned that it’s fully integrated with wishlist, I lost my sleep trying to find the solution that wasn’t there
Many thanks for your help !
-
AuthorPosts
- You must be logged in to reply to this topic.