Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Adding advanced variables into subscription button of WP eStore
- This topic has 11 replies, 3 voices, and was last updated 8 years, 11 months ago by wzp.
-
AuthorPosts
-
December 30, 2015 at 8:27 am #12410adamhptMember
Hi, Im wanting to create a subscription button, Ive already watched the tutorials and looked through the settings but been unable to find an area to add advanced variables. I have created a paypal button of paypal buttons site and theres a section at the bottom that you can add advanced variables into.
Is this feature missing from eStore as I need it to add an instruction to communicate with a different site to send it instructions to email out a subscription code.
Thanks
December 30, 2015 at 11:40 pm #72164adminKeymasterThere is no option to add advanced variable in the button. You can tell eStore to forward the IPN notification to another script if you need to communicate with a different site after a sale.
Go to the following interface to enable this option:
WP eStore Settings -> 3rd Party Integration -> POST IPN to a 3rd Party Application
December 31, 2015 at 7:50 pm #72165adamhptMemberHi thanks for the reply,
Whats the difference between an IPN and adding an advanced variable.
December 31, 2015 at 11:06 pm #72166wzpModeratorAn IPN (Instant Payment Notification) is the method by which PayPal communicates with eStore. “Advanced Variables” are simply additional pieces of information; besides the “standard ones,” that can be sent with the IPN.
By enabling “POST IPN to a 3rd Party Application” you are able to pass along your additional variables to the 3rd party, after eStore receives the IPN from PayPal. You’d just be specifying them in eStore, instead of PayPal. Just add them to the 3rd party IPN URL.
January 1, 2016 at 11:26 am #72167adamhptMemberHi thanks for the reply,
I imagine I paste the code in the
“post IPN to a 3rd party application”
Another issue Ill have with this is that I dont want this to happen with every transaction only certain subscriptions Ill be creating.
Just so I have a better understanding, will using the IPN to the 3rd party direct where the money goes to instead of my paypal account or does it communicate in a different way depending on how the 3rd party is set up(if that makes sense)
Im finding it quite confusing the aim of the 3rd party software is that they set up a subscription on my site that gives them access to online training packages through the software on another site that is supposed to send them their account details once they’ve signed up.
Id appreciate a reply and happy new year!
January 1, 2016 at 1:55 pm #72168wzpModerator- Customers use eStore, to select their purchases.
- Payment is collected by PayPal.
- PayPal sends an IPN back to eStore, that indicates the success or failure of the payment collection.
- After eStore does its own post payment processing, it uses 3rd Party Integration to relay the IPN to your external application.
…I dont want this to happen with every transaction only certain subscriptions Ill be creating.
In your particular case, you’ve indicated that some kind of decision logic is required; after eStore receives the IPN from PayPal.
The following eStore addon sends post IPN emails, based on the products purchased:
https://www.tipsandtricks-hq.com/ecommerce/wp-estore-post-payment-actions-addon-1691
Some coding is required, but you could probably modify it to forward the IPN based on the products purchased. Would that work for you?
January 2, 2016 at 12:01 pm #72169adamhptMemberThanks for the reply,
Id imagine testing this with a 3rd party application wont work correctly in sandbox mode?
Ive got the post payments addon but its for sending emails after someone has made a purchase? For me I dont see how this can help as Im wanting to set up my subscriptions as previously mentioned but also set up separate individual items such as e books that dont send an IPN to a 3rd party.
Im contacting the 3rd party application(ptdistinction) as the package code from their end isnt being sent. But I dont know if thats to do with eStore or them thats the issue.
January 2, 2016 at 2:46 pm #72170wzpModeratorId imagine testing this with a 3rd party application wont work correctly in sandbox mode?
Sandbox mode is only intended to test one thing; the interaction between eStore and PayPal. It is not intended as a “pass through” test.
Ive got the post payments addon but its for sending emails after someone has made a purchase? For me I dont see how this can help as Im wanting to set up my subscriptions as previously mentioned but also set up separate individual items such as e books that dont send an IPN to a 3rd party.
You have assigned Product ID numbers to the subscriptions? Then the same logic will work. Also, I did qualify my previous response with…
Some coding is required, but you could probably modify it to forward the IPN based on the products purchased.
Do you have PHP coding experience?
January 3, 2016 at 9:54 am #72171adamhptMemberOk that makes sense about sandbox mode thank you.
With the post payments addon is it for manually sending an extra email to a specific customer that has purchased a specific product?
Im wanting to keep it automated and still don’t fully understand how I can use this to sell separate products without posting the ipn to a 3rd party application. Because I have put the 3rd party URL in the POST IPN to a 3rd party application setting, in the eStore setitngs so wouldn’t this apply to every item subscription and none subscriptions?
I have some C# coding experience but no php.
January 3, 2016 at 1:51 pm #72172wzpModeratorI have some C# coding experience but no php.
Then you are better equipped to understand what needs to be done, than most
Because I have put the 3rd party URL in the POST IPN to a 3rd party application setting, in the eStore setitngs so wouldn’t this apply to every item subscription and none subscriptions?
The default action is the 3rd party integration IPN URL will be called for every purchase, in which eStore receives an IPN from the (PayPal) payment gateway. Which means everything in your eStore that is associated with a valid Product ID number will be processed.
With the post payments addon is it for manually sending an extra email to a specific customer that has purchased a specific product?
The default action of the addon is to send “an extra email” to designated persons, depending on the Product ID that was purchased. For what you want to do; you need to modify the PHP code so that, if a particular product ID is processed, then a particular 3rd party IPN URL is invoked.
January 3, 2016 at 5:23 pm #72173adamhptMemberI understand the 3rd party URL in the POST IPN now but how can I make it so it doesn’t apply to every Product ID I use, is there not an additional setting in eStore. If there isn’t it would be convenient if they added this in.
January 3, 2016 at 6:09 pm #72174wzpModeratorYou must do some programming modifications to the WP eStore Post Payment Actions Addon. Specifically, you must modify it so that instead of sending an email, it sends an IPN to a 3rd party application. That is why I asked, if you have any PHP programming experience.
Your options are to either make the changes yourself (or hire someone); or use our custom coding service.
-
AuthorPosts
- You must be logged in to reply to this topic.