voliere.net
07.02.2006, 18:06
Änderungen müssen durchgeführt werden in templates/source/boxes.php
''>ZITAT</div><?php
/ -----------------------------------------------------------------------------------------
$Id: boxes.php 1262 2005-09-30 10:00:32Z mz $
XT-Commerce - community made shopping
http://www.xt-commerce.com (http://anonym.to/?http://www.xt-commerce.com)
Copyright © 2003 XT-Commerce
-----------------------------------------------------------------------------------------
Released under the GNU General Public License
--------------------------------------------------------------------------------------- /
define('DIR_WS_BOXES',DIR_FS_CATALOG .'templates/'.CURRENT_TEMPLATE. '/source/boxes/');
include(DIR_WS_BOXES . 'categories.php');
include(DIR_WS_BOXES . 'manufacturers.php');
if ($_SESSION['customers_status']['customers_status_show_price']!='0') {
require(DIR_WS_BOXES . 'add_a_quickie.php');
}
require(DIR_WS_BOXES . 'last_viewed.php');
if (substr(basename($PHP_SELF), 0,8) != 'advanced') {require(DIR_WS_BOXES . 'whats_new.php'); }
require(DIR_WS_BOXES . 'search.php');
require(DIR_WS_BOXES . 'content.php');
require(DIR_WS_BOXES . 'information.php');
include(DIR_WS_BOXES . 'languages.php');
if ($_SESSION['customers_status']['customers_status_id'] == 0) include(DIR_WS_BOXES . 'admin.php');
require(DIR_WS_BOXES . 'infobox.php');
require(DIR_WS_BOXES . 'loginbox.php');
include(DIR_WS_BOXES . 'newsletter.php');
if ($_SESSION['customers_status']['customers_status_show_price'] == 1) include(DIR_WS_BOXES . 'shopping_cart.php');
if ($product->isProduct()) include(DIR_WS_BOXES . 'manufacturer_info.php');
if (isset($_SESSION['customer_id'])) include(DIR_WS_BOXES . 'order_history.php');
if (!$product->isProduct()) {
include(DIR_WS_BOXES . 'best_sellers.php');
}
include(DIR_WS_BOXES . 'best_sellers.php');
if (!$product->isProduct()) {
include(DIR_WS_BOXES . 'specials.php');
}
if ($_SESSION['customers_status']['customers_status_read_reviews'] == 1) require(DIR_WS_BOXES . 'reviews.php');
if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
include(DIR_WS_BOXES . 'currencies.php');
}
$smarty->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/');
?>[/b]
getestet in Version 3.0.4
im Vergleich dazu das Orginal:
''>ZITAT</div>include(DIR_WS_BOXES . 'newsletter.php');
if ($_SESSION['customers_status']['customers_status_show_price'] == 1) include(DIR_WS_BOXES . 'shopping_cart.php');
if ($product->isProduct()) include(DIR_WS_BOXES . 'manufacturer_info.php');
if (isset($_SESSION['customer_id'])) include(DIR_WS_BOXES . 'order_history.php');
if (!$product->isProduct()) {
if (isset($_SESSION['customer_id'])) {
$check_query = xtc_db_query("select count( ) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $_SESSION['customer_id'] . "' and global_product_notifications = '1'");
$check = xtc_db_fetch_array($check_query);
if ($check['count'] > 0) {
include(DIR_WS_BOXES . 'best_sellers.php');
}
}
} else {
include(DIR_WS_BOXES . 'best_sellers.php');
}
if (!$product->isProduct()) {
include(DIR_WS_BOXES . 'specials.php');
}[/b]
''>ZITAT</div><?php
/ -----------------------------------------------------------------------------------------
$Id: boxes.php 1262 2005-09-30 10:00:32Z mz $
XT-Commerce - community made shopping
http://www.xt-commerce.com (http://anonym.to/?http://www.xt-commerce.com)
Copyright © 2003 XT-Commerce
-----------------------------------------------------------------------------------------
Released under the GNU General Public License
--------------------------------------------------------------------------------------- /
define('DIR_WS_BOXES',DIR_FS_CATALOG .'templates/'.CURRENT_TEMPLATE. '/source/boxes/');
include(DIR_WS_BOXES . 'categories.php');
include(DIR_WS_BOXES . 'manufacturers.php');
if ($_SESSION['customers_status']['customers_status_show_price']!='0') {
require(DIR_WS_BOXES . 'add_a_quickie.php');
}
require(DIR_WS_BOXES . 'last_viewed.php');
if (substr(basename($PHP_SELF), 0,8) != 'advanced') {require(DIR_WS_BOXES . 'whats_new.php'); }
require(DIR_WS_BOXES . 'search.php');
require(DIR_WS_BOXES . 'content.php');
require(DIR_WS_BOXES . 'information.php');
include(DIR_WS_BOXES . 'languages.php');
if ($_SESSION['customers_status']['customers_status_id'] == 0) include(DIR_WS_BOXES . 'admin.php');
require(DIR_WS_BOXES . 'infobox.php');
require(DIR_WS_BOXES . 'loginbox.php');
include(DIR_WS_BOXES . 'newsletter.php');
if ($_SESSION['customers_status']['customers_status_show_price'] == 1) include(DIR_WS_BOXES . 'shopping_cart.php');
if ($product->isProduct()) include(DIR_WS_BOXES . 'manufacturer_info.php');
if (isset($_SESSION['customer_id'])) include(DIR_WS_BOXES . 'order_history.php');
if (!$product->isProduct()) {
include(DIR_WS_BOXES . 'best_sellers.php');
}
include(DIR_WS_BOXES . 'best_sellers.php');
if (!$product->isProduct()) {
include(DIR_WS_BOXES . 'specials.php');
}
if ($_SESSION['customers_status']['customers_status_read_reviews'] == 1) require(DIR_WS_BOXES . 'reviews.php');
if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
include(DIR_WS_BOXES . 'currencies.php');
}
$smarty->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/');
?>[/b]
getestet in Version 3.0.4
im Vergleich dazu das Orginal:
''>ZITAT</div>include(DIR_WS_BOXES . 'newsletter.php');
if ($_SESSION['customers_status']['customers_status_show_price'] == 1) include(DIR_WS_BOXES . 'shopping_cart.php');
if ($product->isProduct()) include(DIR_WS_BOXES . 'manufacturer_info.php');
if (isset($_SESSION['customer_id'])) include(DIR_WS_BOXES . 'order_history.php');
if (!$product->isProduct()) {
if (isset($_SESSION['customer_id'])) {
$check_query = xtc_db_query("select count( ) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $_SESSION['customer_id'] . "' and global_product_notifications = '1'");
$check = xtc_db_fetch_array($check_query);
if ($check['count'] > 0) {
include(DIR_WS_BOXES . 'best_sellers.php');
}
}
} else {
include(DIR_WS_BOXES . 'best_sellers.php');
}
if (!$product->isProduct()) {
include(DIR_WS_BOXES . 'specials.php');
}[/b]