|
ECB SEO SHOP SOFTWARE - IMEDES SOFTWARE DOWNLOADS
*****************************************
* *
* INSTALLATION-GUIDE *
* *
*****************************************
* @package komfortabler Warenkorb *
* @compatible SP2.1 *
*****************************************
--------------
NEW FILES:
--------------
inc/xtc_get_default_attributes.inc.php
includes/modules/cart_specials.php
templates/xtc4/buttons/english/button_decrease.gif
templates/xtc4/buttons/english/button_delete_cart.gif
templates/xtc4/buttons/english/button_increase.gif
templates/xtc4/buttons/english/button_show_product.gif
templates/xtc4/buttons/german/button_decrease.gif
templates/xtc4/buttons/german/button_delete_cart.gif
templates/xtc4/buttons/german/button_increase.gif
templates/xtc4/buttons/german/button_show_product.gif
templates/xtc4/module/cart_specials.html
templates/xtc4/module/order_details_option_radio.html.bak
--------------
NEW DIRS:
--------------
imedes_library
--------------
CHANGED FILES:
--------------
admin/includes/application_top.php
admin/includes/classes/categories.php
admin/includes/functions/sessions.php
admin/includes/modules/new_product.php
includes/application_top.php
includes/cart_actions.php
includes/classes/shopping_cart.php
includes/functions/sessions.php
includes/modules/order_details_cart.php
lang/english/admin/categories.php
lang/english/admin/configuration.php
lang/english/english.php
lang/english/lang_english.conf
lang/german/admin/categories.php
lang/german/admin/configuration.php
lang/german/german.php
lang/german/lang_german.conf
shopping_cart.php
templates/xtc4/module/order_details.html
templates/xtc4/module/shopping_cart.html
--------------
Anwendung
--------------
Administration -> Artikeldaten Bearbeiten
Oben rechts befindet sich eine Ja/Nein Einstellung "Unterh. Warenk. Anz."
Dies sagt an, daß der Artikel unter dem Warenkorb gezeigt wird.
Administration -> Konfiguration -> Maximum Werte
Ganz unten befindet sich eine Einstellung wieviele Produkte maximal unterhalb des Warenkorbes
angezeigt werden: "Max. Anzahl Artikel unter Warenkorb"
-------------
INSTALLATION:
-------------
1. ADOdb installieren
2. Datenkbankerweiterungen durchführen
ALTER TABLE `products` ADD `products_cartspecial` INT( 1 ) DEFAULT '0' NOT NULL ;
INSERT INTO `configuration` ( `configuration_id` , `configuration_key` , `configuration_value` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` )
VALUES (
'', 'MAX_DISPLAY_CART_SPECIALS', '5', '3', '23', '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL , NULL
);
3. new_files und new_dirs kopieren.
4. changed_files kopieren, oder bei nicht standard-version folgende änderungen durchführen:
-admin/includes/classes/categories.php
---------------------------------------------------------------------------------------------------
finde folgendes:
$sql_data_array = array ('products_quantity' => xtc_db_prepare_input($products_data['products_quantity']), 'products_model' => xtc_db_prepare_input($products_data['products_model']), 'products_ean' => xtc_db_prepare_input($products_data['products_ean']), 'products_price' => xtc_db_prepare_input($products_data['products_price']), 'products_sort' => xtc_db_prepare_input($products_data['products_sort']), 'products_shippingtime' => xtc_db_prepare_input($products_data['shipping_status']), 'products_discount_allowed' => xtc_db_prepare_input($products_data['products_discount_allowed']), 'products_date_available' => $products_date_available, 'products_weight' => xtc_db_prepare_input($products_data['products_weight']), 'products_status' => $products_status, 'products_startpage' => xtc_db_prepare_input($products_data['products_startpage']), 'products_startpage_sort' => xtc_db_prepare_input($products_data['products_startpage_sort']), 'products_tax_class_id' => xtc_db_prepare_input($products_data['products_tax_class_id']), 'product_template' => xtc_db_prepare_input($products_data['info_template']), 'options_template' => xtc_db_prepare_input($products_data['options_template']), 'manufacturers_id' => xtc_db_prepare_input($products_data['manufacturers_id']), 'products_fsk18' => xtc_db_prepare_input($products_data['fsk18']), 'products_vpe_value' => xtc_db_prepare_input($products_data['products_vpe_value']), 'products_vpe_status' => xtc_db_prepare_input($products_data['products_vpe_status']), 'products_vpe' => xtc_db_prepare_input($products_data['products_vpe']));
und ersetze es mit:
$sql_data_array = array ('products_quantity' => xtc_db_prepare_input($products_data['products_quantity']),
'products_model' => xtc_db_prepare_input($products_data['products_model']),
'products_ean' => xtc_db_prepare_input($products_data['products_ean']),
'products_price' => xtc_db_prepare_input($products_data['products_price']),
'products_sort' => xtc_db_prepare_input($products_data['products_sort']),
'products_shippingtime' => xtc_db_prepare_input($products_data['shipping_status']),
'products_discount_allowed' => xtc_db_prepare_input($products_data['products_discount_allowed']),
'products_date_available' => $products_date_available,
'products_weight' => xtc_db_prepare_input($products_data['products_weight']),
'products_status' => $products_status,
'products_startpage' => xtc_db_prepare_input($products_data['products_startpage']),
'products_cartspecial' => xtc_db_prepare_input($products_data['products_cartspecial']), // icart
'products_startpage_sort' => xtc_db_prepare_input($products_data['products_startpage_sort']),
'products_tax_class_id' => xtc_db_prepare_input($products_data['products_tax_class_id']),
'product_template' => xtc_db_prepare_input($products_data['info_template']),
'options_template' => xtc_db_prepare_input($products_data['options_template']),
'manufacturers_id' => xtc_db_prepare_input($products_data['manufacturers_id']),
'products_fsk18' => xtc_db_prepare_input($products_data['fsk18']),
'products_vpe_value' => xtc_db_prepare_input($products_data['products_vpe_value']),
'products_vpe_status' => xtc_db_prepare_input($products_data['products_vpe_status']),
'products_vpe' => xtc_db_prepare_input($products_data['products_vpe']));
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-admin/includes/modules/new_product.php
---------------------------------------------------------------------------------------------------
finde folgendes:
if ($pInfo->products_startpage == '1') { $startpage_checked = true; } else { $startpage_checked = false; }
und füge danach ein:
if ($pInfo->products_cartspecial == '1') { $cartspecial_checked = true; } else { $cartspecial_checked = false; } // icart
---------------------------------------------------------------------------------------------------
finde folgendes:
<td><span class="main"><?php echo TEXT_PRODUCTS_STARTPAGE_SORT; ?> <?php echo xtc_draw_input_field('products_startpage_sort', $pInfo->products_startpage_sort ,'size=3'); ?></span></td>
</tr>
<tr>
und füge danach ein:
<?php /* icart */ ?>
<td><span class="main"><?php echo TEXT_PRODUCTS_CART_SPECIALS; ?> <?php echo TEXT_PRODUCTS_STARTPAGE_YES . xtc_draw_radio_field('products_cartspecial', '1', $cartspecial_checked) . ' ' . TEXT_PRODUCTS_STARTPAGE_NO . xtc_draw_radio_field('products_cartspecial', '0', !$cartspecial_checked) ?></span></td>
<td> </td>
</tr>
<tr>
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-includes/cart_actions.php
---------------------------------------------------------------------------------------------------
finde folgendes:
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
und füge danach ein:
require_once (DIR_FS_INC.'xtc_get_default_attributes.inc.php');
---------------------------------------------------------------------------------------------------
finde folgendes:
case 'update_product' :
if (is_object($econda))
$econda->_emptyCart();
for ($i = 0, $n = sizeof($_POST['products_id']); $i < $n; $i++) {
if (in_array($_POST['products_id'][$i], (is_array($_POST['cart_delete']) ? $_POST['cart_delete'] : array ()))) {
$_SESSION['cart']->remove($_POST['products_id'][$i]);
und ersetze es mit:
case 'update_product' :
if(!is_object( $_SESSION['cart'] ) ){
break;
}
if (is_object($econda))
$econda->_emptyCart();
// ------- icard begin --------------
// delete cart
if( isset( $_GET['delete_cart'] ) ){
$_SESSION['cart']->remove_all();
break;
}
// delete button
if( isset( $_GET['delete_product'] ) ){
$_SESSION['cart']->remove($_GET['delete_product']);
break;
}
// increase/decrease button
if( isset( $_GET['increase_product'] ) ){
$n = $_SESSION['cart']->get_quantity($_GET['increase_product']) + 1;
$attr=$_SESSION['cart']->contents[$_GET['increase_product']]['attributes'];
$_SESSION['cart']->update_quantity($_GET['increase_product'], $n, $attr);
break;
}
if( isset( $_GET['decrease_product'] ) ){
$n = $_SESSION['cart']->get_quantity($_GET['decrease_product']) - 1;
if( $n<1 ) {
$_SESSION['cart']->remove($_GET['decrease_product']);
} else {
$attr=$_SESSION['cart']->contents[$_GET['decrease_product']]['attributes'];
$_SESSION['cart']->update_quantity($_GET['decrease_product'], $n, $attr);
}
break;
}
// ------- icard end --------------
for ($i = 0, $n = sizeof($_POST['products_id']); $i < $n; $i++) {
if (in_array($_POST['products_id'][$i], (is_array($_POST['cart_delete']) ? $_POST['cart_delete'] : array ()))) {
$_SESSION['cart']->remove($_POST['products_id'][$i]);
---------------------------------------------------------------------------------------------------
finde folgendes:
} else {
if ($_POST['cart_quantity'][$i] > MAX_PRODUCTS_QTY)
$_POST['cart_quantity'][$i] = MAX_PRODUCTS_QTY;
$attributes = ($_POST['id'][$_POST['products_id'][$i]]) ? $_POST['id'][$_POST['products_id'][$i]] : '';
if (is_object($econda)) {
$old_quantity = $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'][$i], $_POST['id'][$i]));
$econda->_updateProduct($_POST['products_id'][$i], $_POST['cart_quantity'][$i], $old_quantity);
}
$_SESSION['cart']->add_cart($_POST['products_id'][$i], xtc_remove_non_numeric($_POST['cart_quantity'][$i]), $attributes, false);
}
}
xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params($parameters)));
break;
// customer adds a product from the products page
und ersetze es mit:
} else {
if ($_POST['cart_quantity'][$i] > MAX_PRODUCTS_QTY)
$_POST['cart_quantity'][$i] = MAX_PRODUCTS_QTY;
// $attributes = ($_POST['id'][$_POST['products_id'][$i]]) ? $_POST['id'][$_POST['products_id'][$i]] : '';
$attributes=$_POST['attr'][$_POST['products_id'][$i]]; // icart
if (is_object($econda)) {
$old_quantity = $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'][$i], $_POST['id'][$i]));
$econda->_updateProduct($_POST['products_id'][$i], $_POST['cart_quantity'][$i], $old_quantity);
}
// ------- icard begin --------------
$inc=0;
if( isset( $_POST['increase_product_cartindex'] ) ){
if( $i==$_POST['increase_product_cartindex'] ) {
$inc = 1;
}
}
if( isset( $_POST['decrease_product_cartindex'] ) ){
if( $i==$_POST['decrease_product_cartindex'] ) {
$inc = -1;
}
}
$new_qty = xtc_remove_non_numeric($_POST['cart_quantity'][$i]) + $inc;
if( $new_qty < 1 ) {
$_SESSION['cart']->remove($_POST['products_id'][$i]);
} else {
$_SESSION['cart']->remove($_POST['products_id'][$i]);
$prod_id = xtc_get_uprid((int)$_POST['products_id'][$i], $attributes);
$products_cart = $_SESSION['cart']->get_products();
$add_qty = 0;
for ($z = 0, $x = sizeof($products_cart); $z < $x; $z ++) {
if ($products_cart[$z]['id'] == $prod_id) {
$add_qty += $products_cart[$z]['quantity'];
}
}
$_SESSION['cart']->add_cart($prod_id, $new_qty + $add_qty, $attributes, false);
}
// ------- icard end --------------
}
}
xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params($parameters)));
break;
// customer adds a product from the products page
---------------------------------------------------------------------------------------------------
finde folgendes:
if (xtc_has_product_attributes($_GET['BUYproducts_id'])) {
und ersetze es mit:
if ( (xtc_has_product_attributes($_GET['BUYproducts_id'])) && ( !isset($_GET['def_attr']) ) ) { // icart
---------------------------------------------------------------------------------------------------
finde folgendes:
$_SESSION['cart']->add_cart((int) $_GET['BUYproducts_id'], $_SESSION['cart']->get_quantity((int) $_GET['BUYproducts_id']) + 1);
und ersetze es mit:
if( xtc_has_product_attributes($_GET['BUYproducts_id']) ) {
$attr = xtc_get_default_attributes($_GET['BUYproducts_id']); // icart
$prod_id = xtc_get_uprid($_GET['BUYproducts_id'], $attr);
$_SESSION['cart']->add_cart((int)$_GET['BUYproducts_id'], $_SESSION['cart']->get_quantity($prod_id) + 1, $attr); // icart
} else {
$prod_id = $_GET['BUYproducts_id'];
$_SESSION['cart']->add_cart((int) $prod_id, $_SESSION['cart']->get_quantity((int) $prod_id) + 1, $attr); // icart
}
// $_SESSION['cart']->add_cart((int) $_GET['BUYproducts_id'], $_SESSION['cart']->get_quantity((int) $_GET['BUYproducts_id']) + 1);
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-includes/classes/shopping_cart.php
---------------------------------------------------------------------------------------------------
finde folgendes:
$this->contents[$products_id]= NULL;
und ersetze es mit:
// $this->contents[$products_id]= NULL;
unset($this->contents[$products_id]);
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-includes/modules/order_details_cart.php
---------------------------------------------------------------------------------------------------
finde folgendes:
$module_content[$i] = array ('PRODUCTS_NAME' => $products[$i]['name'].$mark_stock, 'PRODUCTS_QTY' => xtc_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="2"').xtc_draw_hidden_field('products_id[]', $products[$i]['id']).xtc_draw_hidden_field('old_qty[]', $products[$i]['quantity']), 'PRODUCTS_MODEL' => $products[$i]['model'],'PRODUCTS_SHIPPING_TIME'=>$products[$i]['shipping_time'], 'PRODUCTS_TAX' => number_format($products[$i]['tax'], TAX_DECIMAL_PLACES), 'PRODUCTS_IMAGE' => $image, 'IMAGE_ALT' => $products[$i]['name'], 'BOX_DELETE' => xtc_draw_checkbox_field('cart_delete[]', $products[$i]['id']), 'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($products[$i]['id'], $products[$i]['name'])), 'PRODUCTS_PRICE' => $xtPrice->xtcFormat($products[$i]['price'] * $products[$i]['quantity'], true), 'PRODUCTS_SINGLE_PRICE' =>$xtPrice->xtcFormat($products[$i]['price'], true), 'PRODUCTS_SHORT_DESCRIPTION' => xtc_get_short_description($products[$i]['id']), 'ATTRIBUTES' => '');
und ersetze es mit:
$imgdir = 'templates/'.CURRENT_TEMPLATE.'/buttons/' . $_SESSION['language'] . '/';
$inc_but = xtc_href_link(FILENAME_SHOPPING_CART, 'action=update_product&increase_product='.$products[$i]['id']);
$inc_img = xtc_image($imgdir.'button_increase.gif');
$inc_lnk = '<a href="'.$inc_but.'">'.$inc_img.'</a>';
$dec_but = xtc_href_link(FILENAME_SHOPPING_CART, 'action=update_product&decrease_product='.$products[$i]['id']);
$dec_img = xtc_image($imgdir.'button_decrease.gif');
$dec_lnk = '<a href="'.$dec_but.'">'.$dec_img.'</a>';
$del_but = xtc_href_link(FILENAME_SHOPPING_CART, 'action=update_product&delete_product='.$products[$i]['id']);
$del_img = xtc_image($imgdir.'button_delete.gif');
$del_lnk = '<a href="'.$del_but.'">'.$del_img.'</a>';
$module_content[$i] = array ('PRODUCTS_ID' => $products[$i]['id'],
'PRODUCTS_NAME' => $products[$i]['name'].$mark_stock,
'PRODUCTS_QTY' => xtc_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="2"').
xtc_draw_hidden_field('products_id[]', $products[$i]['id']).
xtc_draw_hidden_field('old_qty[]', $products[$i]['quantity']),
'PRODUCTS_MODEL' => $products[$i]['model'],
'PRODUCTS_SHIPPING_TIME'=>$products[$i]['shipping_time'],
'PRODUCTS_TAX' => number_format($products[$i]['tax'], TAX_DECIMAL_PLACES),
'PRODUCTS_IMAGE' => $image,
'IMAGE_ALT' => $products[$i]['name'],
'BOX_DELETE' => xtc_draw_checkbox_field('cart_delete[]', $products[$i]['id']),
'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($products[$i]['id'], $products[$i]['name'])),
'PRODUCTS_PRICE' => $xtPrice->xtcFormat($products[$i]['price'] * $products[$i]['quantity'], true),
'PRODUCTS_SINGLE_PRICE' =>$xtPrice->xtcFormat($products[$i]['price'], true),
'PRODUCTS_SHORT_DESCRIPTION' => xtc_get_short_description($products[$i]['id']),
// ------- icart begin --------------
'BUTTON_INCREASE' => $inc_lnk,
'BUTTON_DECREASE' => $dec_lnk,
'BUTTON_DELETE' => $del_lnk,
// ------- icart end --------------
'ATTRIBUTES' => '' );
---------------------------------------------------------------------------------------------------
finde folgendes:
$module_content[$i]['ATTRIBUTES'][] = array ('ID' => $products[$i][$option]['products_attributes_id'], 'MODEL' => xtc_get_attributes_model(xtc_get_prid($products[$i]['id']), $products[$i][$option]['products_options_values_name'],$products[$i][$option]['products_options_name']), 'NAME' => $products[$i][$option]['products_options_name'], 'VALUE_NAME' => $products[$i][$option]['products_options_values_name'].$attribute_stock_check);
und ersetze es mit:
$module_content[$i]['ATTRIBUTES'][] =
array ('ID' => $products[$i][$option]['products_attributes_id'],
'MODEL' => xtc_get_attributes_model(xtc_get_prid($products[$i]['id']), $products[$i][$option]['products_options_values_name'],$products[$i][$option]['products_options_name']),
'NAME' => $products[$i][$option]['products_options_name'],
'VALUE_NAME' => $products[$i][$option]['products_options_values_name'].$attribute_stock_check
);
}
// ------- icart begin --------------
$module_content[$i]['BUTTON_RELOAD'] = xtc_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART);
include('imedes_library/icart_2.php');
$row = 0;
$col = 0;
$products_options_data = array ();
while ($products_options_name = xtc_db_fetch_array($products_options_name_query,true)) {
$selected = 0;
$products_options_array = array ();
$products_options_data[$row] = array ('NAME' => $products_options_name['products_options_name'],
'ID' => $products_options_name['products_options_id'],
'DATA' => '');
include('imedes_library/icart_3.php');
$col = 0;
while ($products_options = xtc_db_fetch_array($products_options_query,true)) {
$price = '';
if( $products[$i][attributes][ $products_options['options_id'] ] == $products_options['products_options_values_id'] ) {
$check='1';
} else {
$check='';
}
if ($_SESSION['customers_status']['customers_status_show_price'] == '0') {
$products_options_data[$row]['DATA'][$col] = array ('ID' => $products_options['products_options_values_id'],
'CHECK' => $check,
'TEXT' => $products_options['products_options_values_name'],
'MODEL' => $products_options['attributes_model'],
'PRICE' => '',
'FULL_PRICE' => '',
'PREFIX' => $products_options['price_prefix']);
} else {
if ($products_options['options_values_price'] != '0.00') {
// $price = $xtPrice->xtcFormat($products_options['options_values_price'], false, $product->data['products_tax_class_id']);
$price = $xtPrice->xtcFormat($products_options['options_values_price'], false, $products[$i]['tax_class_id']);
}
$products_price = $xtPrice->xtcGetPrice($product->data['products_id'], $format = false, 1, $product->data['products_tax_class_id'], $product->data['products_price']);
if ($_SESSION['customers_status']['customers_status_discount_attributes'] == 1 && $products_options['price_prefix'] == '+')
$price -= $price / 100 * $discount;
$attr_price=$price;
if ($products_options['price_prefix']=="-") $attr_price=$price*(-1);
$full = $products_price + $attr_price;
$products_options_data[$row]['DATA'][$col] = array ('ID' => $products_options['products_options_values_id'],
'CHECK' => $check,
'TEXT' => $products_options['products_options_values_name'],
'MODEL' => $products_options['attributes_model'],
'PRICE' => $xtPrice->xtcFormat($price, true),
'FULL_PRICE' => $xtPrice->xtcFormat($full, true),
'PREFIX' => $products_options['price_prefix']);
---------------------------------------------------------------------------------------------------
finde folgendes:
}
}
}
und ersetze es mit:
//if PRICE for option is 0 we don't need to display it
if ($price == 0) {
unset ($products_options_data[$row]['DATA'][$col]['PRICE']);
unset ($products_options_data[$row]['DATA'][$col]['PREFIX']);
}
}
$col ++;
}
$row ++;
}
if( sizeof($products_options_data) ) {
$module_content[$i]['OPTIONS'] = $products_options_data;
}
// ------- icart end --------------
}
}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/english/admin/categories.php
---------------------------------------------------------------------------------------------------
finde folgendes:
?>
und füge davor ein:
define('TEXT_PRODUCTS_CART_SPECIALS', 'Display under shopping cart'); // icart
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/english/admin/configuration.php
---------------------------------------------------------------------------------------------------
finde folgendes:
?>
und füge davor ein:
define('MAX_DISPLAY_CART_SPECIALS_TITLE' , 'Max. Anzahl Artikel unter Warenkorb'); // icart
define('MAX_DISPLAY_CART_SPECIALS_DESC' , 'Maximum Anzahl Anzeige weitere Artikel unterhalb des Warenkorbes'); // icart
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/english/english.php
---------------------------------------------------------------------------------------------------
finde folgendes:
?>
und füge davor ein:
define('IMAGE_BUTTON_CART_INCREASE', 'increase'); // icart
define('IMAGE_BUTTON_CART_DECREASE', 'decrease'); // icart
define('IMAGE_BUTTON_DELETE_PRODUCT', 'Delete this Product from cart'); // icart
define('IMAGE_BUTTON_DELETE_ALL', 'Clear cart'); // icart
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/english/lang_english.conf
---------------------------------------------------------------------------------------------------
füge ganz am Ende ein:
#includes/modules/cart_specials
# icart
[cart_specials]
heading_text = 'Perhaps interested for you'
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/german/admin/categories.php
---------------------------------------------------------------------------------------------------
finde folgendes:
?>
und füge davor ein:
define('TEXT_PRODUCTS_CART_SPECIALS', 'Unterh. Warenk. Anz.'); // icart
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/german/admin/configuration.php
---------------------------------------------------------------------------------------------------
finde folgendes:
?>
und füge davor ein:
// icart
define('MAX_DISPLAY_CART_SPECIALS_TITLE' , 'Max. Anzahl Artikel unter Warenkorb'); // icart
define('MAX_DISPLAY_CART_SPECIALS_DESC' , 'Maximum Anzahl Anzeige weitere Artikel unterhalb des Warenkorbes'); // icart
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/german/german.php
---------------------------------------------------------------------------------------------------
finde folgendes:
?>
und füge davor ein:
define('IMAGE_BUTTON_CART_INCREASE', 'Erhöhe um 1'); // icart
define('IMAGE_BUTTON_CART_DECREASE', 'Erniedrige um 1'); // icart
define('IMAGE_BUTTON_DELETE_PRODUCT', 'Diese Position aus Warenkorb löschen'); // icart
define('IMAGE_BUTTON_DELETE_ALL', 'Warenkorb komplett löschen'); // icart
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/german/lang_german.conf
---------------------------------------------------------------------------------------------------
füge ganz am Ende ein:
#includes/modules/cart_specials
# icart
[cart_specials]
heading_text = 'Interessante weitere Artikel'
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-shopping_cart.php
---------------------------------------------------------------------------------------------------
finde folgendes:
if ($_GET['info_message'])
$smarty->assign('info_message', str_replace('+', ' ', htmlspecialchars($_GET['info_message'])));
$smarty->assign('BUTTON_RELOAD', xtc_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART));
und füge danach ein:
// icart beginn
$imgdir = 'templates/'.CURRENT_TEMPLATE.'/buttons/' . $_SESSION['language'] . '/';
$del_but = xtc_href_link(FILENAME_SHOPPING_CART, 'action=update_product&delete_cart=1');
$del_img = xtc_image($imgdir.'button_delete_cart.gif');
$del_lnk = '<a href="'.$del_but.'">'.$del_img.'</a>';
$smarty->assign('BUTTON_DELETE_ALL', $del_lnk); // icart
// icart end
---------------------------------------------------------------------------------------------------
finde folgendes:
$smarty->assign('BUTTON_CONTINUE', '<a href="'.xtc_href_link(FILENAME_DEFAULT).'">'.xtc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE).'</a>');
}
und füge danach ein:
include (DIR_WS_MODULES.'cart_specials.php');
$smarty->assign('MODULE_cart_specials', $cart_specials_content);
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/module/order_details.html
---------------------------------------------------------------------------------------------------
finde folgendes:
{foreach name=aussen item=module_data from=$module_content}
<tr>
<td colspan="6"></td>
</tr>
<tr>
<td class="main">{if $module_data.PRODUCTS_IMAGE!=''}<img src="{$module_data.PRODUCTS_IMAGE}" alt="{$module_data.IMAGE_ALT}" />{/if}</td>
<td valign="top" class="main" align="center">{$module_data.PRODUCTS_QTY}</td>
<td valign="top" class="main"><strong><a href="{$module_data.PRODUCTS_LINK}">{$module_data.PRODUCTS_NAME}</a></strong><br />
und füge danach ein:
{foreach name=aussen item=module_data from=$module_content}
<tr>
<td colspan="6">
<input type="hidden" name="id[{$options_data.ID}]" value="{$item_data.ID}" />
</td>
</tr>
<tr>
<td class="main" valign="top" >
{if $module_data.PRODUCTS_IMAGE!=''}
<img src="{$module_data.PRODUCTS_IMAGE}" alt="{$module_data.IMAGE_ALT}" />
{/if}
</td>
<td valign="top" class="main" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle">{$module_data.BUTTON_DECREASE}</td> <!-- icart -->
<td valign="middle">{$module_data.PRODUCTS_QTY}</td>
<td valign="middle">{$module_data.BUTTON_INCREASE}</td> <!-- icart -->
</tr>
</table>
</td>
<td valign="top" class="main"><strong><a href="{$module_data.PRODUCTS_LINK}">{$module_data.PRODUCTS_NAME}</a></strong><br />
---------------------------------------------------------------------------------------------------
finde folgendes:
{/foreach}
</table>
{else}
{/if} </td>
<td valign="top" nowrap class="boxTextBG" style="border-right: 1px solid; border-color: #cccccc;" align="right">{$module_data.PRODUCTS_SINGLE_PRICE}</td>
<td valign="top" nowrap class="boxTextBG" style="border-right: 1px solid; border-color: #cccccc;" align="right">{$module_data.PRODUCTS_PRICE}
</td>
<td width="10" align="center" valign="middle" class="boxTextBGII">{$module_data.BOX_DELETE}</td>
</tr>
{/foreach}
<tr>
und füge danach ein:
{/foreach}
</table>
{else}
{/if}
<!-- icart begin -->
{if $module_data.OPTIONS!=''}
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main">
<table style="border: 1px solid;" width="100%" cellpadding="2" cellspacing="0">
{foreach name=outer item=options_data from=$module_data.OPTIONS }
<tr>
<td><strong>{$options_data.NAME}:</strong></td>
<td>
<select name="attr[{$module_data.PRODUCTS_ID}][{$options_data.ID}]" size="1">
{foreach key=key_data item=item_data from=$options_data.DATA}
{if $item_data.CHECK=='1' }
<option value="{$item_data.ID}" selected>
{$item_data.TEXT}
<!-- ArtNr.: {$item_data.MODEL} -->
{if $item_data.PRICE}{$item_data.PREFIX}{$item_data.PRICE}{/if}
</option>
{else}
<option value="{$item_data.ID}">
{$item_data.TEXT}
<!-- ArtNr.: {$item_data.MODEL} -->
{if $item_data.PRICE}{$item_data.PREFIX}{$item_data.PRICE}{/if}
</option>
{/if}
{/foreach}
</select>
</td>
</tr>
{/foreach}
<tr>
<td colspan="2">
{$module_data.BUTTON_RELOAD}
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
<!-- icart end -->
</td>
<td valign="top" nowrap class="boxTextBG" style="border-right: 1px solid; border-color: #cccccc;" align="right">{$module_data.PRODUCTS_SINGLE_PRICE}</td>
<td valign="top" nowrap class="boxTextBG" style="border-right: 1px solid; border-color: #cccccc;" align="right">{$module_data.PRODUCTS_PRICE}
</td>
<td width="10" align="center" valign="top" class="boxTextBGII">
{$module_data.BUTTON_DELETE} <!-- icart -->
</td>
</tr>
{/foreach}
<tr>
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/module/shopping_cart.html
---------------------------------------------------------------------------------------------------
finde folgendes:
{/if}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left">{$BUTTON_RELOAD}</td>
<td align="right">{$BUTTON_CHECKOUT}</td>
</tr>
</table>
{$FORM_END}
{/if}
und füge danach ein:
{/if}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top">
{$BUTTON_RELOAD} <!-- icart -->
</td>
<td align="left" valign="top">
{$BUTTON_DELETE_ALL} <!-- icart -->
</td>
<td align="right" valign="top">
{$BUTTON_CHECKOUT}
</td>
</tr>
</table>
{$FORM_END}
{/if}
<br />
<br />
{$MODULE_cart_specials} <!-- icart -->
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
|