Jump to content

Display problem


Recommended Posts

Can someone tell me why there are 2 empty boxes that are missing on the third row of this page?

http://www.hootiebrown.com/shopping/index.php?id_category=4&controller=category

 

On page 2, and page 3, the last 2 boxes are empty, how come?

http://www.hootiebrown.com/shopping/index.php?id_category=4&controller=category&p=2

http://www.hootiebrown.com/shopping/index.php?id_category=4&controller=category&p=3

I tried to delete, and re-add the products, still getting the same result. Please help

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

Maybe you did not uploaded the product image :lol: or something set wrong in preferences > images (default image size different from your theme image size) Maybe regenerate thumbnails / clear smarty cache

 

 

This is good page to read > http://www.prestasho...nt-want-commit/

Thranga,

Thanks for your message. I am pretty sure all the images are same size. I am new to this, so I have few more questions, hope you can help me with this:

1. how to check default image size and how to check theme image size?

2. How to regenerate thumbnails?

3. How to clear smarty cache?

Link to comment
Share on other sites

1. go to the preferences > images (you've got there list of all defined images in your store - with information about size)

2. the same tab, scroll page down - you've got there "regenerate thumbnails" form where you have to select image type to "regenerate"

3.

  1. Open Prestashop admin panel and go to Advanced Parameters > Performance
  2. Set Force compile to Yes and save changes.
  3. Go to your front-office and refresh the store page.

or

 

For manual cache clear you need to access your Prestashop installation directory and delete the content of the following folders:

 

cache/smarty/compile

cache/smarty/cache

img/tmp

Link to comment
Share on other sites

1. go to the preferences > images (you've got there list of all defined images in your store - with information about size) 2. the same tab, scroll page down - you've got there "regenerate thumbnails" form where you have to select image type to "regenerate" 3.
  1. Open Prestashop admin panel and go to Advanced Parameters > Performance
  2. Set Force compile to Yes and save changes.
  3. Go to your front-office and refresh the store page.

or For manual cache clear you need to access your Prestashop installation directory and delete the content of the following folders: cache/smarty/compile cache/smarty/cache img/tmp

vekia,

Thanks for your help. I did what you said, and here is one more problem:

1. The last 2 boxes on the last row still empty when you are displaying 10 items per page (and the last box on the last row is empty when you display 20 items per page), do you know why? and how to fix this?

Link to comment
Share on other sites

I may be missing the point, but there is a drop down on your site where you can choose the number of products per page to display - 10, 20 or 50. This dropdown choice looks like it overrides the back office setting. You have 33 products, and you display 3 per row.

 

So if you choose 10 per page, the first 3 pages will have 3 rows of 3 products followed by 1 row of 1 product. The fourth page will have 1 row with 3 products.

 

If you choose 20, you get 1 page with 6 rows of 3 and 1 row of 2 and a second page with 4 rows of 3 and 1 row of 1.

 

If you choose 50, you get 1 page with 11 rows of 3.

 

This is what I would expect, so I'm unclear as to what the problem is.

Link to comment
Share on other sites

Ah - in which case the values in the drop down will need to be numbers divisible by 3 (not sure where you would do that), and it would be worth changing the back office value to 9 or 12, say.

 

Alternatively re-jig things so that 5 products per line are displayed instead of 3.

Link to comment
Share on other sites

that's right, but drop down only modify the view, in this case it is also necesary to change the value of nb of products per page in BO + 834 line in the classes/controller/frontcontroller.php

 

there is something like:

 $nArray = (int)Configuration::get('PS_PRODUCTS_PER_PAGE') != 10 ? array((int)Configuration::get('PS_PRODUCTS_PER_PAGE'), 10, 20, 50) : array(10, 20, 50);

 

and this is the definition of the dropdown, just change these values

Link to comment
Share on other sites

×
×
  • Create New...