teksservices Posted September 6, 2006 Share Posted September 6, 2006 anyone know how to change the display of the new products box on the index page. Currently it has 3 items accross as the default and i would like to change it to 4 items. Anyone know how to do this. thanks Link to comment Share on other sites More sharing options...
jpweber Posted September 6, 2006 Share Posted September 6, 2006 Go to your includes/modules/new_products.php file. Open it up. Find the number that should be changed appropriately. The default is a '2', which will show three columns because the counter starts at 0. Find: $col ++; if ($col > 2) { $col = 0; $row ++; } ?> Change the "2" to a "3" (without quotation marks). Hope this helped. Jason Simple 1-2-3 Intructions on how to get, install and configure SSL The Google Sandbox explained Simple to follow instructions on how to change the look of your OSC How To Make A Horrible OSC Website my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ... Link to comment Share on other sites More sharing options...
teksservices Posted September 6, 2006 Author Share Posted September 6, 2006 thank you that worked!!! Go to your includes/modules/new_products.php file. Open it up. Find the number that should be changed appropriately. The default is a '2', which will show three columns because the counter starts at 0. Find: $col ++; if ($col > 2) { $col = 0; $row ++; } ?> Change the "2" to a "3" (without quotation marks). Hope this helped. Link to comment Share on other sites More sharing options...
Guest Posted September 19, 2006 Share Posted September 19, 2006 hi guys. do you know how to change rows by columns? i mean i want to list my nine products in a column by product, not in rows like actually . thanks a lot. Link to comment Share on other sites More sharing options...
jpweber Posted September 19, 2006 Share Posted September 19, 2006 Go to your catalog/includes/modules folder, right-click new_products.php, and right click in a blank area, and select "paste" so you have a copy of it just in case it goes bad. Then just switch the "col" to "row", and the "row" to "col". So it looks like this: $row ++; if ($row > 2) { $row = 0; $col ++; I have no idea if this will work, since I don't use this new_products feature. But that's what I'd do -- I'd tinker around with it, upload it, refresh my browser. Tinker around with it, reupload, and refresh my browser, etc., etc., until I got it right. Jason Simple 1-2-3 Intructions on how to get, install and configure SSL The Google Sandbox explained Simple to follow instructions on how to change the look of your OSC How To Make A Horrible OSC Website my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.