–Hidden comment

Use attributes in format region_from and region_to= to change the languages showing in language switcher.
Available regions are:
europe_from europe_to
asia_from asia_to
mideast_from mideast_to
america_from america_to

Example:
europe_from=0 europe_to=22 will put all languages (ordered in language switcher settings) from 1 to 21 to Europe region:
asia_from=22 asia_to=25 will put all languages from 23 to 24 (so only 2) into Asia region.

  • Integraties
  • Interspire Shopping Cart(speciaal voor Google Checkout)

Interspire Shopping Cart(speciaal voor Google Checkout)

Een functierijke winkelwagensoftware die alles bevat wat u nodig hebt om uw online winkel te starten, uit te voeren en te promoten.

Deze integratiemethode helpt u Post Affiliate Pro te integreren met Interspire Shopping Cart 6.0+ in het geval dat klanten na betaling met Google Checkout niet worden geretourneerd op de Interspire-bedankpagina.

Waar is dit script voor?

Deze instelling is gemaakt om producten te volgen die zijn besteld in InterspireShopping Cart en betaald met Google Checkout. Wat dit script doet, is dat het elk afzonderlijk besteld product als een afzonderlijke verkoop naar PAP4 of een hele winkelwagen als een eenmalige verkoop plaatst. Voor verkooptracking wordt PAP API-tracking gebruikt.

Veld bezoekerId toevoegen aan ProductAddToCart-sjabloon

Bewerk bestand /templates/__master/Snippets/ProductAddToCart.html
(als u het in een eigen sjabloon hebt gewijzigd, staat het in de map: /sjablonen/[gebruikte sjabloon]/Snippets/)

Voeg deze rij toe aan het formulier:

<input value="" name="product-private-data" type="hidden" id="pap_dx8vc2s5">

na rij:

<input type="hidden" name="currency_id" value="" />

en voeg na het einde van de formuliertag “” toe:

<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>

Onderstaande code toont het hele ProductAddToCart.htmlbestand na wijzigingen:
%%GLOBAL_AddToCartButtonControlScript%%
<form method="post" action="%%GLOBAL_CartLink%%" onsubmit="return check_add_to_cart(this, %%GLOBAL_ProductOptionRequired%%)"  enctype="multipart/form-data">
	<input type="hidden" name="action" value="add" />
	<input type="hidden" name="product_id" value="%%GLOBAL_ProductId%%" />
	<input type="hidden" name="variation_id" class="CartVariationId" value="" />
	<input type="hidden" name="currency_id" value="" />
	<input value="" name="product-private-data" type="hidden" id="pap_dx8vc2s5">
	<div class="ProductDetailsGrid ProductAddToCart">
		%%SNIPPET_ProductFieldsList%%
		<div class="ProductOptionList">
			%%SNIPPET_VariationList%%
		</div>
		%%SNIPPET_EventDate%%
		<div class="DetailRow" style="display: %%GLOBAL_DisplayAdd%%">
			<div class="Label QuantityInput" style="display: %%GLOBAL_DisplayAddQty%%">%%LNG_QuantityFull%%:</div>
			<div class="Value AddCartButton">
				<span class="FloatLeft" style="display: %%GLOBAL_DisplayAddQty%%;">
					%%GLOBAL_AddToCartQty%%
				</span>
				<div class="BulkDiscount">
					%%GLOBAL_AddToCartButtonOptimizerScriptTag%%
						<input type="image" src="%%GLOBAL_IMG_PATH%%/%%GLOBAL_SiteColor%%/AddCartButton.gif" alt="Interspire Shopping Cart(speciaal voor Google Checkout)"/>
					%%GLOBAL_AddToCartButtonOptimizerNoScriptTag%%
					<div class="BulkDiscountLink" style="display: %%GLOBAL_HideBulkDiscountLink%%;">
						<a href="#" onclick="$.iModal({data: $('#ProductDetailsBulkDiscountThickBox').html(), width: 600}); return false;">
							%%LNG_BulkDiscountLink%%
						</a>
					</div>
				</div>
			</div>
		</div>
	</div>
</form>

<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>

<div class="OutOfStockMessage">
	%%SNIPPET_SideAddItemSoldOut%%
</div>

%%GLOBAL_ProductBulkDiscountThickBox%%

<script type="text/javascript">
lang.OptionMessage = "%%GLOBAL_OptionMessage%%";
lang.VariationSoldOutMessage = "%%LNG_VariationSoldOutMessage%%";
lang.InvalidQuantity = "%%LNG_InvalidQuantity%%";
lang.EnterRequiredField = "%%LNG_EnterRequiredField%%";
lang.InvalidFileTypeJS = "%%LNG_InvalidFileTypeJS%%";
var ShowAddToCartQtyBox = "%%GLOBAL_ShowAddToCartQtyBox%%";
</script>
%%GLOBAL_EventDateJavascript%%

