|
|||
|
Hi,
ich verusche schon seit einiger Zeit meine product liste zu erweitern. Ich wollte zwei Produkte nebeneinander haben. Der code sollte an der richtigen stelle sitzen, aber irgendwo ist der Wurm drin, es ist keine Veränderung zu sehen. hat einer ne idee? PHP-Code:
PHP-Code:
|
|
|||
|
Ersetze den Unten stehen den Code in dein product_listing_v1.html
von unten die ca. 15 reihe steht $maxcol="3" dort kannst du 2 oder 5 eingeben, je nachdem wie viele reihen du nebeneinander haben möchtest. Die Datei findest du im .........../templates/xt_default/xtCore/pages/product_listing/ Version Xt commerce 4 {$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_descript ion} {/if} <div class="hrproductpreview"></div> <table class="productPreview" width="100%" border="0" cellspacing="20" cellpadding="0"> <tr> {foreach name=aussen item=module_data from=$product_listing} {php} $col++; {/php} <!-- Produkt - Bild --> {if $module_data.products_image!=''} <td class="productPreviewImage"> <table> <tr> <td> <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> <!-- Überschrift --> <h2><a href="{$module_data.products_link}">{$module_data. products_name}</a></h2> <!-- Zeitbeschränkung, wenn vorhanden --> {if $module_data.date_available!=''} <ul class="info_info"> <li class="infoInfo">{txt key=TEXT_PRODUCT_AVAILABLE} {$module_data.date_available|date_format:"%A, %B %e, %Y"}</li> </ul> {/if} <!-- Stars {if $module_data.review_stars_rating} <div class="reviews_rating_light"><div class="reviews_rating_dark" style="width:{$module_data.review_stars_rating}%"> </div></div> {/if} --> <!-- Preis --> {if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'} <p class="price">{$module_data.products_price.formate d}</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} <!-- Anzeige-Button --> <div class="addtobasketlisting"> <table border="0" cellspacing="20" cellpadding="2"> <tr> <a href="{$module_data.products_link}">{button text=$smarty.const.BUTTON_PRODUCT_Link file='show.gif' type='form' btn_template='tpl_button_2.gif' space_left='25'}</a> </tr> </table> </div> {form type=formend} </td> </tr> </table> </td> {/if} {assign var=maxcol value=$smarty.const._STORE_MAX_CATEGORIES_PER_ROW} {php} $maxcol="3"; if ($col>=$maxcol) { $col=0; echo '</tr><tr>'; } {/php} {/foreach} </tr> </table> <div class="hrproductpreview"></div> <div id="NAVIGATION"> <div class="COUNT">{$NAVIGATION_COUNT}</div> <div class="PAGES">{$NAVIGATION_PAGES}</div> </div>{/if} {$error_listing} |
![]() |
| Lesezeichen |
| Stichworte |
| artikel, listing, nebeneinander, product |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| product listing | mini_78 | Shopbereich | 0 | 31.07.2005 13:52 |