Amazon Pay V3.2.0

@compatible modified eCommerce Shopsoftware V1.06 SP2 (c) 2009-2017 Alkim Media & patworx multimedia GmbH
Dieses Dokument ist durch Urheberrecht geschützt und darf ohne ausdrückliche Erlaubnis weder kopiert noch vervielfältigt oder Dritten zugänglich gemacht werden!



Alkim Media * Inhaberin: Thekla Alkim * Perleberger Straße 62b * 16866 Kyritz * www.alkim.de * info@alkim.de

Kurze Erläuterungen:

NEW FILES:



NEW DIRS:



CHANGED FILES:



Wichtiger Hinweis:Top

INSTALLATION:

1. Die Inhalte aus new_files und new_dirs in den Shoproot kopieren.
2. Datenkbankerweiterungen durchführen
Keine manuellen Änderungen an der Datenbank notwendig
3. changed_files (falls vorhanden) kopieren, oder bei nicht standard-version folgende änderungen durchführen. Dabei ist zu beachten, dass grüner Text hinzugefügt und roter Text entfernt wird!admin/includes/application_bottom.phpTop
ca. Zeile 18
  if (STORE_PAGE_PARSE_TIME == 'true') {
    if (!is_object($logger)) $logger = new logger;
    echo $logger->timer_stop(DISPLAY_PAGE_PARSE_TIME);
  }
# BOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH
if(AMZ_CAPTURE_MODE=='after_shipping' && MODULE_PAYMENT_AM_APA_STATUS == 'True'){
?>
    <iframe style="width:1px; height:1px; visibility:hidden;" src="<?php echo xtc_href_link('amz_configuration.php', 'ajax=1&action=shippingCapture', ($request_type?$request_type:'NONSSL')); ?>"></iframe>
    <?php
}
# EOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH
?>
admin/orders.phpTop
ca. Zeile 602
        </tr>
      </table>
      <!-- EOC PAYMENT BLOCK -->

<?php
# BOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH
        require_once('../AmazonLoginAndPay/.config.inc.php');
        echo AlkimAmazonHandler::getAdminSkeleton($_GET['oID']);
# EOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH
?>

      <!-- BOC ORDER BLOCK -->
      <div class="heading"><?php echo TEXT_ORDER; ?></div>
      <table cellspacing="0" cellpadding="2" class="table">
        <tr class="dataTableHeadingRow">
checkout_process.phpTop
ca. Zeile 28

   Released under the GNU General Public License
   ---------------------------------------------------------------------------------------*/

if(!isset($_GET["amz"])){
include ('includes/application_top.php');

}
// include needed functions
require_once (DIR_FS_INC.'xtc_calculate_tax.inc.php');
require_once (DIR_FS_INC.'xtc_address_label.inc.php');
require_once (DIR_FS_INC.'changedatain.inc.php');


ca. Zeile 124

  xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}

// load the selected shipping module
require (DIR_WS_CLASSES.'shipping.php');
require_once (DIR_WS_CLASSES.'shipping.php');
$shipping_modules = new shipping($_SESSION['shipping']);

//--- SHOPSTAT -------------------------//
//require (DIR_WS_CLASSES.'order.php');


ca. Zeile 136


// load the before_process function from the payment modules
$payment_modules->before_process();

require (DIR_WS_CLASSES.'order_total.php');
require_once (DIR_WS_CLASSES.'order_total.php');
$order_total_modules = new order_total();
$order_totals = $order_total_modules->process();

// check if tmp order id exists


