Jump to content
xt:Commerce Community Forum

templates liegen "übereinander"


ihoppe

Recommended Posts

Hallo,

ich habe eine spezielle Suchabfrage in das Skript advanced_search_result.php eingefügt.

Als Ergebnis erhalte ich eine Seite, die mir zwar die gewünschten Suchergebnisse liefert, aber einige div-container sind doppelt teilweise dreifach (header, navigation, button_container, sidebar_box und copyright).

Die Variablen werden über ein Formular mit method=post ohne target an dieses Skript übergeben:


<?php
/* -----------------------------------------------------------------------------------------
$Id: advanced_search_result.php 1141 2005-08-10 11:31:36Z novalis $

XT-Commerce - community made shopping
http://www.xt-commerce.com

Copyright (c) 2005 XT-Commerce
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(advanced_search_result.php,v 1.68 2003/05/14); www.oscommerce.com
(c) 2003 nextcommerce (advanced_search_result.php,v 1.17 2003/08/21); www.nextcommerce.org

Released under the GNU General Public License
---------------------------------------------------------------------------------------*/

include_once ('includes/application_top.php');
// create smarty elements
$smarty = new Smarty;
// include boxes
require (DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/source/boxes.php');
// include needed functions
require_once (DIR_FS_INC.'xtc_parse_search_string.inc.php');
require_once (DIR_FS_INC.'xtc_get_subcategories.inc.php');
require_once (DIR_FS_INC.'xtc_get_currencies_values.inc.php');

/*
* check search entry
*/

$error = 0; // reset error flag to false
$errorno = 0;
$keyerror = 0;





$select_str = "SELECT distinct
Unterabfrage.*,

p.products_id,
p.products_price,
p.products_model,
p.products_quantity,
p.products_shippingtime,
p.products_fsk18,
p.products_image,
p.products_weight,
p.products_tax_class_id,
pd.products_name,
pd.products_short_description,
pd.products_description

FROM (
SELECT products_gewinde.products_id, p.products_status, pd.language_id
FROM products_gewinde, products_modelle_gewinde, products AS p , products_description AS pd


WHERE products_modelle_gewinde.Modell = '$Modell'
AND products_gewinde.AA >= products_modelle_gewinde.A
AND products_gewinde.BB >= products_modelle_gewinde.B
AND products_gewinde.CC >= products_modelle_gewinde.C
AND products_gewinde.DD <= products_modelle_gewinde.D
) as Unterabfrage
INNER JOIN products AS p
ON Unterabfrage.products_id=p.products_id
LEFT JOIN products_description AS pd ON (p.products_id = pd.products_id)";



$where_str = " WHERE p.products_status = '1' "." AND pd.language_id = '".(int) $_SESSION['languages_id']."'";


//glue together
$listing_sql = $select_str.$where_str;


require (DIR_WS_MODULES.FILENAME_PRODUCT_LISTING);

$smarty->assign('language', $_SESSION['language']);
$smarty->caching = 0;
if (!defined(RM))

$smarty->load_filter('output', 'note');
$smarty->display(CURRENT_TEMPLATE.'/index.html');
include ('includes/application_bottom.php');

?>[/PHP]

Muss ich einen bestimmten Frame ansprechen?

Vielen Dank für die Hilfe im voraus. Bin Anfänger in Sachen XT.

MfG

Ines Hoppe

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...