Jump to content

< Solved > Thumbnail View on Subcategory pages


Recommended Posts

Hello Friends,

 

I am using PS 1.5.4.1. I like to know is that possible to show thumbnail view instead of grid view on sub-category pages.

 

For e.g.

 

 

 

on above page, sub-categories are appearing in grid view & I want to show in thumbnail view in 2 lines.

 

e.g.

 

product name product name

image image

price price

add to cart add to cart

 

Currently its appearing as below.

 

post-136345-0-81257300-1376801730_thumb.jpg

 

Wish to show like this.

 

post-136345-0-53749300-1376801768_thumb.jpg

 

Will be great if anyone suggest.

 

Thanks

Edited by Vilas (see edit history)
Link to comment
Share on other sites

Dear Vekia,

 

Found solution on that link. But still some modification is necessary to show subcategories in proper view.

 

Also product thumbnail option solution in not there. So how to do that also?

 

Will be great if you have a look on site once again & suggest solution.

 

Thanks

Link to comment
Share on other sites

Dear Vekia,

 

Apologize for confusion. Skip the product part. First will change look to thumbnail for subcategories. I did same thing as suggested in that solution link. But on my site there thumbnail is not appearing properly.

 

That only the thing I want to correct.

 

Thanks

Link to comment
Share on other sites

okay, so change the width of: .inline_list li to 153px; exactly as i show below:

(it's a part of: /themes/default/css/category.css)

.inline_list li {
text-align: center;
float: left;
display: inline-block;
width: 153px;
height: 100px;
border: 1px dotted #ccc;
margin: 4px;
}

Link to comment
Share on other sites

Dear Vekia,

 

Did some more modification as per your instructions, Now its perfectly looking good. Many thanks for it. But have one more issue about that bread-cum navigation option.

 

Category name is appearing twice. I wish to move that home navigation option before to that boldly written category name & want to remove that navigation option which is there.

 

Is that possible?

 

Please find image for reference.

 

g1cf.jpg

Link to comment
Share on other sites

if you want to remove the breadcrumb - open the category.tpl file and just remove the code:

{include file="$tpl_dir./breadcrumb.tpl"}

 

then in the h1 tag add:

<a href="{$base_dir}" title="{l s='Return to Home'}"><img src="{$img_dir}icon/home.gif" height="26" width="26" alt="{l s='Home'}" /></a>

Link to comment
Share on other sites

I have added below code to grid_prestashop.css

 

.container_9 .grid_5

{width:980px; padding-top: 190px;}

 

Now that category page looking fine.

 

But I am worried whether its correct or it might be harmful to other pages.

 

What you suggest?

 

Thanks

Link to comment
Share on other sites

yes it is, but in this case you alse have to edit the css and i suppose that also .tpl file a bit.

 

changed code:

product_list li {
margin-bottom: 14px;
padding: 12px 8px;
border: 1px solid #eee;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
width: 180px;
display: inline-block;
}
#product_list li .left_block {
float: left;
padding-top: 58px;
width: 15px;
display: none;
}


#product_list li .center_block {
float: left;
padding: 0 7px;
}


#product_list li .right_block {
text-align: center;
position: relative;
}


 

in: /themes/default/css/product_list.css

Link to comment
Share on other sites

The font of the product name looks too much bold I think :(

 

Is there is any way to change it?

 

Also the p class is assigned to price of product. Also its assigned to other some sections. Is there is any way to make something different class for price?

Link to comment
Share on other sites

you can create any class you want, but remember to change it in the product-list.tpl file and create class definition in the global.css file.

 

you can change the font size and weight in:

#product_list li h3 {
padding: 0 0 10px 0;
font-size: 13px;
color: #000;
}

 

change the font-size:13px; and for example add font-weight: lighter;

Link to comment
Share on other sites

Font option worked perfectly.

 

 

One more thing I have observed. Some of boxes of products are not appearing in one line.

 

Please find image for reference.

 

bpr3.jpg

 

 

 

Will be great if you provide solution on same.

 

Also I am don't have any idea about adding a class. Can u suggest something easier class creating option :(

Edited by Vilas (see edit history)
Link to comment
Share on other sites

to product li h3 add height param, for example height: 150px;

#product_list li h3 {
padding: 0 0 10px 0;
font-weight: lighter;
font-size: 11px;
color: #000;
min-height: 0px;
position: relative;
display: block;
height: 150px;
}

 

then it will be looks like:

ZPtczGb.png

Link to comment
Share on other sites

It also worked perfectly.

 

Will be great if you provide any simple modification option for below query.

 

Also the p class is assigned to price of product. Also its assigned to other some sections. Is there is any way to make something different class for price?

 

Thanks

Link to comment
Share on other sites

this is the code for class price:

 

#product_list li .price {
display: block;
margin-bottom: 15px;
font-weight: bold;
font-size: 18px;
color: #990000;
}

 

and it is related only to the #product_list, it mean, that this class will work only for product listing

Link to comment
Share on other sites

Thanks for kind help.

 

That means If suppose I have to make price class for product page then I have to create code like below.

 

#product li .price {

display: block;

margin-bottom: 15px;

font-weight: bold;

font-size: 18px;

color: #990000;

}

am I right? No matter margin, font will be set according to page.

Edited by Vilas (see edit history)
Link to comment
Share on other sites

Also suppose if I have any module named as shop_window so in such case only first line will be changed like

 

#shop_window .price {

display: block;

margin-bottom: 15px;

font-weight: bold;

font-size: 18px;

color: #990000;

}

 

is that also right?

 

Why this li will be used??? any special reason ?

 

Sorry for troubling you.

Link to comment
Share on other sites

Also suppose if I have any module named as shop_window so in such case only first line will be changed like

 

#shop_window .price {

display: block;

margin-bottom: 15px;

font-weight: bold;

font-size: 18px;

color: #990000;

}

 

is that also right?

 

Why this li will be used??? any special reason ?

 

Sorry for troubling you.

 

Does it right ?? :(

Link to comment
Share on other sites

×
×
  • Create New...