- This topic has 3 replies, 2 voices, and was last updated 11 years, 8 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Integrating coupons with Post Affiliate Pro software
Tagged: Post Affilate Pro integration
Hello,
I need to integrate my wp estore with post affiliate pro.
I have received the following instructions from PAP:
In order to make this work, you have to use the same coupons in your payment processor (or e-shop) as in your Post Affiliate Pro 4 (PAP4). Basically, you should generate coupons in PAP4 and then import these coupons into your payment processor or generate coupons in your payment processor and then import them into PAP4 – do whatever is easier for you. (I have done this already)
Then you need to edit the sale tracking code that is fired in your thank you page and add this line of code
in the javascript sale tracking code: sale.setCoupon(‘Coupon_Code’);
in the php API sale tracking code: $sale->setCouponCode(‘Coupon_Code’);
Instead of ‘CouponCode’ you should use the variable that holds the coupon code in your payment processor. Provider/creator of your payment processor should know the names of all the variables used in that payment processor. You can find the particular variable also in the payment processor’s manual (user guide).
Can you please tell me what the variable is that holds the coupon code in wp-estore? I need to be sure that the code is correct.
Thank you,
Amanda
Hi Amanda, can you please share what code you have used to integrate post affiliate pro with eStore?
Hello,
The only integration that I have done, according the the PAP documentation is found on this following page:
[http://addons.qualityunit.com/integration-methods/_iwpestore/]
Thanks,
Amanda
Thank you for sharing the doc. I can’t see any reference to the “sale” object/variable (you shared the example in your first post) in this documentation. I don’t think the example coupon tracking code you shared will actually work with the way they are doing the integration. The discount coupon code is available in the eStore plugin’s custom field value but I can’t see how to pass it using this documentation:
[http://addons.qualityunit.com/integration-methods/_iwpestore/]