/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/shopgate/plugins/gambiogx/gambiogx.diff (10.23 KB)
diff --git a/admin/images/graphs/.gitignore b/admin/images/graphs/.gitignore
new file mode 100644
index 0000000..9bda909
--- /dev/null
+++ b/admin/images/graphs/.gitignore
@@ -0,0 +1 @@
+/gm_graph.png
diff --git a/admin/images/graphs/gm_graph.png b/admin/images/graphs/gm_graph.png
new file mode 100644
index 0000000..aba6293
Binary files /dev/null and b/admin/images/graphs/gm_graph.png differ
diff --git a/admin/includes/application_top.php b/admin/includes/application_top.php
index 93ace2d..ab74240 100644
--- a/admin/includes/application_top.php
+++ b/admin/includes/application_top.php
@@ -202,6 +202,10 @@ define('FILENAME_XTBOOSTER','xtbooster.php');
define('FILENAME_GM_JANOLAW','gm_janolaw.php');
define('FILENAME_PROPERTIES','properties.php');
+/******** SHOPGATE **********/
+define('FILENAME_SHOPGATE', 'shopgate.php');
+/******** SHOPGATE **********/
+
// define the database table names used in the project
define('TABLE_ADDRESS_BOOK', 'address_book');
define('TABLE_ADDRESS_FORMAT', 'address_format');
diff --git a/admin/includes/column_left.php b/admin/includes/column_left.php
index 9577fcb..c99fb64 100644
--- a/admin/includes/column_left.php
+++ b/admin/includes/column_left.php
@@ -119,6 +119,10 @@
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>');
+/******** SHOPGATE **********/
+include_once DIR_FS_CATALOG.'/shopgate/plugins/gambiogx/admin/includes/column_left.php';
+/******** SHOPGATE **********/
+
echo ('<div class="leftmenu_head" style="background-image:url(images/gm_icons/module.png)">'.BOX_HEADING_XTBOOSTER.'</div>');
echo ('<div class="leftmenu_collapse leftmenu_collapse_opened"> </div>');
echo ('<ul class="leftmenu_box" id="BOX_HEADING_XTBOOSTER">');
diff --git a/admin/includes/configure.php b/admin/includes/configure.php
index c6cac69..222faa7 100644
--- a/admin/includes/configure.php
+++ b/admin/includes/configure.php
@@ -1 +1,64 @@
-empty
+<?php
+/* --------------------------------------------------------------
+
+ XT-Commerce - community made shopping
+ http://www.xt-commerce.com
+
+ (c) 2003 XT-Commerce - community made shopping http://www.xt-commerce.com
+ --------------------------------------------------------------
+ based on:
+ (c) 2000-2001 The Exchange Project (earlier name of osCommerce)
+
+
+
+ (c) 2002-2003 osCommerce (configure.php,v 1.14 2003/02/21); www.oscommerce.com
+
+ Released under the GNU General Public License
+ --------------------------------------------------------------*/
+
+// Define the webserver and path parameters
+// * DIR_FS_* = Filesystem directories (community/physical)
+// * DIR_WS_* = Webserver directories (virtual/URL)
+ define('HTTP_SERVER', '');//'http://localhost'); // eg, http://localhost or - https://localhost should not be empty for productive servers
+ define('HTTP_CATALOG_SERVER', '');//'http://localhost');
+ define('HTTPS_CATALOG_SERVER', '');//'https://localhost');
+ define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
+ define('DIR_FS_DOCUMENT_ROOT', '/home/www/shops/gambiogx2/'); // where the pages are located on the server
+ define('DIR_WS_ADMIN', '/shops/gambiogx2/admin/'); // absolute path required
+ define('DIR_FS_ADMIN', '/home/www/shops/gambiogx2/admin/'); // absolute pate required
+ define('DIR_WS_CATALOG', '/shops/gambiogx2/'); // absolute path required
+ define('DIR_FS_CATALOG', '/home/www/shops/gambiogx2/'); // absolute path required
+ define('DIR_WS_IMAGES', 'images/');
+ define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
+ define('DIR_FS_CATALOG_ORIGINAL_IMAGES', DIR_FS_CATALOG_IMAGES .'product_images/original_images/');
+ define('DIR_FS_CATALOG_THUMBNAIL_IMAGES', DIR_FS_CATALOG_IMAGES .'product_images/thumbnail_images/');
+ define('DIR_FS_CATALOG_INFO_IMAGES', DIR_FS_CATALOG_IMAGES .'product_images/info_images/');
+ define('DIR_FS_CATALOG_POPUP_IMAGES', DIR_FS_CATALOG_IMAGES .'product_images/popup_images/');
+ define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
+ define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
+ define('DIR_WS_CATALOG_ORIGINAL_IMAGES', DIR_WS_CATALOG_IMAGES .'product_images/original_images/');
+ define('DIR_WS_CATALOG_THUMBNAIL_IMAGES', DIR_WS_CATALOG_IMAGES .'product_images/thumbnail_images/');
+ define('DIR_WS_CATALOG_INFO_IMAGES', DIR_WS_CATALOG_IMAGES .'product_images/info_images/');
+ define('DIR_WS_CATALOG_POPUP_IMAGES', DIR_WS_CATALOG_IMAGES .'product_images/popup_images/');
+ define('DIR_WS_CATALOG_GALLERY_IMAGES', DIR_WS_CATALOG_IMAGES .'product_images/gallery_images/');
+ define('DIR_WS_INCLUDES', 'includes/');
+ define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
+ define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
+ define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
+ define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
+ define('DIR_WS_LANGUAGES', DIR_WS_CATALOG. 'lang/');
+ define('DIR_FS_LANGUAGES', DIR_FS_CATALOG. 'lang/');
+ define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
+ define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
+ define('DIR_FS_INC', DIR_FS_CATALOG . 'inc/');
+ define('DIR_WS_FILEMANAGER', DIR_WS_MODULES . 'fckeditor/editor/filemanager/browser/default/');
+
+// define our database connection
+ define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
+ define('DB_SERVER_USERNAME', 'root');
+ define('DB_SERVER_PASSWORD', '56gamma');
+ define('DB_DATABASE', 'shops_gambiogx2');
+ define('USE_PCONNECT', 'false'); // use persisstent connections?
+ define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
+
+?>
diff --git a/admin/orders.php b/admin/orders.php
index f1d8557..bb5ac6d 100644
--- a/admin/orders.php
+++ b/admin/orders.php
@@ -262,6 +262,7 @@ switch ($_GET['action']) {
}
if ($order_updated) {
+ include_once DIR_FS_DOCUMENT_ROOT.'/shopgate/plugins/xtcommerce3/update_order.php';
$messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success');
} else {
$messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning');
@@ -549,7 +550,7 @@ else
</tr></table>
<?php
}
- // Start Sofort�berweisung
+ // Start Sofort�berweisung
if (MODULE_PAYMENT_SOFORTUEBERWEISUNG_DIRECT_STATUS == 'True' ) {
$sofortueberweisung_check_query = xtc_db_query("SELECT sofortueberweisung_transaktions_details FROM " . TABLE_ORDERS . " WHERE orders_id = '" . xtc_db_input($_GET['oID']). "'");
if ($sofortueberweisung_check = xtc_db_fetch_array($sofortueberweisung_check_query)) {
@@ -675,7 +676,7 @@ else
}
}
- // End Sofort�berweisung
+ // End Sofort�berweisung
// begin modification for banktransfer
diff --git a/admin/shopgate.php b/admin/shopgate.php
new file mode 100644
index 0000000..849222c
--- /dev/null
+++ b/admin/shopgate.php
@@ -0,0 +1,23 @@
+<?php
+/* --------------------------------------------------------------
+ specials.php 2009-24-04 gambio
+ Gambio OHG
+ http://www.gambio.de
+ Copyright (c) 2008 Gambio OHG
+ Released under the GNU General Public License (Version 2)
+ [http://www.gnu.org/licenses/gpl-2.0.html]
+ --------------------------------------------------------------
+
+
+ based on:
+ (c) 2000-2001 The Exchange Project (earlier name of osCommerce)
+ (c) 2002-2003 osCommerce(specials.php,v 1.38 2002/05/16); www.oscommerce.com
+ (c) 2003 nextcommerce (specials.php,v 1.9 2003/08/18); www.nextcommerce.org
+ (c) 2003 XT-Commerce - community made shopping http://www.xt-commerce.com ($Id: specials.php 1125 2005-07-28 09:59:44Z novalis $)
+
+ Released under the GNU General Public License
+ --------------------------------------------------------------*/
+
+require_once ('includes/application_top.php');
+
+include_once DIR_FS_CATALOG.'/shopgate/plugins/gambiogx/admin/shopgate.php';
\ No newline at end of file
diff --git a/includes/header.php b/includes/header.php
index c2069ee..421bdfa 100644
--- a/includes/header.php
+++ b/includes/header.php
@@ -32,6 +32,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>>
<head>
+<?php include_once dirname(__FILE__).'/../shopgate/templates/includes/shopgate_mobile_banner.php'; ?>
<?php
if(gm_get_env_info('TEMPLATE_VERSION') < FIRST_GX2_TEMPLATE_VERSION)
{
@@ -62,7 +63,7 @@ Information and contribution at http://www.xt-commerce.com
=========================================================
Please visit our website: www.gambio.de
=========================================================
-���
+���
-->
<?php
$meta = MainFactory::create_object('GMMeta');
diff --git a/lang/german/admin/german.php b/lang/german/admin/german.php
index 94744f3..6d258b0 100644
--- a/lang/german/admin/german.php
+++ b/lang/german/admin/german.php
@@ -168,6 +168,10 @@ define('BOX_XTBOOSTER_CONFIG','xt:booster Konfiguration');
define('BOX_GM_JANOLAW','janolaw AGB Hosting');
define('BOX_PROPERTIES','Artikeleigenschaften');
+/******* SHOPGATE **********/
+include_once DIR_FS_CATALOG.'/shopgate/plugins/gambiogx/lang/german/admin/german.php';
+/******* SHOPGATE **********/
+
/* BOF YATEGO */
define('BOX_YATEGO','Yatego');
/* EOF YATEGO */
diff --git a/system/views/product_info/ProductInfoContentView.inc.php b/system/views/product_info/ProductInfoContentView.inc.php
index 027d1d1..44532aa 100644
--- a/system/views/product_info/ProductInfoContentView.inc.php
+++ b/system/views/product_info/ProductInfoContentView.inc.php
@@ -71,6 +71,12 @@ class ProductInfoContentView extends ContentView
function get_html($p_coo_product, $p_current_category_id = 0)
{
+ include_once dirname(__FILE__).'/../../../shopgate/templates/includes/shopgate_qr_box.php';
+ if(function_exists("drawShopgateQR")) {
+ $this->init_smarty();
+ drawShopgateQR($this->v_coo_smarty, $p_coo_product);
+ }
+
$t_html_output = '';
$xtPrice = new xtcPrice($_SESSION['currency'], $_SESSION['customers_status']['customers_status_id']);