–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.

Interspire Shopping Cart

Funkciókban gazdag bevásárlókosár-szoftver, amely mindent tartalmaz, amire szüksége van az online áruház elindításához, futtatásához és népszerűsítéséhez. Ez a Dustin Holdiman által készített integrációs módszer segít a PAP és az Interspire Shopping Cart 5.0+ integrációjában.

Mire való ez a forgatókönyv?

Ez a beállítás az Interspire bevásárlókosárban megrendelt egyes termékek mennyiségének nyomon követésére jött létre. Ez a szkript az, hogy minden megrendelt terméket külön értékesítésként felad a PAP-nak. Ily módon, ha egy felhasználó 3 különböző terméket vásárol, és ezek közül mindegyikből 2-t vásárol, 6 értékesítést regisztrál a PAP, és Ön tudni fogja a megfelelő jutalékot az affiliate fizetendő kifizetéshez.

A PAP beállítása ezzel a szkripttel

Először MINDEN tételhez létre kell hoznia egy kampányt, amelyhez más jutalékot kell alkalmazni. Így például az A termék 10 dollár jutalékot kap, a B termék 12 dollár, a C termék pedig 8 dollárt. Létrehozok 3 kampányt, és minden egyes kampányhoz hozzárendelem a termékazonosítót, amelyet az Interspire állít be. Alapértelmezés szerint ezeket az információkat az isc_products táblában találhatja meg az adatbázisban, és bejelöli a productid cellát. Miután beállította kampányait, már csak annyit kell tennie a PAP-pal a folytatáshoz.

Az Interspire bevásárlókosár beállítása

Módosítania kell a class.order.php fájlt. Ez a szkript az Interspire telepítési könyvtárában található az include/classes/class.order.php fájlban. Görgessen le a fájlban a 178. sor körül. A megjegyzéssel ellátott foreach ciklust keresi. Ez a kód:

