btracht Posted February 6, 2012 Report Share Posted February 6, 2012 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 More sharing options...
giller Posted February 6, 2012 Report Share Posted February 6, 2012 einfach mal in das xtdefault template schauen und da in die default.html Link to comment Share on other sites More sharing options...
objekt Posted February 6, 2012 Report Share Posted February 6, 2012 so wie @giller es beschrieben hat, und zusätzlich im Plugin die Anzahl der Produkte einstellen... Link to comment Share on other sites More sharing options...
PeterT Posted February 7, 2012 Report Share Posted February 7, 2012 "per Zufall" ... Geht das auch mit dem Plugin? Link to comment Share on other sites More sharing options...
giller Posted February 7, 2012 Report Share Posted February 7, 2012 ich glaube das macht es schon automatisch wenn du im plugin z.b. 9 Artikel einstellst. Aber dann z.b 12 Artikel der Startseite zuordnest Link to comment Share on other sites More sharing options...
oldbear Posted February 7, 2012 Report Share Posted February 7, 2012 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 More sharing options...
PeterT Posted February 8, 2012 Report Share Posted February 8, 2012 ich glaube das macht es schon automatisch wenn du im plugin z.b. 9 Artikel einstellst. Aber dann z.b 12 Artikel der Startseite zuordnest Leider nein, da werden dann weitere Seiten angelegt - die Reihenfolge bleibt aber beim Reload gleich. Link to comment Share on other sites More sharing options...
giller Posted February 8, 2012 Report Share Posted February 8, 2012 Smarty und der Zufall. | Nerd is as nerd does. Link to comment Share on other sites More sharing options...
oldbear Posted February 8, 2012 Report Share Posted February 8, 2012 meinen Beitrag nicht gelesen ..... Link to comment Share on other sites More sharing options...
giller Posted February 8, 2012 Report Share Posted February 8, 2012 {page name=xt_startpage_products type=user order_by='RAND(3)' tpl_type='product_listing'} also würde es so schon laufen? Link to comment Share on other sites More sharing options...
btracht Posted February 8, 2012 Author Report Share Posted February 8, 2012 Vielen vielen Dank an alle es geht so wie ich es mir vorgestellt habe. Link to comment Share on other sites More sharing options...
PeterT Posted March 7, 2012 Report Share Posted March 7, 2012 Auch die zufällige Anordnung? Mit dem Code von Oldbear? Link to comment Share on other sites More sharing options...
PeterT Posted March 7, 2012 Report Share Posted March 7, 2012 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 More sharing options...
objekt Posted March 7, 2012 Report Share Posted March 7, 2012 muss in der default.html eingebunden werden... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.