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}"
              data-full-size-image-url="{$product.cover.large.url}"
            />
          </a>
        {else}
          <a href="{$product.url}" class="thumbnail product-thumbnail">
            <img src="{$urls.no_picture_image.bySize.home_default.url}" />
          </a>
        {/if}
      {/block}

      <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>
          {else}
            <h2 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:50:'...'}</a></h2>
          {/if}

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 {
    height:100px;
}

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

optisch scheint es zu gehen 

image.png.6f16dfc1275571db188b2966e36d4469.png

 

so war es alt:

image.png.1d89e7bf0162b0ac8dd5e54ca3b96c0b.png

 

image.png

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
 Share

×
×
  • Create New...

Important Information

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