|
|||
|
Hallo,
ich soll von einem Kumpel den Shop anpassen. Er hatte den wunsch, dass ich die Ansicht ändern soll bei den Produkten. Also wenn man eine Kategorie gewählt hat die Auflistung der einzelnen Produkte wo finde ich dies im xtc4 ??? gruß Nook |
|
|||
|
Hallo,
öffne mal dein template "product_listing.html" und suche nach folgender Stelle: Code: ------ {foreach name=aussen item=module_data from=$module_content} und ersetze die Zeile mit Code: {foreach name=aussen item=module_data from=$module_content} {php} $col++; {/php} Ganz am Ende der Seite suche nach: Code: {/foreach} Hier wird der Tag wieder geschlosssen, alles ersetzen mit: Code: {php} if ($col>=2) { $col=0; echo '</tr><tr>'; } {/php} {/foreach} Die Zahl hinter "col>=" bestimmt die Anzahl der Spalten. wenn es Probleme gibt kann ich Dir auch meine product.html mal zusenden. Gruss fun-surfing Geändert von fun-surfing (05.05.2008 um 13:26 Uhr) |
|
|||
|
dies ist meine Datei module/new_products.html auch zu sehen unter www.windinfoshop.eu ist gleich mit product_listing. hmtl nur weniger source code.. habe ganz am ende es in rot markiert.
Hoffe jetzt ist es klar wie gesagt bei mehr spalten statt der 2 in Deinem fall 4 eintragen. sollte es immer noch Probleme geben kann ich es dir auch bauen :-) Gruss fun-surfing {config_load file="$language/lang_$language.conf" section="new_products"} <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="newProduct">{#heading_text#} </td> </tr> </table> <br /> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> {foreach name=aussen item=module_data from=$module_content} {php} $col++; {/php} <td class="main" align="center"> <table class="style1" style="FONT-FAMILY: Verdana; BORDER-COLLAPSE: collapse" bordercolor="#F29713" width="99%" border="1" cellpadding="0" cellspacing="0"> <tr> <td> <table class="style1" width="100%" border="0" cellpadding="0" cellspacing="0"> <!-- Neu eingefügt anfang --> <tr> <td colspan="2" bgcolor="#fde284"><strong><a href="{$module_data.PRODUCTS_LINK}">{$module_data. PRODUCTS_NAME}</a></strong></td> </tr> <!--Neu eingefügt Ende --> <tr> <td align="center" >{if $module_data.PRODUCTS_IMAGE}<a href="{$module_data.PRODUCTS_LINK}"><img src="{$module_data.PRODUCTS_IMAGE}" alt="{$module_data.PRODUCTS_NAME}" /></a>{/if}</td> <td class="main"><strong>{$module_data.PRODUCTS_PRICE} </strong><br /> {if $module_data.PRODUCTS_VPE}{$module_data.PRODUCTS_V PE}<br />{/if} {$module_data.PRODUCTS_TAX_INFO}<br>{$module_data. PRODUCTS_SHIPPING_LINK}<br /> {$module_data.PRODUCTS_BUTTON_BUY_NOW}<br /> <br> <a href="{$module_data.PRODUCTS_LINK}">[Mehr Details...]</a> <br> </td> </tr> <td colspan="2" class="main" align="left">{$module_data.PRODUCTS_DESCRIPTION}</td> </table> </td> </tr> </table> </td> {php} if ($col>=2) { $col=0; echo '</tr><tr>'; } {/php} {/foreach} </tr></table> Geändert von fun-surfing (06.05.2008 um 10:11 Uhr) |
|
|||
|
Hallo,
hat bei mir nicht geklappt. --> Smarty Error ! Ich hab dann einfach die new_products.html kopiert und in product_listing_v1.html umbenannt. trotzdem Danke für die anregung Gruß Andre Mein Shop an dem ich noch bastel : http://www.mexeos.de |
![]() |
| Lesezeichen |
| Stichworte |
| ändern, auflistung, produkt |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Produkt verlinken | m2pdesign2 | Admininterface | 7 | 07.07.2008 23:29 |
| xtc v2_0_rc_1_2 Gast warenkorb produkt ist weg | jan2 | Shopbereich | 0 | 08.11.2005 21:07 |
| 2 Warenbest?nde, 1 Produkt ? | Charon | Installation und Konfiguration | 1 | 26.02.2004 19:09 |