I am currently setting up a store on 2.3.1 and want to change the number of featured product columns on my homepage from 3 to 4.
I have looked in the /includes/modules/new_products.php and thought I had found the correct piece of code on line 33:
$new_prods_content .= '<td width="33%" align="center" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br />' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</td>';
I tried changing the <td width=33% to 25% - nothing changed.
So, firstly, I guess I don't know code from string beans and secondly - can anyone please tell me if I am at least in the right file.
I would be most grateful if someone could take the time to put me out of my misery, failing that perhaps just tell me what code to change.
Many thanks to anyone who takes pity on me (yet again!).
James
Latest News: (loading..)
Featured Products Columns 2.3.1
Started by james66, Jan 30 2011 07:19 PM
8 replies to this topic
#1
Posted 30 January 2011 - 07:19 PM
#2
Posted 30 January 2011 - 07:41 PM
You want to change the featured or new products James?
They are two different things
Nic
They are two different things
Nic
#3
Posted 30 January 2011 - 07:46 PM
if its new_products.php
then find this on line 37
Nic
then find this on line 37
if (($col > 2 ) || ($counter == $num_new_products)) {
change it to if (($col > 3 ) || ($counter == $num_new_products)) {
Nic
#4
Posted 17 July 2012 - 05:58 AM
Hi Nick,
Had search and couldn't find the answer. Till find here. Hopefully you can help me.
I have similar question about changing the product_info.php page.
I want to display the product two items each row (two columns) with extra large image and the new products five items each row with thumbnail images.
If I guess right, the new_products.php
I should put if (($col > 4 ) || ($counter == $num_new_products)) {
right?
Where parts of the code should I modify in product_info.php to make it appear two large image each row?
Many thanks for your help in advance.
Lyn
PS. Thank you very much for your time for addons. I installed few of them and work great.
Had search and couldn't find the answer. Till find here. Hopefully you can help me.
I have similar question about changing the product_info.php page.
I want to display the product two items each row (two columns) with extra large image and the new products five items each row with thumbnail images.
If I guess right, the new_products.php
I should put if (($col > 4 ) || ($counter == $num_new_products)) {
right?
Where parts of the code should I modify in product_info.php to make it appear two large image each row?
Many thanks for your help in advance.
Lyn
PS. Thank you very much for your time for addons. I installed few of them and work great.
#5
Posted 17 July 2012 - 09:30 AM
@ce7
Are you sure you want to change the product_info.php? Is it maybe index.php, thae part that list the products? There are no "new products" on product info
Are you sure you want to change the product_info.php? Is it maybe index.php, thae part that list the products? There are no "new products" on product info
Community profile | Partner page | NEW : Feedback Chanel
#6
Posted 18 July 2012 - 06:15 AM
Hi George,
Thank you for reply PM and thread here, I am confused myself about the list as well. so I took the image and hopefully this is be better understood. [img]http://postimage.org/image/6s9kw5r6n/[/img]
I had tried configuration / images, kind of change the image size, but only works for new products.
Installed KissIT image Thumbnailer and Better Image Upload Features.
Had to uninstalled both as error occurs with new products pages.
Don't really know which files I should be modify, it will be very much appreciated if you could point me out what files I go to modify for two different list.
Thank you for reply PM and thread here, I am confused myself about the list as well. so I took the image and hopefully this is be better understood. [img]http://postimage.org/image/6s9kw5r6n/[/img]
I had tried configuration / images, kind of change the image size, but only works for new products.
Installed KissIT image Thumbnailer and Better Image Upload Features.
Had to uninstalled both as error occurs with new products pages.
Don't really know which files I should be modify, it will be very much appreciated if you could point me out what files I go to modify for two different list.
#7
Posted 18 July 2012 - 07:36 AM
reinstalled the two image addons. Error fixed.
Hopefully soon I can know how to change the column numbers to what my boss want.
thank you very much for you all there who help people, especial newbie like me.
Lyn
Hopefully soon I can know how to change the column numbers to what my boss want.
thank you very much for you all there who help people, especial newbie like me.
Lyn
#8
Posted 18 July 2012 - 07:43 AM
Play around configuration / images again,
I think where I want the columns to become two instead of default three columns, is called subcatagories images. I can change the size of the image I want there, but still I like to change it from three columns to two columns.
I think where I want the columns to become two instead of default three columns, is called subcatagories images. I can change the size of the image I want there, but still I like to change it from three columns to two columns.
#9
Posted 18 July 2012 - 08:11 AM
Hi,
I google, and found the answer I want.
For other people who has the same question I had, just go to
configuration / maximum values / category to list per row
there can change from default 3 columns to what you want!
Lyn
I google, and found the answer I want.
For other people who has the same question I had, just go to
configuration / maximum values / category to list per row
there can change from default 3 columns to what you want!
Lyn









