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

XtCommerce

Bevásárlókosár rendszer.

Az XtCommerce-szel való integráció a checkout_success.php fájl módosításával történik.

Sablon szerkesztése

Keresse meg és nyissa meg a checkout_success.php fájlt.

Integráció

Írja be a következő kódot:

//--------------------------------------------------------------------------
 // Post Affiliate Pro code
 // The code below will get the order_id and total value of recent order
 // from the database and displays invisible image that registers the sale
 // for affiliate (if some affiliate referred this visitor)
 //--------------------------------------------------------------------------
   $sql = "select orders_id from ".TABLE_ORDERS." where customers_id='".$_SESSION['customer_id']."' order by orders_id desc limit 1";
   $pap_orders_query = xtc_db_query($sql);
   $pap_orders = xtc_db_fetch_array($pap_orders_query);
   $pap_order_id = $pap_orders['orders_id'];

   // get total amount of order
   $sql = "select value from ".TABLE_ORDERS_TOTAL.
          " where orders_id='".(int)$pap_order_id."'";
   $pap_orders_total_query = xtc_db_query($sql);
   $pap_orders_total = xtc_db_fetch_array($pap_orders_total_query);
   $pap_total_value = $pap_orders_total['value'];

   // draw sale tracking code to register sale
   if($pap_total_value != "" && $pap_order_id != "")
   {
      $smarty->assign('pap_sale_tracking','<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>'."
         <script type="text/javascript">
        PostAffTracker.setAccountId('Account_ID');var sale = PostAffTracker.createSale();
         sale.setTotalCost('$pap_total_value');
         sale.setOrderID('$pap_order_id');
         PostAffTracker.register();
         </script>");
   }
 //--------------------------------------------------------------------------
 // END of Post Affiliate Pro code
 //------------------------------------------------------------------

közvetlenül a sor előtt:

if (DOWNLOAD_ENABLED == 'true')

Sablon szerkesztése

Keresse meg és nyissa meg a /templates/xtc4/module/checkout_success.html fájlt.

Integráció

Írja be a következő kódot:

<!-- START of Post Affiliate Pro code -->
 {$pap_sale_tracking}
 <!-- END of Post Affiliate Pro code -->

közvetlenül a sor előtt:

 {if $downloads_content neq '}
Vissza az integrációkhoz Hozzon létre fiókot INGYEN

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