|
ECB SEO SHOP SOFTWARE - IMEDES SOFTWARE DOWNLOADS
*****************************************
* *
* INSTALLATION-GUIDE *
* *
*****************************************
* @package Ajax Quickbuy *
* @compatible SP2.1 *
*****************************************
--------------
NEW FILES:
--------------
ajax_shopping_cart.php
images/loading.gif
images/loading_1.gif
images/loading_2.gif
images/ok.gif
images/ok_1.gif
images/ok_2.gif
images/Thumbs.db
imedes.php
includes/application_top_ajax.php
includes/classes/sybsys.php
includes/functions/database.php
templates/xtc4/img/add2.gif
templates/xtc4/img/delete2.gif
--------------
NEW DIRS:
--------------
imedes_library
includes/classes/adodb_full
--------------
CHANGED FILES:
--------------
admin/includes/application_top.php
admin/includes/functions/sessions.php
inc/xtc_draw_form.inc.php
inc/xtc_redirect.inc.php
includes/application_top.php
includes/cart_actions.php
includes/classes/product.php
includes/functions/sessions.php
includes/modules/new_products.php
includes/modules/product_info.php
includes/modules/product_listing.php
products_new.php
templates/xtc4/javascript/general.js.php
templates/xtc4/module/new_products.html
templates/xtc4/module/new_products_default.html
templates/xtc4/module/new_products_overview.html
templates/xtc4/module/product_info/product_info_v1.html
templates/xtc4/module/product_listing/product_listing_v1.html
templates/xtc4/source/boxes/shopping_cart.php
-------------
INSTALLATION:
-------------
1. Datenkbankerweiterungen durchführen
2. new_files kopieren.
3. changed_files kopieren, oder bei nicht standard-version folgende änderungen durchführen:
-admin/includes/application_top.php
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
require_once(DIR_FS_INC . 'xtc_db_connect.inc.php');
require_once(DIR_FS_INC . 'xtc_db_close.inc.php');
require_once(DIR_FS_INC . 'xtc_db_error.inc.php');
require_once(DIR_FS_INC . 'xtc_db_query.inc.php');
require_once(DIR_FS_INC . 'xtc_db_queryCached.inc.php');
require_once(DIR_FS_INC . 'xtc_db_perform.inc.php');
require_once(DIR_FS_INC . 'xtc_db_fetch_array.inc.php');
require_once(DIR_FS_INC . 'xtc_db_num_rows.inc.php');
require_once(DIR_FS_INC . 'xtc_db_data_seek.inc.php');
require_once(DIR_FS_INC . 'xtc_db_insert_id.inc.php');
require_once(DIR_FS_INC . 'xtc_db_free_result.inc.php');
require_once(DIR_FS_INC . 'xtc_db_fetch_fields.inc.php');
require_once(DIR_FS_INC . 'xtc_db_output.inc.php');
require_once(DIR_FS_INC . 'xtc_db_input.inc.php');
und ersetze es mit:
require_once('../'.DIR_WS_FUNCTIONS.'database.php');
// require_once(DIR_FS_INC . 'xtc_db_connect.inc.php');
// require_once(DIR_FS_INC . 'xtc_db_close.inc.php');
// require_once(DIR_FS_INC . 'xtc_db_error.inc.php');
// require_once(DIR_FS_INC . 'xtc_db_query.inc.php');
// require_once(DIR_FS_INC . 'xtc_db_queryCached.inc.php');
// require_once(DIR_FS_INC . 'xtc_db_perform.inc.php');
// require_once(DIR_FS_INC . 'xtc_db_fetch_array.inc.php');
// require_once(DIR_FS_INC . 'xtc_db_num_rows.inc.php');
// require_once(DIR_FS_INC . 'xtc_db_data_seek.inc.php');
// require_once(DIR_FS_INC . 'xtc_db_insert_id.inc.php');
// require_once(DIR_FS_INC . 'xtc_db_free_result.inc.php');
// require_once(DIR_FS_INC . 'xtc_db_fetch_fields.inc.php');
// require_once(DIR_FS_INC . 'xtc_db_output.inc.php');
// require_once(DIR_FS_INC . 'xtc_db_input.inc.php');
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
xtc_db_connect() or die('Unable to connect to database server!');
und ersetze es mit:
require_once (DIR_FS_CATALOG.'imedes_library/db_connect_alt_admin.php');
db_connect_alt() or die('Unable to connect to database server!');
global $ADODB_FETCH_MODE;
$ADODB_FETCH_MODE=ADODB_FETCH_ASSOC;
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-admin/includes/functions/sessions.php
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
function _sess_write($key, $val) {
global $SESS_LIFE;
und füge danach ein:
if(!is_object($db)){// Vermutlich wird das $db objekt gelöscht, bevor die Session geschrieben wird
global$db;
require_once (DIR_FS_CATALOG.'imedes_library/db_connect_alt_admin.php');
db_connect_alt() or die('Unable to connect to database server!');
$db->Execute("SET NAMES '".$_SESSION['language_charset']."'");
$db->Execute("SET CHARACTER_SET_CLIENT=".$_SESSION['language_charset']);
$db->Execute("SET CHARACTER_SET_RESULTS=".$_SESSION['language_charset']);
}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-inc/xtc_draw_form.inc.php
---------------------------------------------------------------------------------------------------
finde folgendes:
// Output a form
function xtc_draw_form($name, $action, $method = 'post', $parameters = '') {
$form = '<form id="' . xtc_parse_input_field_data($name, array('"' => '"')) . '" action="' . xtc_parse_input_field_data($action, array('"' => '"')) . '" method="' . xtc_parse_input_field_data($method, array('"' => '"')) . '"';
und füge danach ein:
// AJAX Addto shopping_cart - Begin
if( preg_match("/add_product/i", $action) ){
if( preg_match("/p_id/i", $action) ){
$teile = explode("**", $action);
$form .= ' onSubmit="doAddProduct(this,'.$teile['1'].'); return false;"';
} else {
$form .= ' onSubmit="doAddProduct(this); return false;"';
}
}
// AJAX Addto shopping_cart - End
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-inc/xtc_redirect.inc.php
---------------------------------------------------------------------------------------------------
finde folgendes:
$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL
}
}
und füge danach ein:
// AJAX Addto shopping_cart - Begin
global $HTTP_GET_VARS, $PHP_SELF, $_RESULT;
if ( strpos( basename($PHP_SELF), 'ajax_shopping_cart.php')!==FALSE ) {
if ( $url == xtc_href_link(FILENAME_SSL_CHECK) ||
$url == xtc_href_link(FILENAME_LOGIN) ||
$url == xtc_href_link(FILENAME_COOKIE_USAGE) ||
( $HTTP_GET_VARS['action'] === 'buy_now' && xtc_has_product_attributes($HTTP_GET_VARS['products_id']) )
) {
$_RESULT['ajax_redirect'] = $url;
xtc_exit();
}
return;
}
// AJAX Addto shopping_cart - End
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-includes/application_top.php
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
require_once (DIR_FS_INC.'xtc_db_connect.inc.php');
require_once (DIR_FS_INC.'xtc_db_close.inc.php');
require_once (DIR_FS_INC.'xtc_db_error.inc.php');
require_once (DIR_FS_INC.'xtc_db_perform.inc.php');
require_once (DIR_FS_INC.'xtc_db_query.inc.php');
require_once (DIR_FS_INC.'xtc_db_queryCached.inc.php');
require_once (DIR_FS_INC.'xtc_db_fetch_array.inc.php');
require_once (DIR_FS_INC.'xtc_db_num_rows.inc.php');
require_once (DIR_FS_INC.'xtc_db_data_seek.inc.php');
require_once (DIR_FS_INC.'xtc_db_insert_id.inc.php');
require_once (DIR_FS_INC.'xtc_db_free_result.inc.php');
require_once (DIR_FS_INC.'xtc_db_fetch_fields.inc.php');
require_once (DIR_FS_INC.'xtc_db_output.inc.php');
require_once (DIR_FS_INC.'xtc_db_input.inc.php');
und ersetze es mit:
require_once(DIR_WS_FUNCTIONS.'database.php');
// require_once (DIR_FS_INC.'xtc_db_connect.inc.php');
// require_once (DIR_FS_INC.'xtc_db_close.inc.php');
// require_once (DIR_FS_INC.'xtc_db_error.inc.php');
// require_once (DIR_FS_INC.'xtc_db_perform.inc.php');
// require_once (DIR_FS_INC.'xtc_db_query.inc.php');
// require_once (DIR_FS_INC.'xtc_db_queryCached.inc.php');
// require_once (DIR_FS_INC.'xtc_db_fetch_array.inc.php');
// require_once (DIR_FS_INC.'xtc_db_num_rows.inc.php');
// require_once (DIR_FS_INC.'xtc_db_data_seek.inc.php');
// require_once (DIR_FS_INC.'xtc_db_insert_id.inc.php');
// require_once (DIR_FS_INC.'xtc_db_free_result.inc.php');
// require_once (DIR_FS_INC.'xtc_db_fetch_fields.inc.php');
// require_once (DIR_FS_INC.'xtc_db_output.inc.php');
// require_once (DIR_FS_INC.'xtc_db_input.inc.php');
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
xtc_db_connect() or die('Unable to connect to database server!');
und ersetze es mit:
require_once (DIR_FS_CATALOG.'imedes_library/db_connect_alt.php');
db_connect_alt() or die('Unable to connect to database server!');
global $ADODB_FETCH_MODE;
$ADODB_FETCH_MODE=ADODB_FETCH_ASSOC;
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
require (DIR_WS_LANGUAGES.$_SESSION['language'].'/'.$_SESSION['language'].'.php');
und füge danach ein:
$db->Execute("SET NAMES '".$_SESSION['language_charset']."'");
$db->Execute("SET CHARACTER_SET_CLIENT=".$_SESSION['language_charset']);
$db->Execute("SET CHARACTER_SET_RESULTS=".$_SESSION['language_charset']);
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-includes/cart_actions.php
---------------------------------------------------------------------------------------------------
finde folgendes:
// Shopping cart actions
if (isset ($_GET['action'])) {
und füge davor ein:
define( RETURN_SCRIPT, false); // true=Rueckkehr zur Ausgangsseite, false=zum Warenkorb
---------------------------------------------------------------------------------------------------
finde folgendes:
$goto = FILENAME_SHOPPING_CART;
und ersetze es mit:
if( RETURN_SCRIPT==true ) {
$goto = basename($_SERVER["SCRIPT_FILENAME"]); // plmi
} else {
$goto = FILENAME_SHOPPING_CART;
}
---------------------------------------------------------------------------------------------------
finde folgendes:
$_SESSION['cart']->add_cart((int) $_POST['products_id'], $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'], $_POST['id'])) + xtc_remove_non_numeric($_POST['products_qty']), $_POST['id']);
}
xtc_redirect(xtc_href_link($goto, 'products_id=' . (int) $_POST['products_id'] . '&' . xtc_get_all_get_params($parameters)));
break;
und ersetze es mit:
if (!is_object($_SESSION['cart'])) {
$_SESSION['cart'] = new shoppingCart();
}
$_SESSION['cart']->add_cart((int) $_POST['products_id'], $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'], $_POST['id'])) + xtc_remove_non_numeric($_POST['products_qty']), $_POST['id']);
}
if( !isset($_GET['products_id']) ) {
xtc_redirect(xtc_href_link($goto, '&' . xtc_get_all_get_params($parameters)));
} else {
xtc_redirect(xtc_href_link($goto, 'products_id=' . (int) $_POST['products_id'] . '&' . xtc_get_all_get_params($parameters)));
}
break;
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-includes/classes/product.php
---------------------------------------------------------------------------------------------------
finde folgendes:
- function getAttributesCount() {
und ersetze es mit:
function getAttributesCount($pid='') {
if ($pid!='')
$products_attributes_query = xtDBquery("select count(*) as total from ".TABLE_PRODUCTS_OPTIONS." popt, ".TABLE_PRODUCTS_ATTRIBUTES." patrib where patrib.products_id='".$pid."' and patrib.options_id = popt.products_options_id and popt.language_id = '".(int) $_SESSION['languages_id']."'");
else
---------------------------------------------------------------------------------------------------
finde folgendes:
return '<a href="'.xtc_href_link(basename($PHP_SELF), 'action=buy_now&BUYproducts_id='.$id.'&'.xtc_get_all_get_params(array ('action')), 'NONSSL').'">'.xtc_image_button('button_buy_now.gif', TEXT_BUY.$name.TEXT_NOW).'</a>';
und ersetze es mit:
return '<a href="'.xtc_href_link(basename($PHP_SELF), 'action=buy_now&BUYproducts_id='.$id.'&'.xtc_get_all_get_params(array ('action')), 'NONSSL').'" onClick="doBuyNowGet(\'' . xtc_href_link( 'ajax_shopping_cart.php', 'action=buy_now&BUYproducts_id='.$id.'&'.xtc_get_all_get_params(array ('action')),'NONSSL') . '\'); return false" >'.xtc_image_button('button_buy_now.gif', TEXT_BUY.$name.TEXT_NOW).'</a>';
---------------------------------------------------------------------------------------------------
finde folgendes:
function buildDataArray(&$array,$image='thumbnail') {
und ersetze es mit:
function buildAttributesArray($pID,$dataArray)
{
global $xtPrice;
include( DIR_FS_CATALOG.'imedes_library/fragments/class_product.frag1.php');
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' => '');
$products_options_query = xtDBquery("select pov.products_options_values_id,
pov.products_options_values_name,
pa.attributes_model,
pa.options_values_price,
pa.price_prefix,
pa.attributes_stock,
pa.attributes_model
from ".TABLE_PRODUCTS_ATTRIBUTES." pa,
".TABLE_PRODUCTS_OPTIONS_VALUES." pov
where pa.products_id = '".$pID."'
and pa.options_id = '".$products_options_name['products_options_id']."'
and pa.options_values_id = pov.products_options_values_id
and pov.language_id = '".(int) $_SESSION['languages_id']."'
order by pa.sortorder");
$col = 0;
while ($products_options = xtc_db_fetch_array($products_options_query,true))
{
$price = '';
if ($_SESSION['customers_status']['customers_status_show_price'] == '0')
{
$products_options_data[$row]['DATA'][$col] = array ('ID' => $products_options['products_options_values_id'], '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, $dataArray['PRODUCTS_TAX_CLASS_ID']);
}
$products_price = $xtPrice->xtcGetPrice($pID, $format = false, 1, $dataArray['PRODUCTS_TAX_CLASS_ID'], $dataArray['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'], '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']);
//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 ++;
}
return($products_options_data);
}
function buildDataArray(&$array,$withAttributes="",$image='thumbnail') {
---------------------------------------------------------------------------------------------------
finde folgendes:
return array ('PRODUCTS_NAME' => $array['products_name'],
und ersetze es mit:
$p_array = array ('PRODUCTS_NAME' => $array['products_name'],
---------------------------------------------------------------------------------------------------
finde folgendes:
'PRODUCTS_PRICE' => $products_price['formated'],
und füge danach ein:
'PRODUCTS_DISCOUNT_ALLOWED'=> $array['products_discount_allowed'],
'PRODUCTS_TAX_CLASS_ID' => $array['products_tax_class_id'],
//'PRODUCTS_FORM_ACTION' => xtc_draw_form('cart_quantity_'.$array['products_id'], xtc_href_link(FILENAME_PRODUCT_INFO, xtc_get_all_get_params(array ('action')).'action=add_product')),
'PRODUCTS_FORM_ACTION' => xtc_draw_form('cart_quantity_'.$array['products_id'], xtc_href_link(basename($_SERVER["SCRIPT_FILENAME"]), xtc_get_all_get_params(array ('action')).'action=add_product&p_id=**'.$array['products_id'].'**')),
'PRODUCTS_FORM_NAME' => 'cart_quantity_'.$array['products_id'],
'PRODUCTS_ADD_QTY' => xtc_draw_input_field('products_qty', '1', 'size="3"').' '.xtc_draw_hidden_field('products_id',$array['products_id']),
'PRODUCTS_ADD_CART_BUTTON' => xtc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART),
'PRODUCTS_ADD_BUTTON' => xtc_image('templates/'.CURRENT_TEMPLATE.'/img/add2.gif','','12','12','hspace="3"'),
'PRODUCTS_SUBTRACT_BUTTON' => xtc_image('templates/'.CURRENT_TEMPLATE.'/img/delete2.gif','','12','12','hspace="3"'),
---------------------------------------------------------------------------------------------------
finde folgendes:
'PRODUCTS_FSK18' => $array['products_fsk18']);
und füge danach ein:
if ($this->getAttributesCount($array['products_id'])>0) {
$p_array['DETAIL_BUTTON'] = '<a href="'.xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id='.$array['products_id'], 'NONSSL').'">'.xtc_image_button('button_view.gif', $array['products_name']).'</a>';
}
if($withAttributes)
{
if($this->getAttributesCount($array['products_id'])>0)
{
$p_array["PRODUCTS_ATTRIBUTES_ARRAY"]=$this->buildAttributesArray($array['products_id'],$p_array);
}
}
return $p_array;
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-includes/functions/sessions.php
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
function _sess_write($key, $val) {
global $SESS_LIFE;
und füge danach ein:
if(!is_object($db)){// Vermutlich wird das $db objekt gelöscht, bevor die Session geschrieben wird
global$db;
require_once (DIR_FS_CATALOG.'imedes_library/db_connect_alt.php');
db_connect_alt() or die('Unable to connect to database server!');
$db->Execute("SET NAMES '".$_SESSION['language_charset']."'");
$db->Execute("SET CHARACTER_SET_CLIENT=".$_SESSION['language_charset']);
$db->Execute("SET CHARACTER_SET_RESULTS=".$_SESSION['language_charset']);
}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-includes/modules/new_products.php
---------------------------------------------------------------------------------------------------
finde folgendes:
$new_products_query = xtDBquery($new_products_query);
while ($new_products = xtc_db_fetch_array($new_products_query, true)) {
$module_content[] = $product->buildDataArray($new_products);
und ersetze es mit:
$new_products_query = xtDBquery($new_products_query);
$module_smarty->assign('FORM_END', "</form>");
while ($new_products = xtc_db_fetch_array($new_products_query, true)) {
/*build the DataArray WITH Attributes*/
$temp = $product->buildDataArray($new_products,"x");
/*build the DataArray WITH Attributes*/
include( DIR_FS_CATALOG.'imedes_library/fragments/new_products.frag1.php');
$module_smarty->assign('language', $_SESSION['language']);
$module_smarty->assign('options', $products_options_data);
// set cache ID
$module_smarty->caching = 0;
$module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/product_options/'.$product->data['options_template']);
$temp["PRODUCTS_ATTRIBUTES_DISPLAY"]=$module;
/*get the Attributes for display*/
$module_content[] = $temp;
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-includes/modules/product_info.php
---------------------------------------------------------------------------------------------------
finde folgendes:
$info_smarty->assign('PRODUCTS_EAN', $product->data['products_ean']);
und füge danach ein:
$info_smarty->assign('PRODUCTS_FORM_NAME', 'cart_quantity');
$info_smarty->assign('PRODUCTS_ADD_BUTTON', xtc_image('templates/'.CURRENT_TEMPLATE.'/img/add2.gif','','12','12','hspace="3"'));
$info_smarty->assign('PRODUCTS_SUBTRACT_BUTTON', xtc_image('templates/'.CURRENT_TEMPLATE.'/img/delete2.gif','','12','12','hspace="3"'));
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-includes/modules/product_listing.php
---------------------------------------------------------------------------------------------------
finde folgendes:
while ($listing = xtc_db_fetch_array($listing_query, true)) {
$rows ++;
$module_content[] = $product->buildDataArray($listing);
und ersetze es mit:
$module_smarty->assign('FORM_END', '</form>');
while ($listing = xtc_db_fetch_array($listing_query, true)) {
$rows ++;
/*build the DataArray WITH Attributes*/
$temp=$product->buildDataArray($listing,"x");
/*build the DataArray WITH Attributes*/
include( DIR_FS_CATALOG.'imedes_library/fragments/product_listing.frag1.php');
$module_smarty->assign('language', $_SESSION['language']);
$module_smarty->assign('options', $products_options_data);
// set cache ID
$module_smarty->caching = 0;
$module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/product_options/'.$product->data['options_template']);
$temp["PRODUCTS_ATTRIBUTES_DISPLAY"]=$module;
/*get the Attributes for display*/
$module_content[] = $temp;
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-products_new.php
---------------------------------------------------------------------------------------------------
finde folgendes:
$module_content[] = array ('PRODUCTS_NAME' => $products_new['products_name'],'PRODUCTS_SHIPPING_LINK' => $ship_info,'PRODUCTS_TAX_INFO' => $tax_info, 'PRODUCTS_DESCRIPTION' => $products_new['products_short_description'], 'PRODUCTS_PRICE' => $products_price['formated'], 'PRODUCTS_VPE' => $vpePrice, 'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($products_new['products_id'], $products_new['products_name'])), 'PRODUCTS_IMAGE' => $products_image, 'BUTTON_BUY_NOW' => $buy_now);
und ersetze es mit:
/*build the DataArray WITH Attributes*/
$temp = $product->buildDataArray($products_new,"x");
/*build the DataArray WITH Attributes*/
$products_options_data = $temp["PRODUCTS_ATTRIBUTES_ARRAY"];
include( DIR_FS_CATALOG.'imedes_library/fragments/products_new.frag1.php');
$smarty->assign('language', $_SESSION['language']);
$smarty->assign('options', $products_options_data);
// set cache ID
$smarty->caching = 0;
$module = $smarty->fetch(CURRENT_TEMPLATE.'/module/product_options/'.$product->data['options_template']);
$temp["PRODUCTS_ATTRIBUTES_DISPLAY"]=$module;
/*get the Attributes for display*/
$module_content[] = $temp;
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/javascript/general.js.php
---------------------------------------------------------------------------------------------------
finde folgendes:
?>
<script type="text/javascript"><!--
und füge davor ein:
include ('imedes_library/aac.php');
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/module/new_products.html
---------------------------------------------------------------------------------------------------
finde folgendes:
{foreach name=aussen item=module_data from=$module_content}
und füge danach ein:
{$module_data.PRODUCTS_FORM_ACTION}
---------------------------------------------------------------------------------------------------
finde folgendes:
<td class="main">{$module_data.PRODUCTS_DESCRIPTION}<br />
und ersetze es mit:
<td class="main">{$module_data.PRODUCTS_DESCRIPTION}<br /> {if $module_data.PRODUCTS_ATTRIBUTES_DISPLAY}<br />{$module_data.PRODUCTS_ATTRIBUTES_DISPLAY}<br />{/if}
---------------------------------------------------------------------------------------------------
finde folgendes:
{$module_data.PRODUCTS_BUTTON_BUY_NOW}<br />
und ersetze es mit:
<input type="hidden" name="nichts" value="true" />
<table width="10" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="3"><img src="{$tpl_path}img/pixel_trans.gif" alt="" width="20" height="5" border="0" /></td></tr>
<tr>
<td rowspan="2">{$module_data.PRODUCTS_ADD_QTY}<input type="hidden" name="products_id" value="{$module_data.PRODUCTS_ID}" /></td>
<td><script language="javascript">document.write('<a href="#" onClick="setValue(\'{$module_data.PRODUCTS_FORM_NAME}\',\'+\'); return false;" title="" alt="">{$module_data.PRODUCTS_ADD_BUTTON}</a>');</script></td>
<td rowspan="2">{$module_data.PRODUCTS_ADD_CART_BUTTON}</td>
</tr>
<tr>
<td><script language="javascript">document.write('<a href="#" onClick="setValue(\'{$module_data.PRODUCTS_FORM_NAME}\',\'-\'); return false;" title="" alt="">{$module_data.PRODUCTS_SUBTRACT_BUTTON}</a>');</script></td>
</tr>
</table>
{$FORM_END}<br />
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/module/new_products_default.html
---------------------------------------------------------------------------------------------------
finde folgendes:
{php} $col++;
{/php}
<td class="main">
und füge danach ein:
{$module_data.PRODUCTS_FORM_ACTION}
---------------------------------------------------------------------------------------------------
finde folgendes:
</tr>
<tr>
<td class="main">{$module_data.PRODUCTS_DESCRIPTION}<br />
und füge danach ein:
{if $module_data.PRODUCTS_ATTRIBUTES_DISPLAY}<br />{$module_data.PRODUCTS_ATTRIBUTES_DISPLAY}<br />{/if}
---------------------------------------------------------------------------------------------------
finde folgendes:
{$module_data.PRODUCTS_BUTTON_BUY_NOW}<br />
und ersetze es mit:
<input type="hidden" name="nichts" value="true" />
<table width="10" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="3"><img src="{$tpl_path}img/pixel_trans.gif" alt="" width="20" height="5" border="0" /></td></tr>
<tr>
<td rowspan="2">{$module_data.PRODUCTS_ADD_QTY}<input type="hidden" name="products_id" value="{$module_data.PRODUCTS_ID}" /></td>
<td><script language="javascript">document.write('<a href="#" onClick="setValue(\'{$module_data.PRODUCTS_FORM_NAME}\',\'+\'); return false;" title="" alt="">{$module_data.PRODUCTS_ADD_BUTTON}</a>');</script></td>
<td rowspan="2">{$module_data.PRODUCTS_ADD_CART_BUTTON}</td>
</tr>
<tr>
<td><script language="javascript">document.write('<a href="#" onClick="setValue(\'{$module_data.PRODUCTS_FORM_NAME}\',\'-\'); return false;" title="" alt="">{$module_data.PRODUCTS_SUBTRACT_BUTTON}</a>');</script></td>
</tr>
</table>
---------------------------------------------------------------------------------------------------
finde folgendes:
</table>
</td>
{php}
und füge davor ein:
+ {$FORM_END}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/module/new_products_overview.html
---------------------------------------------------------------------------------------------------
finde folgendes:
{foreach name=aussen item=module_data from=$module_content}
und füge danach ein:
{$module_data.PRODUCTS_FORM_ACTION}
---------------------------------------------------------------------------------------------------
finde folgendes:
<td style="border-bottom: 1px solid; border-color: #cccccc;" class="main">{$module_data.PRODUCTS_DESCRIPTION}<br />
und füge danach ein:
{if $module_data.PRODUCTS_ATTRIBUTES_DISPLAY}<br />{$module_data.PRODUCTS_ATTRIBUTES_DISPLAY}<br />{/if}
---------------------------------------------------------------------------------------------------
finde folgendes:
{$module_data.PRODUCTS_BUTTON_BUY_NOW}</td>
und ersetze es mit:
<input type="hidden" name="nichts" value="true" />
<table width="10" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="3"><img src="{$tpl_path}img/pixel_trans.gif" alt="" width="20" height="5" border="0" /></td></tr>
<tr>
<td rowspan="2">{$module_data.PRODUCTS_ADD_QTY}<input type="hidden" name="products_id" value="{$module_data.PRODUCTS_ID}" /></td>
<td><script language="javascript">document.write('<a href="#" onClick="setValue(\'{$module_data.PRODUCTS_FORM_NAME}\',\'+\'); return false;" title="" alt="">{$module_data.PRODUCTS_ADD_BUTTON}</a>');</script></td>
<td rowspan="2">{$module_data.PRODUCTS_ADD_CART_BUTTON}</td>
</tr>
<tr>
<td><script language="javascript">document.write('<a href="#" onClick="setValue(\'{$module_data.PRODUCTS_FORM_NAME}\',\'-\'); return false;" title="" alt="">{$module_data.PRODUCTS_SUBTRACT_BUTTON}</a>');</script></td>
---------------------------------------------------------------------------------------------------
finde folgendes:
{/foreach}
</table>
</td>
und füge davor ein:
</table></td>
</tr>
{$FORM_END}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/module/product_info/product_info_v1.html
---------------------------------------------------------------------------------------------------
Finde folgendes:
{$ADD_CART_BUTTON}
Ersetze es durch:
<table width="10" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="3"><img src="{$tpl_path}img/pixel_trans.gif" alt="" width="20" height="5" border="0" /></td></tr>
<tr>
<td rowspan="2"><input type="hidden" name="products_id" value="{$PRODUCTS_ID}" /></td>
<td><script language="javascript">document.write('<a href="#" onClick="setValue(\'{$PRODUCTS_FORM_NAME}\',\'+\'); return false;" title="" alt="">{$PRODUCTS_ADD_BUTTON}</a>');</script></td>
<td rowspan="2">{$ADD_CART_BUTTON}</td>
</tr>
<tr>
<td><script language="javascript">document.write('<a href="#" onClick="setValue(\'{$PRODUCTS_FORM_NAME}\',\'-\'); return false;" title="" alt="">{$PRODUCTS_SUBTRACT_BUTTON}</a>');</script></td>
</tr>
</table>
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/module/product_listing/product_listing_v1.html
---------------------------------------------------------------------------------------------------
Finde folgendes:
<td align="left" class="main" style="border-bottom: 1px solid; border-color: #cccccc;">{$module_data.PRODUCTS_SHORT_DESCRIPTION}
und füge danach ein:
{$module_data.PRODUCTS_FORM_ACTION}
<br />
{if $module_data.PRODUCTS_ATTRIBUTES_DISPLAY}<br />{$module_data.PRODUCTS_ATTRIBUTES_DISPLAY}<br />{/if}
---------------------------------------------------------------------------------------------------
Finde folgendes:
</tr>
</table>
{/if}
{$module_data.PRODUCTS_BUTTON_BUY_NOW}</td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
{/foreach}
</table>
</td>
und ersetze es mit:
</tr>
</table>
{/if}
<table width="10" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="3"><img src="{$tpl_path}img/pixel_trans.gif" alt="" width="20" height="5" border="0" /></td></tr>
<tr>
<td rowspan="2">{$module_data.PRODUCTS_ADD_QTY}<input type="hidden" name="products_id" value="{$module_data.PRODUCTS_ID}" /></td>
<td><script language="javascript">document.write('<a href="#" onClick="setValue(\'{$module_data.PRODUCTS_FORM_NAME}\',\'+\'); return false;" title="" alt="">{$module_data.PRODUCTS_ADD_BUTTON}</a>');</script></td>
<td rowspan="2">{$module_data.PRODUCTS_ADD_CART_BUTTON}</td>
</tr>
<tr>
<td><script language="javascript">document.write('<a href="#" onClick="setValue(\'{$module_data.PRODUCTS_FORM_NAME}\',\'-\'); return false;" title="" alt="">{$module_data.PRODUCTS_SUBTRACT_BUTTON}</a>');</script></td>
</tr>
</table>
</td>
</tr>
</table> </td>
</tr>
</table> {$FORM_END}</td>
</tr>
{/foreach}
</table>
</td>
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/source/boxes/shopping_cart.php
---------------------------------------------------------------------------------------------------
finde folgendes:
$smarty->assign('box_CART', $box_shopping_cart);
und ersetze es mit:
if($output==1)
echo $box_shopping_cart;
else
$smarty->assign('box_CART', '<div id="divShoppingCard">'.$box_shopping_cart."</div>")
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
|