Jump to content
  • 0

Products on CMS pages Wyśrodkowanie


Aidanin

Question

Witam napotkałem 1 problem 

Mianowiscie zainstalowałem moduł z Mypresta.eu ktory pozwala na umieszczanie  Produktów na CMS  problem polega na tym ze jeżeli mam produkty chce je jakoś wyśrodkować  

Mam po 3 produkty w rzedzie i nie moge tego wyśodkować wiem ze moduł pobiera styl z product-list.plt ale nie moge tego ugryśc siedze juz 3 h i nic nie moge zrobic  

 

dasdsdasdas.png

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Mam juz rozwiazanie  jest troche primitywne ale 

Zamieniamy cała linijke z <li class ''ajax... na ta ktora jest 

		<li class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-4{else} col-xs-12 col-sm-4 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}">

 

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...