Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add another "what's new" box on mainpage?


gartex

Recommended Posts

Hi. What's the easiest way to add another "What's New" style box on the mainpage - or maybe enlarge the 1 already there lengthwise? I erased the main text but now my "What's New" box is in the middle of the page & the boxes in the rt. & lt. columns are pushed upwards too. I'm learning from scratch so please be specific. I have osCom on a host (installed through Fantastico) so I have files that sound the same in multiple places (like index.php, includes, etc.) It's kinda confusing. Please help. Thank you. :rolleyes:

 

Here's an example of what I'm talking about. Below is a copy of my files on my host. In a public html file is osCom > then the files that were downloaded w/ it. Under osCom > admin there's 1 file called "includes" which I hear about alot, but there's also an inludes file under the main osCom file. They both have index.php files in them. I have read on these forums that you do certain things in 1 or the other, but I'm confused. Below I outlined the file structure including the index.php files in each includes > languages > english files (the 1st is under admin - the 2nd is under the general osCom file) Thanks for your help. It is immensely appreciated. (It doesn't come out exactly right when published but the 1st group of bolded text is under admin [Home > osCom > admin] - the 2nd bolded txt is under Home > osCom). Again - this is on my host site. I also have an admin I log into to work directly on osCom independant of my host. It has a Tools > define language, File Manager, etc. areas there. I just don't really know where to put things like "What's New" boxes, "specials", etc. or where to find them to copy the code either. I'm just plain confused. Thanks for your help.

 

 

osCommerce

L admin

L backups

L ext

L images

L includes

L boxes

L classes

L functions

L graphs

L javascripts

L languages ( index.php

PHP script text

--------------------------------------------------------------------------------

 

<?php

/*

$Id: index.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2006 osCommerce

 

Released under the GNU General Public License

*/

 

define('HEADING_TITLE', 'Choose an action..');

 

define('BOX_TITLE_ORDERS', 'Orders');

define('BOX_TITLE_STATISTICS', 'Statistics');

 

define('BOX_ENTRY_SUPPORT_SITE', 'Support Site');

define('BOX_ENTRY_SUPPORT_FORUMS', 'Support Forums');

define('BOX_ENTRY_CONTRIBUTIONS', 'Contributions');

 

define('BOX_ENTRY_CUSTOMERS', 'Customers:');

define('BOX_ENTRY_PRODUCTS', 'Products:');

define('BOX_ENTRY_REVIEWS', 'Reviews:');

 

define('BOX_CONNECTION_PROTECTED', 'You are protected by a %s secure SSL connection.');

define('BOX_CONNECTION_UNPROTECTED', 'You are <font color="#ff0000">not</font> protected by a secure SSL connection.');

define('BOX_CONNECTION_UNKNOWN', 'unknown');

 

define('CATALOG_CONTENTS', 'Contents');

 

define('REPORTS_PRODUCTS', 'Products');

define('REPORTS_ORDERS', 'Orders');

 

define('TOOLS_BACKUP', 'Backup');

define('TOOLS_BANNERS', 'Banners');

define('TOOLS_FILES', 'Files');

?>

 

)

 

 

L local

L modules[/b]

L download

L ext

L images

L includes

L languages( index.php

PHP script text

--------------------------------------------------------------------------------

 

<?php

/*

$Id: index.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2007 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', '');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Categories');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

)

L pub

Link to comment
Share on other sites

Rather than reinvent the wheel I'm going to direct you to the Knowledgebase

 

http://www.oscommerce.info/kb/osCommerce/C...sign_and_Layout

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

I went to the Knowledge Base > catalog > boxes > add/remove boxes. I followed the instructions to add a box like the INFORMATION box. But I'm now getting an error message instead of seeing my online catalog. The admin login is fine. I can add products, change languages, etc., but when I click "Online Catalog" I receive this error message :

 

 

Fatal error: Call to a member function add_current_page() on a non-object in /home/public_html/osCommerce/includes/application_top.php on line 312

 

This is what is on line 312 : $navigation->add_current_page();

 

 

Please help. Thanks.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...