Jump to content
xt:Commerce Community Forum

Mehrere Produkte auf Startseite


Konair23

Recommended Posts

Eine product_listing_v2.html erstellen und den unten aufgeführten code hineinkopieren.

diese dann in den Template ordner xtCore/pages/product_listing/ kopieren

dann in dem aktiviertem Plugin "xt_startpage_products" die product_listing_v2.html als template auswählen.

über ($col>=3) stellt mann die spaltenanzahl ein in diesem Fall 3 Spalten

{$categories}
{if $product_listing}
{if $heading_text}<h1>{$heading_text}</h1>
{/if}
{if $PRODUCTS_DROPDOWN}{$PRODUCTS_DROPDOWN}{/if}
{if $sort_dropdown.options}
{/if}
{if $MANUFACTURER_DROPDOWN}
<div class="products_sort">
{if $MANUFACTURER_DROPDOWN}{$MANUFACTURER_DROPDOWN}{/if}
</div>
{/if}
{if $manufacturer}
{$manufacturer.MANUFACTURER.manufacturers_description}
{/if}

<table border="0" cellspacing="0" cellpadding="0">
<tr>
{foreach name=aussen item=module_data from=$product_listing}
{php} $col++;
{/php}
<td class="main">
<table class="productPreview" width="230" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="245" align="left" valign="top" class="productPreviewContent"><a href="{$module_data.products_link}">{img img=$module_data.products_image type=m_thumb class=productImageBorder alt=$module_data.products_name}</a></td>
</tr>
<tr>
<td class="productPreviewContent"> </td>
</tr>
<tr>
{if $module_data.products_image!=''}
{/if}
<td align="left" valign="top" class="productPreviewContent">
<h2><a href="{$module_data.products_link}">{$module_data.products_name}</a></h2>
<p>{if $module_data.date_available!=''}</p>
<p>{/if}
{if $module_data.review_stars_rating} </p>

{/if}

{if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'}
<p class="price">{$module_data.products_price.formated}</p>
<p class="taxandshippinginfo">{$module_data.products_tax_info.tax_desc}{if $module_data.products_shipping_link}<a href="{$module_data.products_shipping_link}" target="_blank" rel="nofollow">{txt key=TEXT_EXCL_SHIPPING}</a>{/if}</p>
{if $module_data.base_price}<p class="vpe">{$module_data.base_price.price} {txt key=TEXT_SHIPPING_BASE_PER} {$module_data.base_price.vpe.name}</p>{/if}
{/if}

{if $module_data.allow_add_cart eq 'true'}
{form type=form name=product action='dynamic' link_params=getParams method=post}
{form type=hidden name=action value=add_product}
{form type=hidden name=product value=$module_data.products_id}
<div class="addtobasketlisting">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="30%" align="left" >{form type=text name=qty value=1 style='width:25px;'}</td>
<td width="70%" align="left">{button text=$smarty.const.BUTTON_ADD_CART file='button_in_cart.gif' type='form' btn_template='tpl_button_2.gif'}</td>
</tr>
</table>
</div>
{form type=formend}
{/if} </td>
</tr>
</table><br>
<br>

</td>
{php}
if ($col>=3) {
$col=0;
echo '</tr><tr>';
}
{/php}
{/foreach}
</tr>
</table>

<div id="NAVIGATION">
<div class="COUNT">{$NAVIGATION_COUNT}</div>
<div class="PAGES">{$NAVIGATION_PAGES}</div>
</div>{/if}
{$error_listing}[/php]

Link to comment
Share on other sites

Archived

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

×
  • Create New...