"Post Affiliate Pro" extension module

Contrib type: 
Module
Status: 
Complete and working
Moderation: 
Awaiting moderation

Downloads

Latest version: 
6.x.1.0
Compatibility: 
Ubercart 2.x

This (uc_post_affiliate_pro) is a module providing affiliate functionality for Ubercart and Post Affiliate Pro application (http://www.qualityunit.com/postaffiliatepro/#drupal).

Read more about this module here.

Do you have questions about this module? Visit FAQ or send us request.

For who is this module?
---------------------------------
- for merchants (e-shop owners) who use Drupal and Ubercart
- for everybody who wants increase income of his e-shop with affiliates using Post Affiliate Pro (comercial application)

Why?
-----------
- because it’s easy
- it brings low fees and high effect
- brings you clients that you didn’t have before

Author
-----------
peter pokrivcak (http://www.halfpixelstudio.com)
inspired by Viktor Zeman (http://www.qualityunit.com/postaffiliatepro/#drupal)

Features
--------------
This module is for merchants (e-shop owners) who wants to increas their income using external affiliate application.
Merchant needs to have valid account at Post Affiliate Pro or can try 'demo' account, that you get by default after Post affiliate Pro (PAP) module installation.

With this account you can test all available functions of this module.

List of current functions:
---------------------------------
- merchant's connection to PAP server with settings form
- report of orders for merchant
- report of payouts for merchant
- report of payouts for affiliates
- report for affiliates
- available registration for Drupal users as affiliates on PAP server
- default block with short links for affiliates

More information you can get here http://app.halfpixelstudio.com/drupal/ubercart/post-affiliate-pro.


PreviewAttachmentSize
uc_post_affiliate_pro-6.x.1.0.zip47.86 KB
Anticosti's picture
Offline
Joined: 09/11/2010
Juice: 6
Great!

Happy to know that finally someone developed for Post Affiliates Pro Smiling
My question would simply be... How could this new Mod compare to Ubercart Affiliate v2?
http://drupal.org/project/uc_affiliate2

Cheers,

pepo's picture
Offline
Joined: 11/25/2009
Juice: 55
Differences vs Affiliatev2

Hello,

there is differences,
the module works as connector to Post Affiliate Pro (PAP), that is one of best affiliate application in the world, but is commercial (but cheap, I think).

All calculations, measurements, graphs, campaigns, commisions works on PAP server side.

I think it has a large list of features now and it is quality developed and maintained (http://www.qualityunit.com/postaffiliatepro/features/#drupal)

- it has great working click and sale tracking
- a lot of different function plugins
- an excelent campaign manager
- the banner creator for different formats
- rich knowledge base
and more others ...

just try Demo and you will see http://www.qualityunit.com/postaffiliatepro/online-demo/#drupal

P

AttachmentSize
Affiliate-how_it_works.jpg 37.15 KB
post-affiliate-pro.jpg 495.22 KB
pap-settings.jpg 60.01 KB
pap-reports.jpg 143.6 KB
Anticosti's picture
Offline
Joined: 09/11/2010
Juice: 6
Re: "Post Affiliate Pro" extension module

Thank you for the details and screenshots Pepo Smiling

Kind Regards,

ezdev's picture
Offline
Joined: 03/17/2010
Juice: 53
Error In implementing PAP module on hosted PAP application

I signed up for a hosted account with PAP and after installing your module I encountered the following error. The errow was thrown when I clicked on the Affiliate tab within your Ubercart interface. I did have to update the API to PAP version: 4.5.48.1, GPF version: 1.1.10.0 initially due to another error instructing me to upgrade the API.

Fatal error: Uncaught exception 'Gpf_Exception' with message 'Unknown column 'minimumpayout'' in /var/www/html/site-dev/sites/all/modules/uc_post_affiliate_pro/PapApi.class.php:874 Stack trace: #0 /var/www/html/site-dev/sites/all/modules/uc_post_affiliate_pro/PapApi.class.php(953): Gpf_Data_RecordHeader->getIndex('minimumpayout') #1 /var/www/html/site-dev/sites/all/modules/uc_post_affiliate_pro/uc_post_affiliate_pro.module(634): Gpf_Data_Record->get('minimumpayout') #2 /var/www/html/site-dev/includes/menu.inc(348): uc_post_affiliate_pro_affiliates() #3 /var/www/html/site-dev/index.php(18): menu_execute_active_handler() #4 {main} thrown in /var/www/html/site-dev/sites/all/modules/uc_post_affiliate_pro/PapApi.class.php on line 874

To implement your module it seems like I need to add the code shown on PAP support site http://addons.qualityunit.com/integration-methods/_iubercart/ . This code appears to report sales to the PAP system. The link you provided (http://www.qualityunit.com/postaffiliatepro/#drupal no longer appears to be working.

Any assistance you can provide would be most appreciated.

pepo's picture
Offline
Joined: 11/25/2009
Juice: 55
Error In implementing PAP module on hosted PAP application

Hello

It seems to be changed PAP api file (PapApi.class.php) in meantime.
I wil release new version in next days

Peter

pepo's picture
Offline
Joined: 11/25/2009
Juice: 55
New version for PAP 4.5.48.

Hello friends

here is release for PAP verions 4.5.48.2

enjoy

p

AttachmentSize
uc_post_affiliate_pro.4.5.48.zip 47.97 KB
juan_valderrabano's picture
Offline
Joined: 09/27/2009
Juice: 10
compatible with Affiliate2

Hello,
I wonder if it is compatible or incompatible with affiliate2
Or if you have to have something in mind.

Thank you very much.

pepo's picture
Offline
Joined: 11/25/2009
Juice: 55
compatible with Affiliate2

Hello,
there is not any relation to affiliate2 module.

Affilaite2 is standalone module for affilate management.
My module uses external affiliate application Post Affiliate Pro and Drupal is showing data form it.

Pepo

millo's picture
Offline
Joined: 01/11/2011
Juice: 5
error in installation

right after installing the module, I get the following lines:
Warning: Call-time pass-by-reference has been deprecated in /.../shared/sites/all/modules/uc_post_affiliate_pro/uc_post_affiliate_pro.module on line 877
Warning: Call-time pass-by-reference has been deprecated in /.../shared/sites/all/modules/uc_post_affiliate_pro/uc_post_affiliate_pro.module on line 1025
Warning: Call-time pass-by-reference has been deprecated in /.../shared/sites/all/modules/uc_post_affiliate_pro/uc_post_affiliate_pro.module on line 1036
Warning: Call-time pass-by-reference has been deprecated in /.../shared/sites/all/modules/uc_post_affiliate_pro/uc_post_affiliate_pro.module on line 1040

then I went to admin/store/post_affiliate_pro/settings, and left it with all the sdefault values , to check the demo

clicking on the other 3 tabs (reports, report_payout, affiliates) broke it, giving those same waring msg and:

Fatal error: Uncaught exception 'Gpf_Api_IncompatibleVersionException' with message 'Version of API not corresponds to the Application version. Please download latest version of API.' in /home/.../shared/sites/all/modules/uc_post_affiliate_pro/PapApi.class.php:3347 Stack trace: #0 /home/.../shared/sites/all/modules/uc_post_affiliate_pro/PapApi.class.php(3271): Gpf_Api_Session->checkApiVersion(Object(Gpf_Rpc_Form)) #1 /home/.../shared/sites/all/modules/uc_post_affiliate_pro/uc_post_affiliate_pro.module(781): Gpf_Api_Session->login('merchant@exampl...', 'demo') #2 /home/.../shared/sites/all/modules/uc_post_affiliate_pro/uc_post_affiliate_pro.module(349): uc_post_affiliate_pro_getSession() #3 /home/.../acquia-drupal-1.2.27/includes/menu.inc(348): uc_post_affiliate_pro_reports() #4 /home/... in /home/.../shared/sites/all/modules/uc_post_affiliate_pro/PapApi.class.php on line 3347

can you help ?

pepo's picture
Offline
Joined: 11/25/2009
Juice: 55
errors

Hello

please check out installation process, if you did all needed:
http://drupal.org/project/uc_post_affiliate_pro or http://app.halfpixelstudio.com/drupal/ubercart/documentation-post-affili...

Then you must compare version of your PAP installation (software application) and API class (PapApi.class.php) in your drupal module.
Both must be updated for last and same version if possible.

After this try if 'demo' account works for you. If so, problem can be with your access to PAP or in PAP version.

Peter

pepo's picture
Offline
Joined: 11/25/2009
Juice: 55
errors

Hello

please check out installation process, if you did all needed:
http://drupal.org/project/uc_post_affiliate_pro or http://app.halfpixelstudio.com/drupal/ubercart/documentation-post-affili...

Then you must compare version of your PAP installation (software application) and API class (PapApi.class.php) in your drupal module.
Both must be updated for last and same version if possible.

After this try if 'demo' account works for you. If so, problem can be with your access to PAP or in PAP version.

Peter

millo's picture
Offline
Joined: 01/11/2011
Juice: 5
it works

Hi
Thanks for the quick reply
After cleaning everything, I downloaded and install this version uc_post_affiliate_pro-6.x-1.0.tar.gz
then, downloaded the newest version of the PapApi.class.php (PAP version: 4.5.52.6)
from the link in your installation guide
and it works
Smiling

still showing warning messages : Warning: Call-time pass-by-reference has been deprecated ...

avior's picture
Offline
Joined: 01/24/2011
Juice: 3
Warning: Call-time pass-by-reference has been deprecated

solution for Warning: Call-time pass-by-reference has been deprecated
see here a solution
http://drupal.org/node/1032140

pepo's picture
Offline
Joined: 11/25/2009
Juice: 55
new version 6.X 1.2 launched

Hello

there is new version to download with some warning fixes available

enjoy!

Peter

http://drupal.org/project/uc_post_affiliate_pro

Resonanz's picture
Offline
Joined: 01/27/2011
Juice: 13
Errors

Hi - followed all of this as above - have version 4.5.52.8 of PAp and also 4.5.52.8 PapApi.class.php. Not sure if related but in the Post Affiliate setting page in Drupal it says version 4.5.0.0. When i run cron get same error as below too. Any ideas?

Fatal error: Uncaught exception 'Gpf_Data_RecordSetNoRowException' with message ''Row correspondsApi does not exist' in /home/mindmoti/public_html/sites/all/modules/uc_post_affiliate_pro/PapApi.class.php:1445 Stack trace: #0 /home/mindmoti/public_html/sites/all/modules/uc_post_affiliate_pro/PapApi.class.php(2037): Gpf_Data_IndexedRecordSet->getRecord('correspondsApi') #1 /home/mindmoti/public_html/sites/all/modules/uc_post_affiliate_pro/DrupalPapApi.class.php(52): Gpf_Rpc_Form->getFieldValue('correspondsApi') #2 /home/mindmoti/public_html/sites/all/modules/uc_post_affiliate_pro/PapApi.class.php(3286): Drupal_Gpf_Api_Session->checkApiVersion(Object(Gpf_Rpc_Form)) #3 /home/mindmoti/public_html/sites/all/modules/uc_post_affiliate_pro/uc_post_affiliate_pro.module(832): Gpf_Api_Session->login('xxxxx...', 'xxxxxxxx') #4 /home/mindmoti/public_html/sites/all/modules/uc_post_affiliate_pro/uc_post_affiliate_pro.module(366): uc_post_affiliate_pro_getSession() #5 [internal function]: uc_post_affiliate_pro_reports() #6 /home in /home/mindmoti/public_html/sites/all/modules/uc_post_affiliate_pro/PapApi.class.php on line 1445

pepo's picture
Offline
Joined: 11/25/2009
Juice: 55
hello, did you get this error

hello,

did you get this error by 'demo' account or your privat account?

try 'demo' accont after you install or reset your settings,

if 'demo' works - it must be problem of your access data or version problem,
so you need to update PAP installtiona nd API class to last version

let me know

Peter

Resonanz's picture
Offline
Joined: 01/27/2011
Juice: 13
Re: hello, did you get this error

Thanks Peter - I did try with demo and new account and I have updated to the latest versions of PAp and the PAPApi and none work. Any other ideas - the folks at PAP won't help because it is a HalfPixel and after paying the cash i wanted this to work.

pepo's picture
Offline
Joined: 11/25/2009
Juice: 55
hello send me private message

hello

send me private message with some more info - acces data if possible, screenshots or similar
and I can check it

Peter

Resonanz's picture
Offline
Joined: 01/27/2011
Juice: 13
Product ID [model]

I can not get the relevant [model] number from any order to come up in the script on checkout page so that it applies campaign by product ID.
Source code on checkout completetion page for a dummy order refferred by afiliate link as follows:

var sale = PostAffTracker.createSale();
sale.setTotalCost('US$0.06');
sale.setOrderID('3587');
sale.setProductID('[model]');
PostAffTracker.register();

It picks up everything else as you can see above but just not the model number - anyone know why? I have items itemised on my PayPal checkout so that PayPal records the item number too.

ezdev's picture
Offline
Joined: 03/17/2010
Juice: 53
model nuber issue - post affiliate pro module

Are you trying to reference the product id or the Model number? The original code referenced the order_product_id (see below) but that created a problem when I tried to specifiy which product was affected by a particular affiliate campaign. To solve the problem, I changed the reference to model. It has worked ever since. It sounds like you are trying to reference the item by product Id which is generated within ubercart . The model number is the number you define when you create a product.

Let me know if this helps at all....

here is a part of what I told Peter at the time..

I changed the referenced variable in your pap module as follows

line 331 // $return .= "sale". $i .".setProductID('". $sale->order_product_id."');\n";
correction $return .= "sale". $i .".setProductID('". $sale->model."');\n";

pepo's picture
Offline
Joined: 11/25/2009
Juice: 55
product ID vs. model

hello

I was long time thinking about that question - what is better to use for this field $return .= "sale". $i .".setProductID();

SKU / model code is required but not unique, so I used product_id for this purpose in module

but as you wrote you can easy change it as you wish

Peter

Resonanz's picture
Offline
Joined: 01/27/2011
Juice: 13
Re: model nuber issue - post affiliate pro module

I am trying to reference the SKU but it got me thinking - we have over 300 products - there is only 2 or 3 products that I want to track commissions seperately for. This means I would have to set the products IDs for almost every single item in one campaign and then 2 or 3 products in another. We add products regularly and this would be a real pain to keep updating. Is there an easier way to do this instead by excluding product IDs or even some way of integrating with UberCart directly to the product list?

drale's picture
Offline
Joined: 03/16/2011
Juice: 27
Drupal 7 port

Version for Ubercart 7 D7 soon?