Jump to content

malin_pl

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • First Name
    Tomasz
  • Last Name
    Malinowski

malin_pl's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Another think yet, you Have to change: file global.js line ~256 html += '<div class="functional-buttons clearfix col-sm-12">' + $(element).find('.functional-buttons').html() + '</div>'; before that line ^ you have to add: if (typeof page_name != 'undefined' && !in_array(page_name, ['index', 'product'])) So, that will be see like that: html += '<div class="button-container col-xs-7 col-md-12">'+ $(element).find('.button-container').html() +'</div>'; if (typeof page_name != 'undefined' && !in_array(page_name, ['index', 'product'])) html += '<div class="functional-buttons clearfix col-sm-12">' + $(element).find('.functional-buttons').html() + '</div>'; html += '</div>'; regards
  2. Hello, Problem resolved. Thanks for user: deejay3 I use tutorial Vekia : https://www.prestashop.com/forums/topic/323464-tutorial-change-default-grid-products-display-method-to-list/ after that have to make changes in file global.js in line: if (typeof page_name != 'undefined' && !in_array(page_name, ['index', 'product'])) change to: if (typeof page_name != 'undefined' && !in_array(page_name, ['product'])) next you have to change line in product-list.tpl: <li class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-3{else} col-xs-12 col-sm-6 col-md-4{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}"> change to: <li class="ajax_block_product{if $page_name == 'product'} col-xs-12 col-sm-4 col-md-3{else} col-xs-12 col-sm-6 col-md-4{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}"> And that;'s work fine . regards
  3. Hej, Dzięki pomocy kolegi: deejay3 udało się zrobić liste na pierwszej stronie, korzytsałem z tutoriala Vekia : https://www.prestashop.com/forums/topic/323464-tutorial-change-default-grid-products-display-method-to-list/ dalej, należy w pliku global.js linię: if (typeof page_name != 'undefined' && !in_array(page_name, ['index', 'product'])) zaminieć na linię: if (typeof page_name != 'undefined' && !in_array(page_name, ['product'])) następnie w pliku product-list.tpl linię: <li class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-3{else} col-xs-12 col-sm-6 col-md-4{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}"> zamienić na linię: <li class="ajax_block_product{if $page_name == 'product'} col-xs-12 col-sm-4 col-md-3{else} col-xs-12 col-sm-6 col-md-4{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}"> i powinno działać, przynajmniej u mnie działa . pozdrawiam
  4. Hi, I want ask about possibility to create a list of products on the home page, now is grid. module version 1.6.2 regards Tom
  5. Witam, Mam taką prośbe o pomoc. Jak wymusić w tym module aby wyświetlał na głównej stronie listę produktów a nie grid'a ? wersja modulu 1.6.2 z gory dzieki pozdrawiam
×
×
  • Create New...