tim_ver Posted August 5, 2006 Share Posted August 5, 2006 I have now on the top left corner a box that says best sellers and bellow it show text list of best sellers. I want to change this box, so that it changes out item images that I select randomly. What do I edit or cheange/add? How do I achive this? Thanks Link to comment Share on other sites More sharing options...
tim_ver Posted August 5, 2006 Author Share Posted August 5, 2006 I found the Best sellers in English.phP. But when I // out the line it still shows up. What file controls all the boxes on the main page "index.php"? Help please. Thanks Link to comment Share on other sites More sharing options...
jhsands Posted August 5, 2006 Share Posted August 5, 2006 I found the Best sellers in English.phP. But when I // out the line it still shows up. What file controls all the boxes on the main page "index.php"? http://www.oscommerce.com/forums/index.php?showtopic=139426 includes/left_column.php includes/right_column.php In right_column.php, delete else { include(DIR_WS_BOXES . 'best_sellers.php'); } JHS BACKUP your current files before editing. Did I mention to BACKUP your current files, first? "I'm not a hero, I'm a firefighter; it is my job to save lives. I'm a Jesus Christ Firefighter saving souls from the flames!" Installed contribs: Almost XP Buttons *** Attribute Sort *** Auto Thumbnail Change *** Column Product Listing (for SPPC v4.0) *** Contact Us Registered *** Country-State Selector 1.3.3J *** CC# Db Mask 1.3 *** Email Order Clickable Link *** Extra Images *** Linkpoint API CVM *** Loginbox Best *** New Spiders *** New Attrib Mgr v.5.0 w/ New Attrib Include *** Multi Product Update *** MySQL Cron *** Pricing per Category *** Product Listing in Columns v2.2 [later upgraded to CPL(SPPC)] *** Product Sort v1.6 *** Seperate Pricing Per Customer v4.15 *** Simple Down for Maintenance [Gokou] *** Ultimate_SEO_URLs_v2.2.2 *** UPS Worldship Export 1.3 *** Welcome Email username & password Link to comment Share on other sites More sharing options...
tim_ver Posted August 5, 2006 Author Share Posted August 5, 2006 Ok Thanks. What is a good mod to replace it? I want to have images of products rotate out in the same area and box. I found the rest of the code in the Header.php file. Is there a way to change out the current code to achive this? Thanks Much Link to comment Share on other sites More sharing options...
tim_ver Posted August 5, 2006 Author Share Posted August 5, 2006 I found this in column_right.php } else { include(DIR_WS_BOXES . 'best_sellers.php'); } And deleted it and it still shows up. Link to comment Share on other sites More sharing options...
jhsands Posted August 5, 2006 Share Posted August 5, 2006 I found this in column_right.php } else { include(DIR_WS_BOXES . 'best_sellers.php'); } And deleted it and it still shows up. I deleted it on mine and it is gone... did you save the file? Perhaps the file is in use. Try downloading the file, renaming the file on the server, and then uploading the file. See if that fixes the problem. Try http://www.oscommerce.com/community/contributions,2881 . JHS BACKUP your current files before editing. Did I mention to BACKUP your current files, first? "I'm not a hero, I'm a firefighter; it is my job to save lives. I'm a Jesus Christ Firefighter saving souls from the flames!" Installed contribs: Almost XP Buttons *** Attribute Sort *** Auto Thumbnail Change *** Column Product Listing (for SPPC v4.0) *** Contact Us Registered *** Country-State Selector 1.3.3J *** CC# Db Mask 1.3 *** Email Order Clickable Link *** Extra Images *** Linkpoint API CVM *** Loginbox Best *** New Spiders *** New Attrib Mgr v.5.0 w/ New Attrib Include *** Multi Product Update *** MySQL Cron *** Pricing per Category *** Product Listing in Columns v2.2 [later upgraded to CPL(SPPC)] *** Product Sort v1.6 *** Seperate Pricing Per Customer v4.15 *** Simple Down for Maintenance [Gokou] *** Ultimate_SEO_URLs_v2.2.2 *** UPS Worldship Export 1.3 *** Welcome Email username & password Link to comment Share on other sites More sharing options...
tim_ver Posted August 5, 2006 Author Share Posted August 5, 2006 Nope no Luck still shows up. :( This is the entire column_right.php code I have now: <?php /* $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'shopping_cart.php'); if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); if (isset($HTTP_GET_VARS['products_id'])) { if (tep_session_is_registered('customer_id')) { $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'product_notifications.php'); } if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } require(DIR_WS_BOXES . 'reviews.php'); if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } ?> Link to comment Share on other sites More sharing options...
jhsands Posted August 5, 2006 Share Posted August 5, 2006 Try deleting the following... but MAKE A BACKUP before doing so. If you get a blank page when trying to visit your site, restore the copy before taking this out. $check = tep_db_fetch_array($check_query);if ($check['count'] > 0) { } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } BACKUP your current files before editing. Did I mention to BACKUP your current files, first? "I'm not a hero, I'm a firefighter; it is my job to save lives. I'm a Jesus Christ Firefighter saving souls from the flames!" Installed contribs: Almost XP Buttons *** Attribute Sort *** Auto Thumbnail Change *** Column Product Listing (for SPPC v4.0) *** Contact Us Registered *** Country-State Selector 1.3.3J *** CC# Db Mask 1.3 *** Email Order Clickable Link *** Extra Images *** Linkpoint API CVM *** Loginbox Best *** New Spiders *** New Attrib Mgr v.5.0 w/ New Attrib Include *** Multi Product Update *** MySQL Cron *** Pricing per Category *** Product Listing in Columns v2.2 [later upgraded to CPL(SPPC)] *** Product Sort v1.6 *** Seperate Pricing Per Customer v4.15 *** Simple Down for Maintenance [Gokou] *** Ultimate_SEO_URLs_v2.2.2 *** UPS Worldship Export 1.3 *** Welcome Email username & password Link to comment Share on other sites More sharing options...
tim_ver Posted August 5, 2006 Author Share Posted August 5, 2006 I found it in the index.php hard coded. I got it out all but the small little dot. weird. I delete the line that should remove it 100% but it changes the whole layout so I change width to 0 and everything is ok but the little mark still there. Link to comment Share on other sites More sharing options...
tim_ver Posted August 5, 2006 Author Share Posted August 5, 2006 For this area now I want to b able to select in Admin area 5-10 itms that will display the pic for it at random. How do I do this? Is there a mod someone knows of that does this? I looked but no luck. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.