### Admin-Bereich ###
Datei admin/shopgate.php erstellen
Inhalt:
<?
require_once ('includes/application_top.php');
include_once DIR_FS_CATALOG.'/shopgate/plugins/gambiogx/admin/shopgate.php';
###
Datei: admin/includes/column_left.php
Zeile: 121
Nach:
if (($_SESSION['customers_status']['customers_status_id'] == '0') && ($admin_access['stats_products_purchased'] == '1')) echo '<li class="leftmenu_body_item"><a class="fav_drag_item" id="BOX_PRODUCTS_PURCHASED" href="' . xtc_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '">' . BOX_PRODUCTS_PURCHASED . '</a></li>';
echo ('</ul>');
Einfügen:
/******** SHOPGATE **********/
include_once DIR_FS_CATALOG.'/shopgate/plugins/gambiogx/admin/includes/column_left.php';
/******** SHOPGATE **********/
###
Datei: admin/includes/application_top.php
Zeile: 272
Nach:
define('FILENAME_GM_JANOLAW','gm_janolaw.php');
Einfügen:
/******** SHOPGATE **********/
define('FILENAME_SHOPGATE', 'shopgate.php');
/******** SHOPGATE **********/
Zeile: 314:
Nach:
//GM_MOD EOF
Einfügen:
/******** SHOPGATE **********/
require_once (DIR_FS_CATALOG . 'shopgate/plugins/gambiogx/includes.php');
/******** SHOPGATE **********/
###
Datei: admin/includes/functions/general.php
Zeile: 1195
Nach:
xtc_db_query("delete from ".TABLE_ORDERS_TOTAL. " where orders_id = '".xtc_db_input($order_id)."'");
Einfügen:
/******** SHOPGATE **********/
xtc_db_query("delete from ".TABLE_SHOPGATE_ORDERS. " where orders_id = '".xtc_db_input($order_id)."'");
/******** SHOPGATE **********/
###
Datei: admin/orders.php
Zeile: 90
Nach:
case 'gm_multi_status':
Einfügen:
include_once DIR_FS_DOCUMENT_ROOT.'/shopgate/plugins/gambiogx/update_order.php';
Zeile: 182
Nach:
if ($order_updated) {
Einfügen:
setShopgateOrderlistStatus($_POST['gm_multi_status'], $gm_status);
Zeile: 273
Nach:
if ($order_updated) {
Einfügen:
include_once DIR_FS_DOCUMENT_ROOT.'/shopgate/plugins/gambiogx/update_order.php';
setShopgateOrderStatus($oID, $status);
###
Datei lang/german/admin/german.php
Zeiel:174
Nach:
define('BOX_GM_JANOLAW','janolaw AGB Hosting');
Einfügen:
/******* SHOPGATE **********/
include_once DIR_FS_CATALOG.'/shopgate/plugins/gambiogx/lang/german/admin/german.php';
/******* SHOPGATE **********/
###
### QR-Box Initialisieren
###
includes/modules/product_info.php : Zeile 51
nach
else {
Einfügen:
include_once dirname(__FILE__).'/../../shopgate/templates/includes/shopgate_qr_box.php';
if(function_exists("drawShopgateQR")) {
drawShopgateQR($info_smarty, $product);
}
###
### QR-Box anzeigen
###
templates/IHR-TEMPLATE/module/product_info/standard.html
Dort an geeigneter stelle folgende eintragen:
{$SHOPGATE_QR_BOX}
###
### Mobile Header
###
includes/header.php : Zeile 43
nach
<head>
Einfügen:
<?php
include_once dirname(__FILE__).'/../shopgate/templates/includes/shopgate_mobile_redirect.php';
drawShopgateMobilBanner();
?>
####
templates/IHR-TEMPLATE/boxes/box_shopgate.html erstellen
Inhalt:
<div id="menubox_login" class="c_login">
<div id="menubox_login_head" class="c_boxhead">
Mobile Shopping
</div>
<div id="menubox_login_body">
<a href="http://www.shopgate.com">
<img src="http://www.shopgate.com/banner/big_180.png" alt="Shopgate - Eine App. Alle Shops." border="0" height="221" width="180" />
</a>
</div>
</div>
####
templates/IHR-TEMPLATE/source/boxes/shopgate.php erstellen
Inhalt:
<?php
$box_smarty = new smarty;
$box_content='';
$box_smarty->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/');
$box_smarty->caching = 1;
$box_smarty->cache_lifetime=CACHE_LIFETIME;
$box_smarty->cache_modified_check=CACHE_CHECK;
$cache_id = $_SESSION['language'];
$box_content= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_shopgate.html',$cache_id);
if(is_dir(DIR_FS_CATALOG.'StyleEdit/') === false)
$gm_box_pos = 'gm_box_pos_108';
else
$gm_box_pos = $gmBoxesMaster->get_position('extrabox6');
$smarty->assign($gm_box_pos, $box_content);
###
Datei: templates/IHR-TEMPLATE/source/boxes.php
Zeile: 40
Nach: if(gm_display_menubox('login')) include(DIR_WS_BOXES . 'loginbox.php');
Einfügen:
if(gm_display_menubox('shopgate')) include(DIR_WS_BOXES . 'shopgate.php');
################################################
Datenbank:
CREATE TABLE IF NOT EXISTS `orders_shopgate_order` (
`shopgate_order_id` int(11) NOT NULL AUTO_INCREMENT,
`orders_id` int(11) NOT NULL,
`shopgate_order_number` bigint(20) NOT NULL,
`last_response` text NOT NULL,
`modified` datetime DEFAULT NULL,
`created` datetime DEFAULT NULL,
PRIMARY KEY (`shopgate_order_id`)
) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
ALTER TABLE `admin_access` ADD `shopgate` INT( 1 ) NOT NULL DEFAULT 0;
UPDATE `admin_access` SET `shopgate` = 1 WHERE customers_id = 1;
INSERT INTO `gm_boxes` (`box_name`, `position`, `box_status`) VALUES ('shopgate', 'gm_box_pos_108', 1);| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| admin/ | 2013-11-12 21:10 | 29.02 KB | 76129f60960:kunden | dxwrx-rx-r | |
| includes/ | 2013-11-12 21:10 | 3.02 KB | 76129f60960:kunden | dxwrx-rx-r | |
| lang/ | 2013-11-12 21:10 | 3.3 KB | 76129f60960:kunden | dxwrx-rx-r | |
| system/ | 2013-11-12 21:10 | 660 B | 76129f60960:kunden | dxwrx-rx-r | |
| db_install.sql | 2013-11-12 21:09 | 521 B | 76129f60960:kunden | -xw-x----- | |
| default_config.php | 2013-11-12 21:09 | 474 B | 76129f60960:kunden | -xw-x----- | |
| gambiogx.diff | 2013-11-12 21:09 | 10.23 KB | 76129f60960:kunden | -xw-x----- | |
| includes.php | 2013-11-12 21:09 | 390 B | 76129f60960:kunden | -xw-x----- | |
| install.php | 2013-11-12 21:09 | 512 B | 76129f60960:kunden | -xw-x----- | |
| install_1.txt | 2013-11-12 21:09 | 4.97 KB | 76129f60960:kunden | -xw-x----- | |
| install_2.txt | 2013-11-12 21:09 | 3.66 KB | 76129f60960:kunden | -xw-x----- | |
| order_status.php | 2013-11-12 21:09 | 901 B | 76129f60960:kunden | -xw-x----- | |
| update_order.php | 2013-11-12 21:09 | 4.19 KB | 76129f60960:kunden | -xw-x----- | |