trendy Posted November 15, 2005 Share Posted November 15, 2005 :( hihi, please help!!!! i am trying to make up my new store now, but have a few question!!! 1) is there any way i can show only the "total item have in cart" but not the item name and total prices????? i am sure tons of store are doing this!!!! 2) and how can i remove the test like "Use keywords to find the product you are looking for." and the link "Advanced Search" from the search box??? please response if anyone can help!!!! thanx thanx thanx thanx thanx!!!! Link to comment Share on other sites More sharing options...
namynot Posted November 15, 2005 Share Posted November 15, 2005 Grabthis Contribution for a cleaner Cart Box: http://www.oscommerce.com/community/contri.../search,cleaner Grab the Aug 12th Version PLEASE BACKUP BEFORE YOU DO ANYTHING! I used this but tweaked it a bit to have the original Cart Box and a (what I call a "Short Cart"). To do this, you must have STS installed because it allows you to add for InfoBoxes. Before uploading, I modified "catalog/includes/sts_user_code.php" In the top of the file gives an example of how to add a new InfoBox by Uncommenting the example and modifying the name, example below: Original // $sts_block_name = 'newthingbox'; // require(STS_START_CAPTURE); // require(DIR_WS_BOXES . 'new_thing_box.php'); // require(STS_STOP_CAPTURE); // $template['newthingbox'] = strip_unwanted_tags($sts_block['newthingbox'], 'newthingbox'); Modified $sts_block_name = 'shortcartbox'; require(STS_START_CAPTURE); require(DIR_WS_BOXES . 'short_cart.php'); require(STS_STOP_CAPTURE); $template['shortcartbox'] = strip_unwanted_tags($sts_block['shortcartbox'], 'shortcartbox'); I copied the "catalog/includes/boxes/shopping_cart.php" in the Contribution package, modified file and renamed it "short_cart.php". Uploaded the file to it's respective place, this method does not replace but add a file, the Contribution replaces the file (catalog/includes/boxes/shopping_cart.php). Lastly, refernce my new box in my Design Template (catalog/includes/sts_template.html) and it's added. See an example of both boxes in used here: http://www.efashionscompany.com/shop/produ..._id=89{1}19{2}6 ------------------------------------------ To change the Text in the Search box, go to "catalog/includes/languages/english.php" To take out the link to the "Advanced Search" link in the Search box, go to "catalog/includes/boxes/search.php" Find: Around Line 25 Please Note, my code below is not the exact code from the default osCommerce code as I have changed some things here, in the original, class="quicksearch" IS class="infoboxContents" . tep_href_link(FILENAME_ADVANCED_SEARCH) . '" class="quicksearch"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>' Delete it. DONT FORGET TO BACKUP!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.