Jump to content

[gelöst] Artikel Beschreibung auf 2 Zeilen

Recommended Posts

ist das eine Lösung?

Anpassung von themes/classic/templates/catalog/_partials/miniatures/product.tpl

Truncate von 30 auf 50 anpassen

              alt="{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:50:'...'}{/if}"
          <a href="{$product.url}" class="thumbnail product-thumbnail">
            <img src="{$urls.no_picture_image.bySize.home_default.url}" />

      <div class="product-description">
        {block name='product_name'}
          {if $page.page_name == 'index'}
            <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:50:'...'}</a></h3>
            <h2 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:50:'...'}</a></h2>

und im custom.css

dies unten einfügen (braucht mehr Platz für Preis)

/*Artikel auf 2 Zeilen anzeigen ! in themes/classic/templates/catalog/_partials/miniatures/product.tpl  truncate von 30 auf 50 anpassen 
body.tax-display-enabled #products .product-description, body.tax-display-enabled .featured-products .product-description, body.tax-display-enabled .product-accessories .product-description {

Da ich leider noch noch nicht viel Ahnung vom Code habe ... stimmt das so ?

optisch scheint es zu gehen 



so war es alt:




Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More