// Include the conversion tracking code for affiliates
foreach ($this->pendingData['orders'] as $order) {
  if (strlen(GetConfig('AffiliateConversionTrackingCode')) > 0) {
......
......
}

A kód cseréje (az Interspire bevásárlókosár 5.x verziójára vonatkozik)

Másolja ki a teljes foreach ciklust, és cserélje ki a következő kódra:

//////////////////////////////////////////////////////////////////////////////////////////////////
foreach ($this->pendingData['orders'] as $order) {
            if (strlen(GetConfig('AffiliateConversionTrackingCode')) > 0) {
                $converted_code = GetConfig('AffiliateConversionTrackingCode');
                $converted_code = str_ireplace('%%ORDER_AMOUNT%%', $order['ordsubtotal'], $converted_code);
                $converted_code = str_ireplace('%%ORDER_ID%%', $order['orderid'], $converted_code);

		//retreive customer id for the particular order in order to take use of Lifetime Commissions
		$query_custid = "SELECT ordcustid FROM isc_orders WHERE orderid='".$order['orderid']."'";
		$result_custid = mysql_query($query_custid);
		$custid = mysql_fetch_row($result_custid);
		$customerid = $custid[0];


                $query_proid = "SELECT * FROM isc_order_products WHERE orderorderid='".$order['orderid']."'";
                $result_proid = mysql_query($query_proid);
                $prod_data = '';
                // Setup string to look like PRODUCTID:QUANTITY:PRICE,
                while ($row_proid = mysql_fetch_array($result_proid)) {
                        $prodarr[] = $row_proid['ordprodid'].':'.$row_proid['ordprodqty'].':'.$row_proid['ordprodcost'];
                }
		$java_arr[] = "<script type=\"text/javascript\">
		PostAffTracker.setAccountId('Account_ID');"; // Start javascript array
		$prod_count = '1'; // Product Counter

                // Separate string by ,
                foreach ($prodarr as $value) {
                    // Split apart string by : (PRODUCTID:QUANTITY:PRICE)
                    $prod_info = explode(":", $value);

		// Not needed but here for referance
                    //$converted_code = str_ireplace('%%PRODUCT_ID'.$prod_count.'%%',$prod_info[0], $converted_code);
                    //$converted_code = str_ireplace('%%QUANTITY_ID'.$prod_count.'%%',$prod_info[1], $converted_code);

                    // Create sale code for each product x the quantity ordered
					$quantity = $prod_info[1];
					while ($quantity >= 1){
						$java_string = "
							var sale".$prod_count." = PostAffTracker.createSale();
							sale".$prod_count.".setTotalCost('".$prod_info[2]."');
							sale".$prod_count.".setOrderID('".$order['orderid']."(".$prod_count.")');
							sale".$prod_count.".setProductID('".$prod_info[0]."');
							sale".$prod_count.".setData1('".$customerid."');";

						$java_arr[] = $java_string;

						$img_arr[] = '<img src="https://URL_TO_PostAffiliatePro/scripts/sale.php?TotalCost='.$prod_info[2].'&OrderID='.$order['orderid'].'_'.$prod_count.'&ProductID='.$prod_info[0].'" width="1" height="1">';
						$prod_count++; // Increase Product Counter by 1
						$quantity = $quantity-1;
					}
                }
                // Image Loop - Returns $img as all img src created in foreach loop
                $img = implode("", $img_arr);

				// Finish off javascript code
				$java_arr[] = "
				PostAffTracker.register();
				</script>";

                // Build string from array created in for each loop
				$java = implode("", $java_arr);

                $converted_code = str_ireplace('%%JAVA%%', $java, $converted_code); // Simply Insert %%JAVA%% into affiliate tracking section of interspire
                $converted_code = str_ireplace('%%IMG_CODE%%', $img, $converted_code); // Simply Insert %%IMG_CODE%% into affiliate tracking section of interspire
                $GLOBALS['ConversionCode'] .= $converted_code;
            }
            ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
            // End Edit
        }

Most egyszerűen mentse a fájlt.

A kód cseréje (az Interspire bevásárlókosár 6.x verziójára vonatkozik)

Másolja ki a teljes foreach ciklust, és cserélje ki a következő kódra:

//////////////////////////////////////////////////////////////////////////////////////////////////
foreach ($this->pendingData['orders'] as $order) {
            if (strlen(GetConfig('AffiliateConversionTrackingCode')) > 0) {
                $converted_code = GetConfig('AffiliateConversionTrackingCode');
                $converted_code = str_ireplace('%%ORDER_AMOUNT%%', $order['ordsubtotal'], $converted_code);
                $converted_code = str_ireplace('%%ORDER_ID%%', $order['orderid'], $converted_code);

		//retreive customer id for the particular order in order to take use of Lifetime Commissions
		$query_custid = "SELECT ordcustid FROM ".$GLOBALS['ISC_CFG']["tablePrefix"]."orders WHERE orderid='".$order['orderid']."'";
		$result_custid = mysql_query($query_custid);
		$custid = mysql_fetch_row($result_custid);
		$customerid = $custid[0];

                //check if there was a coupon used and get it's code
                $query_coupon = 'SELECT ordcouponcode FROM '.$GLOBALS['ISC_CFG']['tablePrefix']."order_coupons WHERE ordcouporderid='".$order['orderid']."'";
                $result_coupon = mysql_query($query_coupon);
                try {
                  $couponrow = mysql_fetch_row($result_coupon);
                  $coupon = $couponrow[0];
                }
                catch (Exception $e) {
                    // no coupon found
                    $coupon = '';
                }

                $query_proid = "SELECT * FROM ".$GLOBALS['ISC_CFG']["tablePrefix"]."order_products WHERE orderorderid='".$order['orderid']."'";
                $result_proid = mysql_query($query_proid);
                $prod_data = '';
                // Setup string to look like PRODUCTID:QUANTITY:PRICE,
                while ($row_proid = mysql_fetch_array($result_proid)) {
                        $prodarr[] = $row_proid['ordprodid'].':'.$row_proid['ordprodqty'].':'.$row_proid['base_price'].':'.$this->sumDiscountAndCoupon($row_proid['applied_discounts']);
                }
		$java_arr[] = "<script type=\"text/javascript\">
		PostAffTracker.setAccountId('Account_ID');"; // Start javascript array
		$prod_count = '1'; // Product Counter

                // Separate string by ,
                foreach ($prodarr as $value) {
                    // Split apart string by : (PRODUCTID:QUANTITY:PRICE)
                    $prod_info = explode(":", $value);

		// Not needed but here for referance
                    //$converted_code = str_ireplace('%%PRODUCT_ID'.$prod_count.'%%',$prod_info[0], $converted_code);
                    //$converted_code = str_ireplace('%%QUANTITY_ID'.$prod_count.'%%',$prod_info[1], $converted_code);

                    // Create sale code for each product x the quantity ordered
                                        $totalCost = $prod_info[2]-($prod_info[3]/$prod_info[1]);
					$quantity = $prod_info[1];
					while ($quantity >= 1){
						$java_string = "
							var sale".$prod_count." = PostAffTracker.createSale();
							sale".$prod_count.".setTotalCost('".$totalCost."');
                                                        sale".$prod_count.".setOrderID('".$order['orderid']."(".$prod_count.")');
							sale".$prod_count.".setProductID('".$prod_info[0]."');
							sale".$prod_count.".setData1('".$customerid."');";
						if (!empty($coupon)) $java_string .= "sale".$prod_count.".setCoupon('$coupon');";

						$java_arr[] = $java_string;

						$img_arr[] = '<img src="https://URL_TO_PostAffiliatePro/scripts/sale.php?TotalCost='.$totalCost.'&OrderID='.$order['orderid']."_".$prod_count.'&ProductID='.$prod_info[0].'&Coupon='.$coupon.'" width="1" height="1" />';
						$prod_count++; // Increase Product Counter by 1
						$quantity = $quantity-1;
					}
                }
                // Image Loop - Returns $img as all img src created in foreach loop
                $img = implode("", $img_arr);

				// Finish off javascript code
				$java_arr[] = "
				PostAffTracker.register();
				</script>";

                // Build string from array created in for each loop
				$java = implode("", $java_arr);

                $converted_code = str_ireplace('%%JAVA%%', $java, $converted_code); // Simply Insert %%JAVA%% into affiliate tracking section of interspire
                $converted_code = str_ireplace('%%IMG_CODE%%', $img, $converted_code); // Simply Insert %%IMG_CODE%% into affiliate tracking section of interspire
                $GLOBALS['ConversionCode'] .= $converted_code;
            }
            ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
            // End Edit
        }

Most egyszerűen mentse a fájlt.

Funkciók hozzáadása a kedvezmény kiszámításához (az Interspire bevásárlókosár 6.x verziójára vonatkozik)

Még mindig a class.order.php fájlt szerkeszti. Adja hozzá a következő kódot közvetlenül a sor elé: private function ThanksForYourOrder()

        //////////////////////////////////////////////////PAP integration functions
        //find all occurences of a needle inside a haystack
        private function strposall($haystack, $needle){
            $s=0;
            $i=0;
            while (is_integer($i)){
                $i = strpos($haystack,$needle,$s);
                if (is_integer($i)) {
                    $aStrPos[] = $i;
                    $s = $i+strlen($needle);
                }
            }
            if (isset($aStrPos)) {
                return $aStrPos;
            }
            else {
                return false;
            }
        }

        private function getDiscountFromPosition($discountsString, $position) {
            $substring = substr($discountsString, $position+2);
            return substr($discountsString, $position+2, strpos($substring, ';'));
        }

        private function sumDiscountAndCoupon($discountsString) {
            if (is_null($discountsString) || $discountsString == '' || !strstr($discountsString, 'd:')) {
                return 0;
            }
            $sum = 0;
            foreach ($this->strposall($discountsString, 'd:') as $position) {
                $sum += $this->getDiscountFromPosition($discountsString, $position);
            }
            return $sum;
        }
        /////////////////////////////////////////////////end PAP integration functions

Az Interspire beállítások megadása

Nyissa meg az adminisztrációs panelt az Interspire-ban, lépjen a Beállítások / Partnerbeállítások menüpontra, és illessze be a következő kódot a szövegterületbe:

<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
%%JAVA%%

Vagy ha nem szeretne JavaScriptet használni az APP-nak való jelentéshez, használhatja az IMG SRC címkét úgy, hogy a %%JAVA%% helyére cseréli a %%IMG_CODE%%.

MEGJEGYZÉS: PayPal integrációs bővítmény használata Interspire integrációval.

Nem ajánlott az Interpsire integrációt PayPal integrációval (vagy az Interspire által támogatott másik fizetési processzor integrációjával) együtt használni. Ez kettős nyomon követett tranzakciókhoz vezethet. Ezek elkerülése érdekében be kell állítania az értékesítési csalás elleni védelmet.

Az Interspire maga kezel minden tranzakciót (a fizetési módtól függetlenül minden tranzakciót feldolgoz), ezért Önnek csak ezt az Interspire Integrációt kell használnia. Ha ez az integráció nem megfelelő az Ön számára, próbáljon ki egy másikat.

Bármilyen kérdése / megjegyzése / javaslata van, kérjük, küldjön e-mailt Dustin-nak a dmanz013@gmail.com címre.

Vissza az integrációkhoz Hozzon létre fiókot INGYEN
Szeretné még tovább fejleszteni affiliate szoftverét? Tekintse meg a Post Affiliate Pro SamCart integrációját.

SamCart

The SamCart integration allows for tracking of standard one-time orders and recurring payments. To create custom fields, log into the SamCart dashboard and navigate to Settings > Custom Fields. Add tracking code to the payment pages, create a webhook, and set up rules for tracking purchases and subscription fees. To activate the SamCart plugin in Post Affiliate Pro, navigate to Configuration > Plugin Modules and add the Shop URL. Finally, add the custom field to all products in the SamCart dashboard under the Checkout Design section. ThriveCart is another cart software option for tracking customer information and increasing revenue.

Szeretné még tovább fejleszteni affiliate szoftverét? Tekintse meg a Post Affiliate Pro Lime Light integrációját.

Lime Light

Egyedi igényeket figyelembe véve támogatja a marketingszakemberek befektetésük megtérülését. Az integráció életre szóló jutalékokat és automatikus affiliate-eket is biztosít. Visszaküldéseket is nyomon követ.

Szeretné még tovább fejleszteni affiliate szoftverét? Tekintse meg a PagSeguro (már használt IPN) integrációt a Post Affiliate Pro számára.

PagSeguro (Az IPN már használatban van)

The text provides instructions for adding a payment form to a website using Post Affiliate Pro, discussing various SEO techniques and emphasizing the benefits of using Post Affiliate Pro for tracking website visitor activity. Additionally, the text mentions the company's support, knowledge center, and integrations, as well as providing contact information for sales. The end of the text thanks the reader for recently registering for the Post Affiliate Pro service.

Szeretné még tovább fejleszteni társult szoftverét? Tekintse meg a Zoey integrációját a Post Affiliate Pro számára.

Zoey

The Post Affiliate Pro offers a quick report function that shows important data on affiliated businesses and campaigns. Detailed analysis on views, clicks, CTRs, sales, and commissions can help with decision making and customization of marketing strategies. The Cultures for Health Partner program allows for earning from accommodation and dining services, with important considerations such as campaign rules and payment structure. The website also offers various features, integrations, and support, with information on company details, awards, and customer opinions.

Weboldalunk cookie-kat használ. A folytatással feltételezzük, hogy Ön hozzájárulását adja a cookie-k telepítéséhez, ahogyan azt a mi részletezzük adatvédelmi és cookie-kra vonatkozó szabályzat.

×

Egyeztessen le egy személyes hívást, és fedezze fel, hogy a Post Affiliate Pro milyen előnyökkel járhat vállalkozása számára.

Több időpontban is elérhetőek vagyunk

Hívás lefoglalása