Jump to content
xt:Commerce Community Forum
Sign in to follow this  
haski07

Bestsellers Mit Bild

Recommended Posts

Hallo,

ihr m?sst die Datei "box_best_sellers.html" aus eurem Template bearbeiten.

ich habs so gemacht: (du musst in der schleife das bild mit einf?gen)


{foreach name=aussen item=box_data from=$box_content}

<tr>

<td colspan="2" class="main" align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="{$box_data.LINK}"><img src="{$box_data.IMAGE}" border="0"></a></font></td>

</tr>

<tr> 

<td style="border-bottom: 1px solid; border-color: #cccccc;" width="5" class="main"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">{$box_data.ID}.</font></td>

<td style="border-bottom: 1px solid; border-color: #cccccc;" class="main"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="{$box_data.LINK}">{$box_data.NAME}</a></font></td>

</tr>

{/foreach}

Gru?

Steffen

Share this post


Link to post
Share on other sites

Hallo

für Version 3.0.4 SP2.1

Einfügen des Bildes:

in templates/<dein Template>/boxes/box_best_sellers.html

nach der Zeile ca.22

Code:

<td style="border-bottom: 1px solid; border-color: #cccccc;" class="boxText"><table width="100%" border="0" cellpadding="0" cellspacing="0">

den Code

Code:

<td class="main" align=center valign="top">{if $box_data.PRODUCTS_IMAGE}<a href="{$box_data.PRODUCTS_LINK}"><img src="{$box_data.PRODUCTS_IMAGE}" border="0">{/if}</td></tr>

einfügen

############################################

für einen zusätzlichen Scroll

die Zeile ca. 15

Code:

<td class="boxText"><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">

durch

Code:

<td class="boxText"><MARQUEE behavior= "scroll" align= "center" direction= "up" height="140" scrollamount= "2" scrolldelay= "70" onmouseover='this.stop()' onmouseout='this.start()'><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">

ersetzen

die Richtung, Geschwindigkeit, usw kann beliebig angepasst werden

danach wieder den Inhalt von cache und Template_c loeschen

desweiteren ist die Anzeige von der Anzahl verkaufte Produkten

und der Einstellung in der boxes.php abhängig

Gruß

Norbert

Share this post


Link to post
Share on other sites

"...desweiteren ist die Anzeige von der Anzahl verkaufte Produkten

und der Einstellung in der boxes.php abhängig..."

Hier ist sicher die "/templates/xxx/source/boxes.php gemeint.

Was muss man hier ändern? Aktuell:

<?php

/* -----------------------------------------------------------------------------------------

$Id: boxes.php 1298 2005-10-09 13:14:44Z mz $

XT-Commerce - community made shopping

http://www.xt-commerce.com

Copyright © 2003 XT-Commerce

-----------------------------------------------------------------------------------------

Released under the GNU General Public License

---------------------------------------------------------------------------------------*/

define('DIR_WS_BOXES',DIR_FS_CATALOG .'templates/'.CURRENT_TEMPLATE. '/source/boxes/');

include(DIR_WS_BOXES . 'categories.php');

include(DIR_WS_BOXES . 'manufacturers.php');

if ($_SESSION['customers_status']['customers_status_show_price']!='0') {

require(DIR_WS_BOXES . 'add_a_quickie.php');

}

require(DIR_WS_BOXES . 'last_viewed.php');

if (substr(basename($PHP_SELF), 0,8) != 'advanced') {require(DIR_WS_BOXES . 'whats_new.php'); }

require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'content.php');

require(DIR_WS_BOXES . 'information.php');

include(DIR_WS_BOXES . 'languages.php');

if ($_SESSION['customers_status']['customers_status_id'] == 0) include(DIR_WS_BOXES . 'admin.php');

require(DIR_WS_BOXES . 'infobox.php');

require(DIR_WS_BOXES . 'loginbox.php');

include(DIR_WS_BOXES . 'newsletter.php');

if ($_SESSION['customers_status']['customers_status_show_price'] == 1) include(DIR_WS_BOXES . 'shopping_cart.php');

if ($product->isProduct()) include(DIR_WS_BOXES . 'manufacturer_info.php');

if (isset($_SESSION['customer_id'])) include(DIR_WS_BOXES . 'order_history.php');

if (!$product->isProduct()) {

include(DIR_WS_BOXES . 'best_sellers.php');

}

if (!$product->isProduct()) {

include(DIR_WS_BOXES . 'specials.php');

}

if ($_SESSION['customers_status']['customers_status_read_reviews'] == 1) require(DIR_WS_BOXES . 'reviews.php');

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'currencies.php');

}

$smarty->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/');

?>

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...