|
|||
|
Hallo
Ich bin momentan am Design meines neuen Shops und würde gerne folgendes Problem lösen: Ich möchte gerne auf der Startseite des Veyton Shops die Produkte nebeneinander und wenn es viele sind untereinander anordnen (siehe Bild). Habe herausgefunden, dass dies im Ordner Templates in der Datei product_listing_v1 geschehen muss. Beim mir reihen sich nun alle Produkte nebeneinander auf. Wie kriege ich es hin, dass es die Produkte nach 4 Produkten auf einer neuen Zeile darstellt? Die Fotos sollte mein Problem etwas besser erklären. Meine index.html habe ich angefügt (betrifft zeile 26-35) Ist: ![]() Soll: ![]() Meine product_listing_v1.html Code:
{$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 class="hrproductpreview"></div>
<table class="productPreview" width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
{foreach name=aussen item=module_data from=$product_listing}
{if $module_data.is_designerproduct_status != 1 }
{if $module_data.products_image!=''}<td><h2><a href="{$module_data.products_link}">{$module_data.products_name}</a></h2><br /><a href="{$module_data.products_link}">{img img=$module_data.products_image type=m_info class=productImageBorder alt=$module_data.products_name}</a><br />{if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'}<p class="price">{$module_data.products_price.formated}</p></td>{/if}
</div>{/if}{/if}
{/foreach}</tr>
</table>
<div id="NAVIGATION">
<div class="COUNT">{$NAVIGATION_COUNT}</div>
<div class="PAGES">{$NAVIGATION_PAGES}</div>
</div>{/if}
{$error_listing}
|
|
|||
|
Hallo
für Produkte auf der Startseite gibt es ja ein Plugin "xt_startpage_products" kannst du dann auch Änderungen vornehmen, die dann für alle gelten bzw. du machst eine Kopie, nutzt es und aktivierst es nur für den gewünschten Mandanten. Wie es sich mit CSS lösen können, schau ich gleich mal. Edit: Kannst was mit "weight" machen und bricht dann von alleine um. Viele Grüße, df:bug
__________________
xt:commerce 4 VEYTON-Reseller, Service-Partner & Solution-Partner shopx.de - shopx.de/blog - twitter.com/shopxperts - Kostenlose Plugins - shopxperts Geändert von df:bug (23.04.2009 um 11:01 Uhr) |
|
|||
|
du kannst dir für die Startseite ein extra Template machen, im Plugin Startseite kannst du ein Template angeben welches dort für die Auflistung der Produkte genutz wird.
Hier solltest Du ein Template schreiben welches dir dir Artikel als Liste ausgibt. So erhälst du die von dir gewünschte Ausgabe auf einfachem Wege. Damit das ganze noch stabil in allen Browsern läuft könntest du variable css classen für die <li> elemente verwenden. Mein Code sieht so aus : PHP-Code:
![]() Natürlich musst du dein Stylesheet erweitern, sprich die Classen für die <li>`s z.B auf float:left formatieren etc.. etwas Erfahrung in CSS sollte also vorhanden sein. |
|
|||
|
Dank der Hilfe von stwinger, herzlichen Dank für den genialen Input
, habe ich's folgendermassen gelöst:Meine product_listing_v1.html HTML-Code:
{$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}
{foreach name=aussen item=module_data from=$product_listing}
<div class="{cycle values="box1,box2,box3,box4"}">
<div align="center">
<h2><a href="{$module_data.products_link}">{$module_data.products_name}</a></h2>
{if $module_data.products_image!=''}<a href="{$module_data.products_link}" title= "{$module_data.products_name}">{img img=$module_data.products_image type=m_info class=c alt=$module_data.products_name}</a>{/if}
{if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'}
<p class="price">{$module_data.products_price.formated}</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>
{/foreach}
<div id="NAVIGATION">
<div class="COUNT">{$NAVIGATION_COUNT}</div>
<div class="PAGES">{$NAVIGATION_PAGES}</div>
</div>{/if}
{$error_listing}
Code:
.box1{
float: left;
height: 180px;
width: 155px;
margin-top: 5px;
margin-right: 20px;
margin-bottom: 10px;
margin-left: 0px;
border: 1px solid #000000;
}
.box2{
height: 180px;
width: 155px;
border: 1px solid #000000;
float: left;
margin-top: 5px;
margin-right: 20px;
margin-bottom: 10px;
margin-left: 0px;
}
.box3{
float: left;
height: 180px;
width: 155px;
margin-top: 5px;
margin-right: 20px;
margin-bottom: 10px;
margin-left: 0px;
border: 1px solid #000000;
}
.box4{
float: left;
height: 180px;
width: 155px;
margin-top: 5px;
margin-right: 0px;
margin-bottom: 10px;
margin-left: 0px;
border: 1px solid #000000;
}
|
|
|||
|
Zitat:
|
![]() |
| Lesezeichen |
| Stichworte |
| design, produkte, startseite |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Fehlermeldung bei csv-Import der Produkte | topgeschenkewelt | Admininterface | 0 | 20.03.2009 16:24 |
| auf der Startseite wird nichts mehr ausgelesen ! | schragetuning | Allgemeine Diskussionen | 0 | 16.04.2008 11:05 |
| Zusätzliche Spalte mit Boxen nur auf Startseite (main_content.html) | x-nilo | Installation und Konfiguration | 2 | 27.01.2008 19:04 |