Jump to content
  • 0

Lista produktów w kategorii źle wyświetla krótki opis


Grzegorz4

Question

Witam,

Mam problem z podstawowym szablonem Presta 1.5.4.1

W edytorze produktu opisu krótkiego daję znaczniki końca linii / wstawiam tabelę itp. natomiast opis pojawiający się w liście kategorii już nie uwzględnia tych znaczników :( tak samo jak bold , numerowania itp.

Miał może ktoś z tym problem i sobie poradził ?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

dzieje sie tak ponieważ w kodzie jest funkcja |strip_tags oraz |truncate:360

aby korzystać z pełnego krótkiego opisu bez usuniętych znaczników należy usunać tekst zaznaczony na czerwono:

 

{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}

 

z pliku product-list.tpl - cały fragment wygląda tak:

<p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}" >{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}</a></p>
Link to comment
Share on other sites

  • 0

Witam, Chciałbym odświeżyć temat. Vekia możesz pomóc po kombinuje i nie wiele wychodzi raz nic nie widać raz sie rozjeżdża .... to mój kod

 

<p class="product-desc" itemprop="description">
                            {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}
                    </p>

 

Pozdrawiam

Link to comment
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...