wow! also wir haben es mittlerweile "manuell" hinbekommen. Aber funktioniert dein Modul auch bei den modulen wie crosselling, neue produkte etc?
Beiträge von jschma
-
-
Hallo zusammen,
gibt es irgendeine Möglichkeit auf der Produktübersichtsseite (product_listing) statt dem "Zum Warenkorb"-Button ein Input-Feld anzuzeigen, in das man die gewünschte Menge eintragen kann?
Ich habe es bereits mit diesen Anpassungen versucht http://www.xtc-load.de/2009/12/mengen…kategorieliste/ aber vermutlich funktioniert das bei CommerceSEO nicht
Vielen Dank für jeden Tip!
-
@nico
Meintest Du diese Datei oder doch eine andere? Danke für jede Hilfe. Konnte das Problem bisher noch immer nicht lösen -
mmh... also im frontend wird einfach nix ausgegeben, ein leerer span. Aber ich denke das meinst du nicht
Wo finde ich denn den Code den du meinst?EDIT
Hier der gesamte Inhalt der products_new.phpHTML
Alles anzeigen<?php /* ----------------------------------------------------------------------------------------- $Id: products_new.php 1292 2005-10-07 16:10:55Z mz $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce ----------------------------------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommerce(products_new.php,v 1.25 2003/05/27); www.oscommerce.com (c) 2003 nextcommerce (products_new.php,v 1.16 2003/08/18); www.nextcommerce.org Released under the GNU General Public License ----------------------------------------------------------------------------------------- Third Party contributions: Enable_Disable_Categories 1.3 Autor: Mikel Williams | mikel@ladykatcostumes.com Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ include ('includes/application_top.php'); // create smarty elements $smarty = new Smarty; // include boxes require (DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/source/boxes.php'); // include needed function require_once (DIR_FS_INC.'xtc_date_long.inc.php'); require_once (DIR_FS_INC.'xtc_get_vpe_name.inc.php'); $breadcrumb->add(NAVBAR_TITLE_PRODUCTS_NEW, xtc_href_link(FILENAME_PRODUCTS_NEW)); require (DIR_WS_INCLUDES.'header.php'); $products_new_array = array (); $fsk_lock = ''; if ($_SESSION['customers_status']['customers_fsk18_display'] == '0') { $fsk_lock = ' and p.products_fsk18!=1'; } if (GROUP_CHECK == 'true') { $group_check = " and p.group_permission_".$_SESSION['customers_status']['customers_status_id']."=1 "; } if (MAX_DISPLAY_NEW_PRODUCTS_DAYS != '0') { $date_new_products = date("Y.m.d", mktime(1, 1, 1, date(m), date(d) - MAX_DISPLAY_NEW_PRODUCTS_DAYS, date(Y))); $days = " and p.products_date_added > '".$date_new_products."' "; } $products_new_query_raw = "select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id,p.products_shippingtime, p.products_image,p.products_vpe_status,p.products_vpe_value,p.products_vpe,p.products_fsk18, s.specials_new_products_price from ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd, ".TABLE_SPECIALS." s where p.products_status = '1' and s.products_id = p.products_id and p.products_id = pd.products_id ".$group_check." ".$fsk_lock." and pd.language_id = '".(int) $_SESSION['languages_id']."' and s.status = '1' order by s.specials_date_added DESC"; $products_new_split = new splitPageResults($products_new_query_raw, $_GET['page'], MAX_DISPLAY_PRODUCTS_NEW, 'p.products_id'); if (($products_new_split->number_of_rows > 0)) { $smarty->assign('NAVIGATION_BAR', '<div style="width:100%;font-size:smaller"><div style="float:left">'.$products_new_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW).'</div><div style="float:right">'.TEXT_RESULT_PAGE.' '.$products_new_split->display_links(MAX_DISPLAY_PAGE_LINKS, xtc_get_all_get_params(array ('page', 'info', 'x', 'y'))).'</div><br style="clear:both" /></div>'); } $module_content = ''; if ($products_new_split->number_of_rows > 0) { $products_new_query = xtc_db_query($products_new_split->sql_query); while ($products_new = xtc_db_fetch_array($products_new_query)) { $products_price = $xtPrice->xtcGetPrice($products_new['products_id'], $format = true, 1, $products_new['products_tax_class_id'], $products_new['products_price'], 1); $vpePrice = ''; if ($products_new['products_vpe_status'] == 1 && $products_new['products_vpe_value'] != 0.0) $vpePrice = $xtPrice->xtcFormat($products_price['plain'] * (1 / $products_new['products_vpe_value']), true).TXT_PER.xtc_get_vpe_name($products_new['products_vpe']); $buy_now = ''; if ($_SESSION['customers_status']['customers_fsk18'] == '1') { if ($products_new['products_fsk18'] == '0') $buy_now = '<a href="'.xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array ('action')).'action=buy_now&BUYproducts_id='.$products_new['products_id'], 'NONSSL').'">'.xtc_image_button('button_buy_now.gif', TEXT_BUY.$products_new['products_name'].TEXT_NOW).'</a>'; } else { $buy_now = '<a href="'.xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array ('action')).'action=buy_now&BUYproducts_id='.$products_new['products_id'], 'NONSSL').'">'.xtc_image_button('button_buy_now.gif', TEXT_BUY.$products_new['products_name'].TEXT_NOW).'</a>'; } if ($products_new['products_image'] != '') { $products_image = DIR_WS_THUMBNAIL_IMAGES.$products_new['products_image']; } else { $products_image = ''; } if ($_SESSION['customers_status']['customers_status_show_price'] != 0) { $tax_rate = $xtPrice->TAX[$products_new['products_tax_class_id']]; // price incl tax if ($tax_rate > 0 && $_SESSION['customers_status']['customers_status_show_price_tax'] != 0) { $tax_info = sprintf(TAX_INFO_INCL, $tax_rate.' %'); } // excl tax + tax at checkout if ($tax_rate > 0 && $_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) { $tax_info = sprintf(TAX_INFO_ADD, $tax_rate.' %'); } // excl tax if ($tax_rate > 0 && $_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 0) { $tax_info = sprintf(TAX_INFO_EXCL, $tax_rate.' %'); } } $ship_info=""; if (SHOW_SHIPPING=='true') { $ship_info=' '.SHIPPING_EXCL.'<a href="javascript:newWin=void(window.open(\''.xtc_href_link(FILENAME_POPUP_CONTENT, 'coID='.SHIPPING_INFOS).'\', \'popup\', \'toolbar=0, width=640, height=600\'))"> '.SHIPPING_COSTS.'</a>'; } $module_content[] = array ('PRODUCTS_NAME' => $products_new['products_name'], 'PRODUCTS_SHIPPING_LINK' => $ship_info,'PRODUCTS_TAX_INFO' => $tax_info, 'PRODUCTS_SHORT_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, 'PRODUCTS_BUTTON_BUY_NOW' => $buy_now); } } else { $smarty->assign('ERROR', TEXT_NO_NEW_PRODUCTS); } $smarty->assign('language', $_SESSION['language']); $smarty->caching = 0; $smarty->assign('module_content', $module_content); $main_content = $smarty->fetch(CURRENT_TEMPLATE.'/module/new_products_overview.html'); $smarty->assign('main_content', $main_content); $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'); ?>
-
hi & dnake für deine Antwort.
Ich denke du meinst diese Zeile:
Code$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, 'PRODUCTS_BUTTON_BUY_NOW' => $buy_now);
ich habe PRODUCTS_BUTTON_BUY_NOW und BUTTON_BUY_NOW versucht, beides ohne Effekt. (Zeile 108)
-
Hallo zusammen!
Auf der Kategorieseite werden die neuen Produkte angezeigt, diese habe ich so angepasst, wie ich es mir vorstelle. Allerdings schaffe ich es einfach nicht, dass der Kauf-Button angezeigt wird, ich suche seit stunden und habe x-verschiedene Dinge probiert... er wird einfach nicht angezeigt.
Meine bisherigen Anpassungen habe ich direkt in der new_products.html vorgenommen und es hat wie gesagt funktioniert, lediglich der Kauf-Button will nicht.
Evtl hilft mein Code um das Problem einzugrenzen:
HTML
Alles anzeigen{config_load file="$language/lang_$language.conf" section="new_products"} <h2 class="new_products">Neue Produkte</h2> <ul class="product_listing_gallery"> {foreach name=aussen item=module_data from=$module_content} {php} $col++; {/php} <li> <h2><a href="{$module_data.PRODUCTS_LINK}" title="{$module_data.PRODUCTS_NAME}">{$module_data.PRODUCTS_NAME}</a></h2> <div class="product_new_pic"> {if $module_data.PRODUCTS_IMAGE} <div align="center"> <a href="{$module_data.PRODUCTS_LINK}" title="{$module_data.PRODUCTS_NAME}"> <img class="img_border" src="{$module_data.PRODUCTS_IMAGE}" alt="{$module_data.PRODUCTS_NAME}" title="{$module_data.PRODUCTS_NAME}" /> </a> </div> {/if} </div> <div class="bg_product_new"> <div class="product_listing_gallery_detail_cat"> {$module_data.PRODUCTS_SHORT_DESCRIPTION|truncate:75:"...":true} </div> <div class="product_listing_gallery_price_cat"> <strong> {$module_data.PRODUCTS_PRICE} </strong> <br /> {if $module_data.PRODUCTS_VPE}<span style="font-size:10px">Grundpreis: {$module_data.PRODUCTS_VPE}</span><br />{/if} <span class="popup_link_cat"> {$module_data.PRODUCTS_TAX_INFO} {$module_data.PRODUCTS_SHIPPING_LINK} </span> <br /><br /> <span class="btn_buy">{$module_data.PRODUCTS_BUTTON_BUY_NOW}</span> <span class="btn_detail"><a href="{$module_data.PRODUCTS_LINK}"><img src="{$tpl_path}/img/btn_product_detail.gif" /></a></span> </div> </li> {/foreach} </ul> <br style="clear:both" />
Ich versuche den Kauf-Button hiermit einzubinden: {$module_data.PRODUCTS_BUTTON_BUY_NOW} Im Frontend im Quelltext erscheint aber nur der leere <span class="btn_buy"></span>
Ich bin für jeden Tip überaus dankbar!
Viele Grüße,
jschma