bemybag Posted November 5, 2003 Report Share Posted November 5, 2003 Hallo Chefs, wird Beta2 inklusive dem X-Sell modul sein? Danke. Link to comment Share on other sites More sharing options...
bemybag Posted November 6, 2003 Author Report Share Posted November 6, 2003 Hallallallooh... Link to comment Share on other sites More sharing options...
mzanier Posted November 6, 2003 Report Share Posted November 6, 2003 Originally posted by bemybag@Nov 6 2003, 21:48 PM Hallallallooh... jo, ich weiss nur noch nicht ob als zus?tzliches modul oder eingebaut, da wir das komplett neu coden m?ssen. mfg, mario Link to comment Share on other sites More sharing options...
Tom Posted December 23, 2003 Report Share Posted December 23, 2003 Hallo! Ab wann wird das Cross Selling Modul zur Verf?gung stehen? Wie w?rde das als eigenes Modul aussehen? mfg Tom Link to comment Share on other sites More sharing options...
mzanier Posted December 23, 2003 Report Share Posted December 23, 2003 Originally posted by Tom@Dec 23 2003, 15:14 PM Hallo! Ab wann wird das Cross Selling Modul zur Verf?gung stehen? Wie w?rde das als eigenes Modul aussehen? mfg Tom ab wann eins zur verf?gung stehen wird ? kann ich nicht sagen, da wir derzeit keine neuen module entwickeln, sondern einige auftragsarbeiten durchf?hren und die restliche zeit versuchen xtc zu stabilisieren. das cross selling modul von osc ist absolut unbrauchbar, da dies nicht unsere standarts erf?llt, und auch nicht register_globals = off kompatibel ist. es steht aber jedoch jedem frei das osc modul auf unsere architektur anzupassen und register_globals kompatibel zu machen. mfg, mario Link to comment Share on other sites More sharing options...
woschwarz Posted December 28, 2003 Report Share Posted December 28, 2003 Hallo, die Tabellen f?r xsell sind ja noch von einer ?lteren Beta Version enthalten. Ich habe mal auf die schnelle das also_purchases umgestrickt damit die cross-selling Produkte richtig dargestellt werden. Folgendes Script mit der Datei /includes/modules/xsell_products.php ersetzen: <?php /* ----------------------------------------------------------------------------------------- $Id: xsell_products.php,v 1.1 2003/09/06 22:13:54 fanta2k Exp $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright © 2003 XT-Commerce ----------------------------------------------------------------------------------------- based on: © 2000-2001 The Exchange Project (earlier name of osCommerce) © 2002-2003 osCommercebased on original files from OSCommerce CVS 2.2 2002/08/28 02:14:35 www.oscommerce.com © 2003 nextcommerce (xsell_products.php,v 1.5 2003/08/13); www.nextcommerce.org Released under the GNU General Public License ----------------------------------------------------------------------------------------- Third Party contribution: Cross-Sell (X-Sell) Admin 1 Autor: Joshua Dechant (dreamscape) Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ $module_smarty= new Smarty; $module_smarty->assign('tpl_path',DIR_WS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/'); $module_content=array(); $filename=''; require_once(DIR_FS_INC . 'xtc_get_short_description.inc.php'); if (isset($_GET['products_id'])) { $xsell_query = xtc_db_query("select distinct p.products_id, p.products_image, pd.products_name from " . TABLE_PRODUCTS_XSELL . " xp, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where xp.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and p.products_status = '1' order by xp.products_id asc limit " . MAX_DISPLAY_ALSO_PURCHASED); echo ("select distinct p.products_id, p.products_image, pd.products_name from " . TABLE_PRODUCTS_XSELL . " xp, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where xp.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and p.products_status = '1' order by xp.products_id asc limit " . MAX_DISPLAY_ALSO_PURCHASED); $num_products_ordered = xtc_db_num_rows($xsell_query); if ($num_products_ordered >= MIN_DISPLAY_ALSO_PURCHASED) { $row = 0; $module_content = array(); while ($xsell = xtc_db_fetch_array($xsell_query)) { $xsell['products_name'] = xtc_get_products_name($xsell['products_id']); $xsell['products_short_description'] = xtc_get_short_description($xsell['products_id']); if ($_SESSION['customers_status']['customers_status_show_price']!='0') { $module_content[]=array( 'PRODUCTS_NAME' => $xsell['products_name'], 'PRODUCTS_DESCRIPTION' => $xsell['products_short_description'], 'PRODUCTS_PRICE' => xtc_get_products_price($xsell['products_id'],$price_special=1,$quantity=1), 'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']), 'PRODUCTS_IMAGE' => DIR_WS_THUMBNAIL_IMAGES . $xsell['products_image'], 'BUTTON_BUY_NOW'=>'<a href="' . xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('action')) . 'action=buy_now&BUYproducts_id=' . $xsell['products_id'], 'NONSSL') . '">' . xtc_image_button('button_buy_now.gif', TEXT_BUY . $xsell['products_name'] . TEXT_NOW)); } else { $module_content[]=array( 'PRODUCTS_NAME' => $orders['products_name'], 'PRODUCTS_DESCRIPTION' => $orders['products_short_description'], 'PRODUCTS_PRICE' => xtc_get_products_price($orders['products_id'],$price_special=1,$quantity=1), 'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $orders['products_id']), 'PRODUCTS_IMAGE' => DIR_WS_THUMBNAIL_IMAGES . $orders['products_image']); } $row ++; } $module_smarty->assign('language', $_SESSION['language']); $module_smarty->assign('module_content',$module_content); // set cache ID if (USE_CACHE=='false') { $module_smarty->caching = 0; $module= $module_smarty->fetch(CURRENT_TEMPLATE.'/module/also_purchased.html'); } else { $module_smarty->caching = 1; $module_smarty->cache_lifetime=CACHE_LIFETIME; $module_smarty->cache_modified_check=CACHE_CHECK; $cache_id = $_SESSION['language'].$_GET['products_id'].$_SESSION['customers_status']['customers_status_name']; $module= $module_smarty->fetch(CURRENT_TEMPLATE.'/module/also_purchased.html',$cache_id); } $info_smarty->assign('MODULE_also_purchased',$module); } } ?> Etwas Kleinarbeit (xsell.html und Heading Text) ist noch selbst zu machen. Momentan k?nnt Ihr nur manuel z.B. mit PHPmyAdmin die Daten in die products_xsell eintragen. Arbeite gerade noch einem Im- und Export f?r XTC das auch XSELL unterst?tzen wird. Viel Spa? damit, Wolfgang Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.