Jump to content
xt:Commerce Community Forum

Plugin xt_startpage_products einbinden


btracht

Recommended Posts

Hi

habe jetzt schon länger nicht mehr mit dem shop gearbeitet und wollte fragen wie ich das genannte plugin in die Startseite einbauen kann.

Das Plugin ist natürlich aktiv, aber nichts erscheint.

Bin ich da richtig das Modul im Contentmanager und "index" einzubauen.

Wäre nett wenn mir jemand helfen könnte.

Es geht nur um die Standarteinstellung, es reicht wenn 9 Produkte unter dem Begrüßungstext angezeigt werden (per Zufall).

Die Startseite schaut sonst so leer aus.

Link to comment
Share on other sites

hallo,

man kann zwar die Anordnung variieren per:

{page name=xt_startpage_products type=user order_by='RAND()' tpl_type='product_listing'}

aber einen Shuffle macht das Teil von sich aus nicht ! Wenn Du mehr Produkte markierst als angezeigt werden soll, erscheint die normale Seitennavigation.

Es reicht dann aber, die einfach auszublenden.

Grüsse

Link to comment
Share on other sites

  • 4 weeks later...

hallo,

man kann zwar die Anordnung variieren per:

{page name=xt_startpage_products type=user order_by='RAND()' tpl_type='product_listing'}

Wo muss man diesen Code denn einfügen:confused: In der product_listing_start.html (meines Templates) steht folgendes:

{$categories}

{if $product_listing}

{if $heading_text}<h1>{$heading_text}</h1>{/if}

{if $PRODUCTS_DROPDOWN}{$PRODUCTS_DROPDOWN}{/if}



{if $sort_dropdown.options}

<div class="products_sort">

{form type=form name=sort_dropdown action='dynamic' method=get}

{form type=hidden name=page value='categorie'}

{form type=hidden name=cat value=$current_category_id}

{form type=select name=sorting value=$sort_dropdown.options default='' onchange='this.form.submit();'}

{form type=formend}

</div>

{/if}



{if $MANUFACTURER_DROPDOWN}

<div class="products_sort">

{if $MANUFACTURER_DROPDOWN}{$MANUFACTURER_DROPDOWN}{/if}

</div>

{/if}



{if $manufacturer}

{$manufacturer.MANUFACTURER.manufacturers_description}

{/if}



<div id="produktlisting">
<ul >
{foreach name=aussen item=module_data from=$product_listing}
{php} $col++;
{/php}
<li class="{cycle values='links,rechts'}">
<h2><a href="{$module_data.products_link}">{$module_data.products_name}</a></h2>
<div class="produktlisting_bild">{if $module_data.products_image!=''}<a href="{$module_data.products_link}">{img img=$module_data.products_image type=m_thumb class=productImageBorder alt=$module_data.products_name}</a>{/if}</div>
{*if $module_data.products_short_description}<p>{$module_data.products_short_description}</p>{else}<p>{$module_data.products_description}</p>{/if*}

<div class="produktlisting_preis">

{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}
</div>
<div class="produktlisting_buttons">
{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}
{form type=text name=qty value=1 style='display:none;'}
<a href="{$module_data.products_link}"><img style="padding-right:5px;" src="{$tpl_url_path}img/buttons/de/details.gif" alt="mehr zum Produkt" border="0" ></a>{button text=$smarty.const.BUTTON_ADD_CART file='button_in_cart.gif' type='form' btn_template='tpl_button_2.gif' space_left='25'}
{form type=formend}

{/if}

</div>
</li>
{php}
if ($col>=2) {
$col=0;
echo '</ul><div class="dummy"> </div><ul>';
}
{/php}
{/foreach}
</div>


<div class="clear"> </div>


<div id="NAVIGATION">

<div class="COUNT">{$NAVIGATION_COUNT}</div>

<div class="PAGES">{$NAVIGATION_PAGES}</div>

</div>{/if}

{$error_listing}[/HTML]

Link to comment
Share on other sites

Archived

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

×
  • Create New...