NS-Icon Posted September 6, 2005 Share Posted September 6, 2005 Hi all, I have a question, I have looked almost everywhere and can't find a solution. I would like to know how to put a box like: 'What's New' on the main page above 'New Products For September' If anyone could help I would be very grateful Thanks Link to comment Share on other sites More sharing options...
stevel Posted September 7, 2005 Share Posted September 7, 2005 What exactly do you mean "a box like: 'What's New'"? Do you want that as text displayed above the new products box? Why not just change the title of the New Products box to be what you want? In catalog/includes/languages/english/index.php, change: define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); to: define('TABLE_HEADING_NEW_PRODUCTS', 'What\'s New For %s'); Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
NS-Icon Posted September 7, 2005 Author Share Posted September 7, 2005 Not quite right, What I need is a box that shows the latest products (What?s New). But I don?t want the box on the left or the right. I need the box above New Products for (Month). So it is on the main page and not on the sides. Not sure if this explanation is any better Link to comment Share on other sites More sharing options...
stevel Posted September 7, 2005 Share Posted September 7, 2005 Ok, now I see. In index.php, find these lines (they'll appear twice): <tr> <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> and before them insert: <tr> <td><?php require(DIR_WS_BOXES . 'whats_new.php'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> and in catalog/includes/column_left.php, delete: require(DIR_WS_BOXES . 'whats_new.php'); Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
NS-Icon Posted September 7, 2005 Author Share Posted September 7, 2005 Hmm, Followed your instructions but nothing happened? Link to comment Share on other sites More sharing options...
stevel Posted September 7, 2005 Share Posted September 7, 2005 There are, as I said, two instances of this code. You have to change both of them. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
NS-Icon Posted September 7, 2005 Author Share Posted September 7, 2005 Kool, Thanks Thats kind of what I needed, Is there any way of putting this in the /languages/english/index.php page, or formatting it ina particular way? Link to comment Share on other sites More sharing options...
stevel Posted September 7, 2005 Share Posted September 7, 2005 You wouldn't put it in a languages file. As for formatting, it's a standard infobox. But you can go look at includes/boxes/whats_new.php, study the code that acually queries the database, then format the output in whatever form you desire. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
NS-Icon Posted September 7, 2005 Author Share Posted September 7, 2005 Right Thanks for that ill go take a look, One more question, when selecting a product category from the menu, you see a list of products that belong to a particular category. Is there a way to increase the maximum number of text for the product title? Link to comment Share on other sites More sharing options...
stevel Posted September 7, 2005 Share Posted September 7, 2005 Do you mean the Product Name as shown in the listing? If you have product names longer than what can show there, you will need to increase the length in the database field. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
NS-Icon Posted September 7, 2005 Author Share Posted September 7, 2005 Great, Thanks alot for your help thats all my questions for now :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.