thepro Posted April 9, 2013 Report Share Posted April 9, 2013 Hallo Zusammen, ich bin ziemlich neu hier und habe noch nicht sehr viele Erfahrungen mit der Version 4.1 Ich würde in meinem Shop gerne die Artikelkurzbeschreibung/Artikelbeschreibung in der Produktübersicht anzeigen lassen. Siehe: http://thepro-parts.de/shop/de/ta-instruments-style Unterhalb der Versandkosten soll noch eine zusätzliche Information bei allen Artikeln stehen (in diesem Fall der Text aus der Artikelbeschreibung) z.B. "Vergleichbar mit XYZ PN: xyz1 ". Wie kann ich die Artikelübersicht um diesen Wert erweitern? Um welchen Code muss die product_listing_v1.html geändert werden oder ist das die falsche Datei? Wäre Euch für jede Hilfe sehr dankbar Hier der Inhalt der product_listing_v1.html: <div class="product-listing"> {$categories} {if $product_listing} {if $heading_text} {if $page neq 'index'} <h1>{$heading_text}</h1> {else} <h2>{$heading_text}</h2> {/if} {/if} {if $PRODUCTS_DROPDOWN} {$PRODUCTS_DROPDOWN} {/if} {if $manufacturer.MANUFACTURER.manufacturers_image} <p>{img img=$manufacturer.MANUFACTURER.manufacturers_image type=m_info}</p> {/if} {if $manufacturer} <p class="manufacturers-description">{$manufacturer.MANUFACTURER.manufacturers_description}</p> {/if} {if $NAVIGATION_PAGES || $sort_dropdown.options} <div class="products-sort-pages"> {if $sort_dropdown.options} <div class="products-sort"> <label for="sort_dropdown_top">{txt key=TEXT_SORT_BY}</label> {form type=form name=sort_dropdown action='dynamic' method=get} {if isset($current_manufacturer_id)}{form type=hidden name=page value='manufacturers'} {else} {form type=hidden name=page value='categorie'} {/if} {if isset($current_category_id)}{form type=hidden name=cat value=$current_category_id}{/if} {if isset($current_manufacturer_id)}{form type=hidden name=mnf value=$current_manufacturer_id}{/if} {form params='id="sort_dropdown_top"' type=select name=sorting value=$sort_dropdown.options default=$sort_default onchange='this.form.submit();'} {form type=formend} </div><!-- .products-sort --> {/if} <div class="navigation-pages"> {$NAVIGATION_PAGES} </div><!-- .navigation-pages --> </div><!-- .products-sort-pages --> {/if} {if $MANUFACTURER_DROPDOWN} {if $MANUFACTURER_DROPDOWN}{$MANUFACTURER_DROPDOWN}{/if} {/if} <div class="row"> {foreach name=aussen item=module_data from=$product_listing} <div class="column {$smarty.const._STORE_TPL_LISTING_COLUMNS}"> <div class="box product box-hover"> {if $module_data.products_image == 'product:noimage.gif'} <p class="product-image"><a href="{$module_data.products_link}"><img src="{$tpl_url_path}img/no_image.png" alt="{$module_data.products_name|escape:"html"}" /></a></p> {else} <p class="product-image"><a href="{$module_data.products_link}">{img img=$module_data.products_image type=m_thumb class=productImageBorder alt=$module_data.products_name|escape:"html"}</a></p> {/if} <p class="product-name"><a href="{$module_data.products_link}">{$module_data.products_name}</a></p> {if $module_data.review_stars_rating} <div class="product-reviews"> <div class="reviews_rating_light"> <div class="reviews_rating_dark" style="width:{$module_data.review_stars_rating}%"></div> </div> </div> {/if} {if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1' and $module_data.products_price.formated neq ''} <p class="product-price">{$module_data.products_price.formated}</p> {if $module_data.products_shipping_link} <p class="product-tax-shipping">{$module_data.products_tax_info.tax_desc} <a href="{$module_data.products_shipping_link}" target="_blank" rel="nofollow">{txt key=TEXT_EXCL_SHIPPING}</a></p> {else} <p class="product-tax-shipping">{$module_data.products_tax_info.tax_desc} {txt key=TEXT_EXCL_SHIPPING}</p> {/if} {/if} </div><!-- .box .product --> </div><!-- .column .four --> {/foreach} </div><!-- .row --> {if $NAVIGATION_PAGES || $sort_dropdown.options} <div class="products-sort-pages"> {if $sort_dropdown.options} <div class="products-sort"> <label for="sort_dropdown_bottom">{txt key=TEXT_SORT_BY}</label> {form type=form name=sort_dropdown action='dynamic' method=get} {if isset($current_manufacturer_id)}{form type=hidden name=page value='manufacturers'} {else} {form type=hidden name=page value='categorie'} {/if} {if isset($current_category_id)}{form type=hidden name=cat value=$current_category_id}{/if} {if isset($current_manufacturer_id)}{form type=hidden name=mnf value=$current_manufacturer_id}{/if} {form params='id="sort_dropdown_bottom"' type=select name=sorting value=$sort_dropdown.options default=$sort_default onchange='this.form.submit();'} {form type=formend} </div><!-- .products-sort --> {/if} <div class="navigation-pages"> {$NAVIGATION_PAGES} </div><!-- .navigation-pages --> </div><!-- .products-sort-pages --> {/if} <div class="navigation-count"> {$NAVIGATION_COUNT} </div><!-- .navigation-count --> {/if} {$error_listing} {if $category_data.categories_description_bottom} <div id="categorie-description-bottom">{$category_data.categories_description_bottom}</div> {/if} </div><!-- .product-listing --> Link to comment Share on other sites More sharing options...
Sentor77 Posted April 9, 2013 Report Share Posted April 9, 2013 Moin, ich poste dir mal eine Änderung mit der Kurzbeschreibung. Für die Kmplette Beshreibung lässt du einfach das "short" weg. Möchtest du ein komplett neues Feld hinzufügen, musst du das über die Datenbank wie im Handbuch beschrieben machen. Das HTML musst du bitte selber nach deinen Wünschen anpassen: {if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1' and $module_data.products_price.formated neq ''} <p class="product-price">{$module_data.products_price.formated}</p> {if $module_data.products_shipping_link} <p class="product-tax-shipping">{$module_data.products_tax_info.tax_desc } <a href="{$module_data.products_shipping_link}" target="_blank" rel="nofollow">{txt key=TEXT_EXCL_SHIPPING}</a></p> {else} <p class="product-tax-shipping">{$module_data.products_tax_info.tax_desc } {txt key=TEXT_EXCL_SHIPPING}</p> {/if} <p>{module_data.products_short_description}</p> {/if} [/HTML] LG Link to comment Share on other sites More sharing options...
thepro Posted April 9, 2013 Author Report Share Posted April 9, 2013 Hallo Senator77, danke für deine schnelle Antwort und deine Hilfe. Wenn ich die Datei (product_listing_v1.html) um die Zeile <p>{module_data.products_short_description}</p> erweitere, funktioniert danach die Seite leider nicht mehr Hab ich vielleicht was falsch gemacht ? LG Stefan Link to comment Share on other sites More sharing options...
Sentor77 Posted April 9, 2013 Report Share Posted April 9, 2013 Sorry, mein Fehler. Es muss <p>{$module_data.products_short_description}</p>[/HTML] heißen. LG Link to comment Share on other sites More sharing options...
thepro Posted April 9, 2013 Author Report Share Posted April 9, 2013 danke, hab den fehler auch gerade gesehen ;-) läuft nun danke sehr Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.