Jump to content

(Solucionado) Listado grid de productos descuadrado ''Ayuda por favor''


Recommended Posts

http://www.dulce-hogar.net/themes/default/css/product_list.css
#product_list li {
		text-align: center;
		float: left;
		width: 142px;
		padding: 16px;
		margin-bottom: 14px;
		margin-right: 20px;
		background-color: #f9f9f9
	}

change by

#product_list li {
		text-align: center;
		float: left;
		width: 142px;
		padding: 16px;
		margin-bottom: 14px;
		margin-right: 18px;
		background-color: #f9f9f9
	}
Link to comment
Share on other sites

al lado de foreach coloco last item %4?

 

quedaría así? {foreach last item %4 from=$products item=product name=products}

 

In the file,  "product-list.tpl"

 

change

{if $smarty.foreach.products.iteration%X == 0}last_row_item

by

{if $smarty.foreach.products.iteration%4 == 0}last_row_item
Link to comment
Share on other sites

A mi me gusta mas este aporte:
 
 
http://mypresta.eu/en/art/developer/prestashop-products-list-grid-view.html
 
Si usas este aporte,  luego cambias esto:

        <li class="dropshadowclass ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.index % 2}alternate_item{else}item{/if} clearfix">

por

        <li class="dropshadowclass ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.index % 3}alternate_item{else}item{/if} clearfix">

y luego aumentas el width del product_list.css

#product_list li {
text-align:center;
margin-bottom:14px;
border:1px solid #eee;
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
padding:10px;
width:144px;
display:inline-block;
vertical-align:top;
margin:2px;
position:relative;
}

(aumentas ese width:144px a una cifra superior, por ejemplo aumentalo a 159 o 162)

 

y luego añades esto

#product_list li.last_item {
margin-right: 0px;
}
Link to comment
Share on other sites

 

A mi me gusta mas este aporte:

 

 

http://mypresta.eu/en/art/developer/prestashop-products-list-grid-view.html

 

Si usas este aporte,  luego cambias esto:

        <li class="dropshadowclass ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.index % 2}alternate_item{else}item{/if} clearfix">

por

        <li class="dropshadowclass ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.index % 3}alternate_item{else}item{/if} clearfix">

y luego aumentas el width del product_list.css

#product_list li {
text-align:center;
margin-bottom:14px;
border:1px solid #eee;
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
padding:10px;
width:144px;
display:inline-block;
vertical-align:top;
margin:2px;
position:relative;
}

(aumentas ese width:144px a una cifra superior, por ejemplo aumentalo a 159 o 162)

 

y luego añades esto

#product_list li.last_item {
margin-right: 0px;
}

 

Con la guía de vekia, que te he pasado y los dos cambios que te he indicado sobre la guía de vekia, se te tiene que quedar como te muestro en la siguiente imagen:

 

Adjunto Imagen

 

listadod.png

 

 

(Logicamente, contando con que has ocultado el lateral derecho para los listado de productos y aumentado la columna central para los listados de productos)

Link to comment
Share on other sites

(Logicamente, contando con que has ocultado el lateral derecho para los listado de productos y aumentado la columna central para los listados de productos)

 

Es decir:

 

Ocultar lateral derecho por css, en el listado de productos por categoria

 

#category #right_column {display:none;}

Aumentar ancho css - listado productos por categoria

 

#category #center_column {
width: 757px;
margin-right: 0px;
}
Link to comment
Share on other sites

Tengo una duda este aporte:

#product_list li.last_item {
margin-right: 0px;
}

Va debajo de este?

#product_list li {
text-align:center;
margin-bottom:14px;
border:1px solid #eee;
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
padding:10px;
width:144px;
display:inline-block;
vertical-align:top;
margin:2px;
position:relative;
}

Link to comment
Share on other sites

Tengo otra duda, me he fijado que en el apartado de nuevos productos: http://www.dulce-hogar.net/es/nuevos-productos

 

Y luego en los productos más vendidos: http://www.dulce-hogar.net/es/mas-vendidos

 

Mira como me sale, como puedo hacer para que me salga como en las categorias?

 

Esto: 

#category #right_column, #best-sales #right_column, #new-products #right_column, #search #right_column, #prices-drop #right_column {display:none;}

#category #center_column, #best-sales #center_column, #new-products #center_column, #search #center_column, #prices-drop #center_column {
width: 757px;
margin-right: 0px;
}
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...