ca. Zeile 237

                           'customers_ip' => $customers_ip,
                           'language' => $_SESSION['language'],
                           'comments' => $order->info['comments']
                           );  

  # BOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH
  if(isset($_GET["amz"]) && $_GET["amz"] == '1' && MODULE_PAYMENT_AM_APA_STATUS == 'True'){
      $sql_data_array["orders_status"] = AMZ_STATUS_NONAUTHORIZED;
      $order->info['order_status'] = AMZ_STATUS_NONAUTHORIZED;
  }
  if(isset($_GET["amz"]) && $_GET["amz"] == '1' && MODULE_PAYMENT_AM_APA_STATUS == 'True' && AMZ_SET_SELLER_ORDER_ID == 'True' && isset($_SESSION["amzReservedOrdersId"])){
        $insert_id = $_SESSION["amzReservedOrdersId"];
        xtc_db_perform(TABLE_ORDERS, $sql_data_array, 'update', ' orders_id = '.(int)$insert_id);
        unset($_SESSION["amzReservedOrdersId"]);
  }else{
  xtc_db_perform(TABLE_ORDERS, $sql_data_array);
  $insert_id = xtc_db_insert_id();
  }
  # EOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH
  $_SESSION['tmp_oID'] = $insert_id;

  for ($i = 0, $n = sizeof($order_totals); $i < $n; $i ++) {
    $sql_data_array = array ('orders_id' => $insert_id,
includes/application_bottom.phpTop
ca. Zeile 43
  include(DIR_FS_CATALOG.'api/easymarketing/conversion_tracker.php');
}
## easymarketing - conversion tracking

# BOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH
    $isAmazonJsRequired = true;
    if(MODULE_PAYMENT_AM_APA_LPA_MODE == 'pay'){
        if(
                strpos($PHP_SELF,'checkout_amazon')===false
                    &&
                strpos($PHP_SELF,'shopping_cart')===false
                    &&
                strpos($PHP_SELF,'product_info')===false
                    &&
                strpos($PHP_SELF,'checkout_payment')===false
           ){
                $isAmazonJsRequired = false;
           }

    }
    if($isAmazonJsRequired){
        include_once('AmazonLoginAndPay/js/main.php');
    }
# EOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH

// end of page
echo '</body>';
echo '</html>';
includes/classes/order.phpTop
ca. Zeile 412
                                                AND ab.address_book_id = '" . (isset($_SESSION['billto']) ? $_SESSION['billto'] : $_SESSION['sendto']) . "'
                                           ");

      $billing_address = xtc_db_fetch_array($billing_address_query);

    # BOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH
    if (isset($_SESSION['AMZ_COUNTRY_ID']) && isset($_SESSION['AMZ_ZONE_ID'])) {
        $tax_address = array('entry_country_id' => $_SESSION['AMZ_COUNTRY_ID'], 'entry_zone_id' => $_SESSION['AMZ_ZONE_ID']);
    } else {
      $tax_address_query = xtc_db_query("SELECT ab.entry_country_id, ab.entry_zone_id
                                           FROM " . TABLE_ADDRESS_BOOK . " ab
                                      LEFT JOIN " . TABLE_ZONES . " z ON (ab.entry_zone_id = z.zone_id)
                                          WHERE ab.customers_id = '" . $_SESSION['customer_id'] . "'
                                            AND ab.address_book_id = '" . ($this->content_type == 'virtual' ? $_SESSION['billto'] : $_SESSION['sendto']) . "'
                                       ");
      $tax_address = xtc_db_fetch_array($tax_address_query);

    }
    # EOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH
      $this->info = array('order_status' => DEFAULT_ORDERS_STATUS_ID,
                          'currency' => $_SESSION['currency'],
                          'currency_value' => $xtPrice->currencies[$_SESSION['currency']]['value'],
                          'payment_method' => isset($_SESSION['payment']) ? $_SESSION['payment'] : '',


ca. Zeile 505

                                                'iso_code_3' => $billing_address['countries_iso_code_3']
                                               ),
                             'country_id' => $billing_address['entry_country_id'],
                             'format_id' => $billing_address['address_format_id']);

        # BOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH
        if(!isset($_SESSION['billto'])&&$_SESSION['payment']=='am_apa'){
            foreach($this->billing AS $k=>$v){
                if(is_array($v)){
                    $this->billing[$k] = array();
                }else{
                    $this->billing[$k] = '';
                }
            }
        }
        # EOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH
      $index = 0;
      // BOF - web28 - 2010-05-06 - PayPal API Modul / Paypal Express Modul
      $this->tax_discount = array ();
      // EOF - web28 - 2010-05-06 - PayPal API Modul / Paypal Express Modul
includes/classes/order_total.phpTop
ca. Zeile 223
            $modules = $this->modules;
            sort($modules); // cgoenner: we need to include the ot_coupon & ot_gv BEFORE ot_tax
            reset($modules);
            while (list (, $value) = each($modules)) {
                include (DIR_WS_LANGUAGES.$_SESSION['language'].'/modules/order_total/'.$value);
                include (DIR_WS_MODULES.'order_total/'.$value);
                include_once (DIR_WS_LANGUAGES.$_SESSION['language'].'/modules/order_total/'.$value);
                include_once (DIR_WS_MODULES.'order_total/'.$value);

                $class = substr($value, 0, strrpos($value, '.'));
                $GLOBALS[$class] = new $class ();
            }
includes/classes/shipping.phpTop
ca. Zeile 51
            } else {
              $unallowed_zones = array();
            }
            if (in_array($_SESSION['delivery_zone'], $unallowed_zones) == true || count($unallowed_zones) == 0) {
              include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/shipping/' . $include_modules[$i]['file']);
              include(DIR_WS_MODULES . 'shipping/' . $include_modules[$i]['file']);
              include_once(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/shipping/' . $include_modules[$i]['file']);
              include_once(DIR_WS_MODULES . 'shipping/' . $include_modules[$i]['file']);
              $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];
            }
          }
        }
