mlody222 Posted April 2 Share Posted April 2 (edited) Witam presta 1.7.8.8 Szukam i nie potrafię znaleźć. Czy jest możliwość aby na liście produktów pojawiał się tylko model (nazwa produktu) bez cech produktu? Mam tych cech stosunkowo dużo przez co jeden produkt na liście zajmuje dużo miejsca. Klienci kierują się na początku tylko nazwą a dopiero po wejściu w konkretny produkt patrzą na cechy. altilion.pl pozdrawiam Edited April 2 by mlody222 (see edit history) Link to comment Share on other sites More sharing options...
get3code Posted April 2 Share Posted April 2 Usuń ten blok {block name='product_variants'} {if $product.main_variants} {include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants} {/if} {/block} z lokalizacji themes/classic/templates/catalog/_partials/miniatures/product.tpl Link to comment Share on other sites More sharing options...
get3code Posted April 2 Share Posted April 2 Ewentualnie możesz dodać klasę która ukryje elementy na listach produktów w custom.css body:not(#product) .features-description { display:none; } Link to comment Share on other sites More sharing options...
mlody222 Posted April 2 Author Share Posted April 2 get3code pomogło dodanie do .css wielkie dzięki. Link to comment Share on other sites More sharing options...
mlody222 Posted April 3 Author Share Posted April 3 to jeszcze trochę bardziej wejdę w temat czy da się tak ustawić prestę aby pokazywała tylko 2 cechy z 7 na listach produktów a wszystkie na karcie produktu? pozdrawiam Link to comment Share on other sites More sharing options...
get3code Posted April 3 Share Posted April 3 Musisz edytować pętlę która wyświetla cechy i instrukcją warunkową wypisać tylko te które Ciebie interesują. {block name='product_variants'} {if $product.main_variants} {include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants} {/if} {/block} Link to comment Share on other sites More sharing options...
mlody222 Posted April 3 Author Share Posted April 3 ha. Get3code jest szansa abyś wytłumaczył to trochę jaśniej takiemu początkującemu jak ja? Link to comment Share on other sites More sharing options...
get3code Posted April 3 Share Posted April 3 (edited) Masz dwa wyjścia jeśli nie znasz prestashop i smarty: Kupić moduł który pomoże to zrobić: https://mypresta.eu/modules/front-office-features/product-list-attributes-combinations.html Zmodyfikować samemu, robisz dumpa dla {$product.main_variants|var_dump} i sprawdzasz jak nazywają się pola oraz piszesz instrukcje warunkową. Szukaj: themes/customTheme/templates/catalog/_partials/miniatures/product.tpl Jeśli nie znasz się na kodowaniu to proponuję zakupić moduł. Edited April 3 by get3code (see edit history) Link to comment Share on other sites More sharing options...
mlody222 Posted April 3 Author Share Posted April 3 dzięki za wyjaśnienie sprawy. pozdrawiam Link to comment Share on other sites More sharing options...
endriu107 Posted April 3 Share Posted April 3 Masz tutaj sporo możliwości, ogranicza cię tylko kreatywność i ewentualnie wiedza. Tak dla przykładu możesz zrobić sobie rozwijany panel z cechami, tutaj na szybko przygotowany kod css, który nie jest idealny ale działający: body:not(#product) .features-description { height: 25px; transition: height .5s; overflow:hidden; } body:not(#product) .features-description:hover { height: 270px; transition: height .5s; } .features-description::before { content: '▽ Zobacz cechy ▽'; color: #000; cursor:pointer; } Ten przykład ma Ci tylko pokazać że masz wiele opcji. Link to comment Share on other sites More sharing options...
mlody222 Posted April 4 Author Share Posted April 4 bardzo dziękuję endriu107. Czasami człowiek chce się czegoś nauczyć i potrzebuje trochę wskazówek jak w każdej dziedzinie. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now