Bewerk alle sjabloonbestanden waar wordt gebruikt toevoegen aan winkelwagen link. Voeg kenmerk id=”affCookieLinkId toe aan tag <a> in <div class=”ProductActionAdd”>.

En voeg toe aan de trackingcode voor klikken:

PostAffTracker.writeCookieToLink('affCookieLinkId', 'product-private-data');

na regel:

PostAffTracker.track();

Onderstaande code laat zien dat na wijzigingen:

<div class="ProductActionAdd" style="display:%%GLOBAL_HideActionAdd%%;">
		<a href="%%GLOBAL_ProductURL%%" id="affCookieLinkId">%%GLOBAL_ProductAddText%%</a>
</div>

Lijst met bestanden die u moet bewerken in map/sjablonen/__master/Snippets/:
  • BrandProductsItem.html
  • CategoryProductsItem.html
  • HomeFeaturedProductsItem.html
  • HomeNewProductsItem.html
  • HomeSaleProductsItem.html
  • ProductVendorsOtherProductsItem.html
  • SearchResultProductGrid.html
  • SideCategoryNewProducts.html
  • SideCategoryPopularProducts.html
  • SideCategoryTopSellers.html
  • SideNewProducts.html
  • SideRecentlyViewedProducts.html
  • SideTopSellers.html
  • SideTopSellersFirst.html
  • TagProductsItem.html
  • VendorFeaturedItemsItem.html
  • VendorProductsItem.html

Edit file class.cart.api.php

Bewerk bestand /includes/classes/class.cart.api.php.

Zoek lijn:

public function AddItem

en voeg aan het einde van parameters nieuwe parameter $productPrivateData=null toe.

Het zal er als volgt uitzien:

public function AddItem($productId, $quantity=1, $variationDetails=null, $configurableOptions=array(), $cartItemId=null, $options=array(), $parentId=null, $reorder=false, $productPrivateData=null)

Zoek vervolgens naar winkelwagenProductarray (regel 1319):

    $cartProduct = array(
            'product_id' => $productId,
            'variation_id' => $variation,
            'options' => $variationOptions,
            'quantity' => $quantity,
            'product_name' => $product['prodname'],
            'product_code' => $productCode,
            'product_price' => $productPrice,
            'original_price' => $originalPrice,
            'default_currency' => $defaultCurrency['currencyid'],
            'customer_group' => $customerGroup,
        );

voeg daar toe:

product_private_data' => $productPrivateData

het zal eruit zien als:

$cartProduct = array(
            'product_id' => $productId,
            'variation_id' => $variation,
            'options' => $variationOptions,
            'quantity' => $quantity,
            'product_name' => $product['prodname'],
            'product_code' => $productCode,
            'product_price' => $productPrice,
            'original_price' => $originalPrice,
            'default_currency' => $defaultCurrency['currencyid'],
            'customer_group' => $customerGroup,
            'product_private_data' => $productPrivateData
        );

Bewerk bestand class.cart.php

Bewerk bestand /includes/classes/class.cart.php.

Zoek lijn:

$cartItemId = $this->api->AddItem($product_id, $qty, $variation, $configurableFields, null, $options, null, false);

verander het als:

$cartItemId = $this->api->AddItem($product_id, $qty, $variation, $configurableFields, null, $options, null, false, $productPrivateData);

En voeg dit ervoor toe:

  $productPrivateData = '';
            if(isset($_REQUEST['product-private-data'])) {
                $productPrivateData = $_REQUEST['product-private-data'];
            }

