eShop (Módulo WordPress) integration
Um plugin de carrinho de compras acessível para WordPress, repleto de vários recursos.
eShop é um plugin de carrinho de compras acessível para WordPress, repleto de vários recursos. O método de integração é usado para integrar o PayPal na eShop com seu Post Affiliate Pro.
Integração com PayPal (passo 1)
Faça login no seu FTP, navegue até ‘wp-content/plugins/eshop/paypal/’ e edite o arquivo ‘eshop-paypal. class.php‘.
Encontrar linha:
return $echo;
e adicione este código acima dela:
/* Post Affiliate Pro integration snippet */
$echo = str_replace("name=\"notify_url\"","name=\"notify_url\" id=\"pap_ab78y5t4a\"",$echo);
$echo .= '<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">'."PostAffTracker.setAccountId('Account_ID');
PostAffTracker.setAppendValuesToField('&pap_custom=');
PostAffTracker.writeCookieToCustomField('pap_ab78y5t4a');
</script>";
/* /Post Affiliate Pro integration snippet */
Para que tudo funcione, você precisa ativar o plugin do PayPal no painel do comerciante Post Affiliate Pro.
Integração com PayPal (passo 2)
O próximo e último passo é encontrar esta linha no mesmo arquivo:
function validate_ipn() {
Cole este código logo abaixo dele:
/* Post Affiliate Pro integration snippet */
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,
"https://URL_TO_PostAffiliatePro/plugins/PayPal/paypal.php?pap_custom=".$_GET['pap_custom']);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
curl_exec($ch);
/* /Post Affiliate Pro integration snippet */
Não se esqueça de integrar o código de rastreamento de cliques ao seu Word Press.
Overview of Plugins and Features
Discover the limitless potential of Post Affiliate Pro with its powerful plugin system, enabling you to enhance your account with a wide range of features. Learn how to activate features like Action Commissions, Banner Rotator, and Multiple Currencies, and explore integration options through our plugin directory. Visit now to transform your affiliate marketing strategy!
Copy Post Affiliate Pro to your server
Learn to install Post Affiliate Pro on your server effortlessly with our step-by-step video guide using an FTP client.
9. Integrate the affiliate software with your website
Integrate your affiliate software seamlessly with your website for effective tracking of referrals and commissions. Set it up right!