includes/classes/xtcPrice.phpTop
ca. Zeile 91
        $country_id = -1;
        if (isset($_SESSION['country']) && !isset($_SESSION['customer_id'])) {
          $country_id = $_SESSION['country'];
        }
            # BOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH
            if(!$this->TAX[$zones_data['class']]){
                if (isset($_SESSION['AMZ_COUNTRY_ID']) && isset($_SESSION['AMZ_ZONE_ID'])) {
                    $tax_address = array('entry_country_id' => $_SESSION['AMZ_COUNTRY_ID'], 'entry_zone_id' => $_SESSION['AMZ_ZONE_ID']);
                    $this->TAX[$zones_data['class']]=xtc_get_tax_rate($zones_data['class'],$tax_address['entry_country_id'], $tax_address['entry_zone_id']);
                } else {
        $this->TAX[$zones_data['class']]= xtc_get_tax_rate($zones_data['class'], $country_id);        
                }
            }
            # EOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH


        // EOF VERSANDKOSTEN IM WARENKORB
      }
    }
  }
templates/xtc5/boxes/box_login.htmlTop
ca. Zeile 18
    <tr>
      <td colspan="2"><div class="hr"></div>
        <a href="{$LINK_LOST_PASSWORD}">{#text_password_forgotten#}</a></td>
    </tr>
    {* BOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH *}
    {if $smarty.const.MODULE_PAYMENT_AM_APA_STATUS == 'True' && $smarty.const.MODULE_PAYMENT_AM_APA_LPA_MODE != 'pay'}
        <tr>
            <td colspan="2">
                <div id="amazonLogin" class="amazonLoginWr"></div>
            </td>
        </tr>
    {/if}
    {* WOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH *}
  </table>
  {$FORM_END} </div>
templates/xtc5/javascript/general.js.phpTop
ca. Zeile 13

   // this javascriptfile get includes at the BOTTOM of every template page in shop
   // you can add your template specific js scripts here
?>
<script src="<?php echo 'templates/'.CURRENT_TEMPLATE; ?>/javascript/jquery.js" type="text/javascript"></script>
<?php /*<script src="<?php echo 'templates/'.CURRENT_TEMPLATE; ?>/javascript/jquery.js" type="text/javascript"></script>*/ ?>
<script src="//code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="<?php echo 'templates/'.CURRENT_TEMPLATE; ?>/javascript/thickbox.js" type="text/javascript"></script>

<?php // BOF - web28 - 2010-07-09 - TABS/ACCORDION in product_info ?>
<?php
templates/xtc5/module/checkout_payment_block.htmlTop
ca. Zeile 39
  </tr>
  {/if}
{/foreach}
</table>
{* BOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH *}
    {if $smarty.const.AMZ_SHOW_ON_CHECKOUT_PAYMENT == 'True'}<div style="text-align:left;" id="payWithAmazonDiv"></div>{/if}
{* EOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH *}
templates/xtc5/module/checkout_success.htmlTop
ca. Zeile 11
{*$FORM_ACTION*}
{* EOF - GTB - 2010-09-15 - change Print Button to Form *}
<h1>{#heading_success#}</h1>
<p>{#text_success#}</p>
{capture assign="amazonPayCheckoutSuccessMessage"}{amazonPayCheckoutSuccessMessage}{/capture} 
{if $amazonPayCheckoutSuccessMessage}
  <div class="amz-box-warning">{$amazonPayCheckoutSuccessMessage}</div>
{/if}
<h2>{#title_printorder#}</h2>
<p>{#text_printorder#}<br />
<strong>{#text_thankyou#}</strong></p>
{if $GV_SEND_LINK}
templates/xtc5/module/login.htmlTop
ca. Zeile 33
                  <td>&nbsp;</td>
                  <td colspan="2"><a href="{$LINK_LOST_PASSWORD}">{#text_lost_password#}</a></td>
            </tr>
      </table>
        {* BOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH *}
        {if $smarty.const.MODULE_PAYMENT_AM_APA_STATUS == 'True' && $smarty.const.MODULE_PAYMENT_AM_APA_LPA_MODE != 'pay'}
            <div id="amazonLoginLoginPage" class="amazonLoginWr"></div>
        {/if}
        {* EOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH *}
      {$FORM_END}
</div>
<br />
<div class="highlightbox">
templates/xtc5/module/product_info/product_info_tabs_v1.htmlTop
ca. Zeile 45
            <td style="width:100%; padding-right:5px;">{$ADD_QTY}</td>
            <td>{$ADD_CART_BUTTON}</td>
          </tr>
    </table>
    {buyWithAmazonButton}
    </div>    
</div>

{$FORM_END}
templates/xtc5/module/product_info/product_info_v1.htmlTop
ca. Zeile 45
            <td style="width:100%; padding-right:5px;">{$ADD_QTY}</td>
            <td>{$ADD_CART_BUTTON}</td>
          </tr>
    </table>
    {buyWithAmazonButton}
    </div>
    {if $PRODUCTS_DESCRIPTION !=''}<div>{$PRODUCTS_DESCRIPTION}</div>{/if}
</div>

templates/xtc5/module/product_info/product_info_x_accordion_v1.htmlTop
ca. Zeile 45
            <td style="width:100%; padding-right:5px;">{$ADD_QTY}</td>
            <td>{$ADD_CART_BUTTON}</td>
          </tr>
    </table>
    {buyWithAmazonButton}
    </div>
</div>

{$FORM_END}
templates/xtc5/module/shopping_cart.htmlTop
ca. Zeile 10
{$HIDDEN_OPTIONS}
<p>{$MODULE_order_details}</p>
{if $info_message_1!=''}<div class="errormessage">{$info_message_1}{$min_order}{$info_message_2}{$order_amount}</div>{/if}
<p align="right" style="padding-right:70px;">{if $CONTINUE_LINK}<a href="{$CONTINUE_LINK}">{$BUTTON_CONTINUE_SHOPPING}</a>&nbsp;{/if}{$BUTTON_RELOAD}&nbsp;{if $BUTTON_PAYPAL!=''}{$BUTTON_CHECKOUT}<br />{$BUTTON_PAYPAL}{else}{$BUTTON_CHECKOUT}{/if}</p>
{* BOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH *}
<div style="text-align:right;padding-top:10px;" id="payWithAmazonDiv"></div>
{* EOM Amazon Pay POWERED BY alkim media & patworx multimedia GmbH *}
{$FORM_END}{/if}
{$MODULE_gift_cart}



weitere InfosTop
Bei der Selbstinstallation, insbesondere dann wenn ein XT:Commerce Shop oder Fork bereits modifiziert wurde, ist das Risiko relativ hoch, dass beim Einbau unvorhergesehene Probleme auftreten, die zur Folge haben, dass entweder Teilfunktionen des Shops oder gar der vollständig Shop nicht mehr ordungsgemäß funktioniert. Um diesem Problem weitgehend entgegen zu wirken werden unsere Module in aller Regel in 2 Versionen ausgeliefert, so dass eine unbelassene XTC Installation durch einfaches ersetzen von Dateien mit dem Modul erweitert werden kann und alternativ durch manuelles verändern von existierenden Dateien. Diesen besonderen Service finden man im übrigen nicht generell auch bei anderen Dienstleistern. Als weiteren Service wir zum Kauf eines jeder unsere Module gegen eine geringe Gebühr einen Installationsservice inkl. 14-tägigen email Support an. Wer also auf Nummer sicher gehen möchte, insbesondere wenn nur wenige Kenntnisse oder Erfahrungen hat, ist deshalb gut beraten diesen Service zu nutzen.

Jedem Kunden, der diesen Support mit erworben hat, stehen wir für Support Fragen über unser Kontaktformular zur Verfügung. Aufgrund einer hohen Nachfrage nach unseren Entwicklungen ist es zeitlich bedingt nicht möglich telefonische Auskünfte zu geben.Anfragen darüber werden i.d.R. binnen 24 Std. fachkundig beantwortet.

Sollte ein Modul ohne Support und Installationsservice erworben worden sein, steht Ihnen bei Fragen ebenso unser Helpdesk, jedoch mit eingeschränkten Support Leistungen zur Verfügung. Mangels der dafür erbrachten Vergütung ist ein weiterführender Support nicht möglich und kann nur gegen individuelle Aufwandsvergütung erfolgen.

Wir danken für Ihr Verständnis und wünschen Ihnen Gute Geschäfte!

Ihr Alkim Media Team