Het zorgt voor wijzigingen:

                        ...
                        ...
				$options['EventName'] = $eventName;
			}

			$productPrivateData = '';
			if(isset($_REQUEST['product-private-data'])) {
				$productPrivateData = $_REQUEST['product-private-data'];
			}

			// Actually add the product to the cart
			$cartItemId = $this->api->AddItem($product_id, $qty, $variation, $configurableFields, null, $options, null, false, $productPrivateData);
			$this->newCartItem = $cartItemId;

			if($cartItemId === false) {
                        ...
                        ...

Verkoop-trackingcode toevoegen aan bestand class.handler.php in googlecheckout-methode

Bewerk bestand /modules/checkout/googlecheckout/class.handler.php

Zoek deze code rond regel 925:

	if (!$completed) {
			$GLOBALS['ISC_CLASS_LOG']->LogSystemError($this->logtype, sprintf(GetLang('GoogleCheckoutCantCompleteOrder'), isc_html_escape($pendingToken), isc_html_escape(var_export($completed, true))));
			return;
		}

voeg de volgende code direct hieronder toe:

		include 'PapApi.class.php';
		$saleTracker = new Pap_Api_SaleTracker('URL_TO_PostAffiliatePro/scripts/sale.php');
		$prod_count = '1'; // Product Counter

		foreach($cartContent[$vendorId][0] as $cartItemId => $product) {
		    $productid = $product['data']['productid'];
		    $productPrivateData = $product['product_private_data'];

		    $price = $product['quantity'] * $product['product_price'];

		    if (strlen($productPrivateData) == 40) {
			  $accountId = substr($productPrivateData, 0, 8);
			  $visitorId = substr($productPrivateData, 8, 32);
		    } else {
			  $visitorId = $productPrivateData;
			  $accountId = 'default1';
		    }

		    $saleTracker->setAccountId($accountId);
		    $saleTracker->setCookieValue($visitorId);

		    $sale = $saleTracker->createSale();
		    $sale->setTotalCost($price);
		    $sale->setOrderID($order['orderid'] . "($prod_count)");
		    $sale->setProductID($productid);
		    $saleTracker->register();
		    $prod_count++;
		}

Deze trackingmethode maakt gebruik van PAP API. Daarom moet u uw daadwerkelijke PapApi.class.phpbestand in de map /modules/checkout/googlecheckout/ hebben.

(U kunt het downloaden van uw verkoperspaneel > start > tools > integratie > api-integratie > PAP API downloaden).
Terug naar Integraties GRATIS account aanmaken
Wilt u uw partnersoftware nog verder verbeteren? Bekijk de ShopSite-integratie voor Post Affiliate Pro.

ShopSite

De tekst gaat over de beschikbaarheid van de Post Affiliate Pro-partner, die verschillende integraties biedt voor kleine en middelgrote bedrijven. De tekst bevat instructies voor de navigatie naar de bedankpagina-code, trackingcodes en kliktracking. Het aanmelden voor een gratis account wordt ook vermeld, samen met de vertrouwde reputatie van Post Affiliate Pro. Verdere details worden gegeven over de integratie van Post Affiliate Pro met verschillende winkelwagens, waaronder ShopSite, Volusion, InSales, en Shopify.

Wilt u uw partnersoftware nog verder verbeteren? Bekijk de 2Checkout INS-integratie voor Post Affiliate Pro.

2Checkout INS integratie

Het artikel biedt instructies voor het integreren van 2Checkout met Post Affiliate Pro voor online betalingen. Het vereist de plug-in "2Checkout" en trackingcookiwaarde (visitorId) in het HTML-verkoopformulier. Het artikel legt ook uit hoe u 2Kassa-instellingen in het leveranciersgebied kunt configureren en de kliktrackingcode moet integreren om alles te laten werken. Terugkerende commissies kunnen ook worden gebruikt als de functie is geactiveerd in Post Affiliate Pro. Het artikel biedt ook verwante bronnen voor betalingsverwerking.

Wilt u uw partnersoftware nog verder verbeteren? Bekijk de Instamojo-integratie voor Post Affiliate Pro.

Instamojo

De tekst gaat over het integreren van de betalingsgateway en online winkel Instamojo en Post Affiliate Pro. Om dit te bereiken, moet je een API-sleutel en verificatietoken krijgen, de trackingplug-in inschakelen en verkoop-trackingcode toevoegen aan de bedankpagina. Instamojo wordt beschreven als een populaire betalingsgateway en e-commerceplatform in India. Er zijn geen instelkosten of onderhoudskosten. Er is ook een stappenplan beschikbaar om de integratie uit te voeren.

Wilt u uw partnersoftware nog verder verbeteren? Bekijk de SamCart-integratie voor Post Affiliate Pro.

SamCart

De tekst gaat over het toevoegen van een SamCart-integratie aan Post Affiliate Pro om reguliere en terugkerende betalingen te kunnen volgen. Dit omvat het maken van een aangepast veld, het toevoegen van een trackingcode, het maken van een webhook en het activeren van de plug-in in PAP. Er wordt uitgelegd hoe gebruikers het aangepaste veld moeten maken en de trackingcode moeten toevoegen. Vervolgens wordt beschreven hoe de integratie moet worden gemaakt en de regels moeten worden ingesteld. De tekst eindigt met de vermelding van het gratis aanmelden, de algemene voorwaarden en het privacybeleid.

Onze website maakt gebruik van cookies. Door verder te gaan, gaan we uit van uw toestemming om cookies te plaatsen zoals beschreven in onze privacy- en cookiebeleid.

×

Plan een één-op-één gesprek en ontdek hoe Post Affiliate Pro uw bedrijf ten goede kan komen.

We zijn beschikbaar op meerdere data

Plan een gesprek