SimonWard Posted January 14, 2007 Share Posted January 14, 2007 Hello, There are a number of things im trying to do at the minute... Ill make a list.. 1. external link from the information box. I can make a link to open a new window and open a page within my domain, but when i try the same with an external domain it does this. http://www.yourdomain.info/catalog/http://...f8cceb4f59cbd2a How can i over come this? 2. I would like to rename a box. Basicly i would like to rename the ' Information ' box to ' Navigation ' How would this be done? 3. How can i remove a feature? I would like to remove the ' Reviews ' part of the osCommerce system totally, that includes the button that goes next to add to cart on the product info page etc. 4. I wish to move items from one box to the other? I want to move the categories from ' Categories ' to the ' Information ' box, so its one whole box. 5. Product listing order? At the moment when you click a category and the products come up they are in alphabetical order, how can i change this so that they are in model order? eg. the reference code. 6. The date system? I would like to change the date display because im in the UK, so it reads DD/MM/YYYY rather than MM/DD/YYYY. Sorry for the list of questions but any help with be greatly appreciated. Simon My first Contribution - Extra payment method text Link to comment Share on other sites More sharing options...
bill110 Posted January 14, 2007 Share Posted January 14, 2007 1) <?php echo '<a href="http://www.thesite.com" target="_blank">Your text here</a>'; ?> 2) catalog/includes/languages/english.php define('BOX_HEADING_INFORMATION', 'Information'); 3) catalog/includes/column_right.php remove this code require(DIR_WS_BOXES . 'reviews.php'); catalog/product_info.php remove this (may need to work with tables a bit) <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $reviews = tep_db_fetch_array($reviews_query); if ($reviews['count'] > 0) { ?> <tr> <td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> THERE IS A CURLY BRACE 2 LINES BELOW THE ABOVE CODE THAT ALSO NEEDS TO BE REMOVED. 5) I think this will work catalog/index.php find this code if ($column_list[$i] == 'PRODUCT_LIST_NAME') { $HTTP_GET_VARS['sort'] = $i+1 . 'a'; $listing_sql .= " order by pd.products_name"; and change to if ($column_list[$i] == 'PRODUCT_LIST_NAME') { $HTTP_GET_VARS['sort'] = $i+1 . 'a'; $listing_sql .= " order by p.products_model"; My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai Link to comment Share on other sites More sharing options...
SimonWard Posted January 14, 2007 Author Share Posted January 14, 2007 Thanks thats great, by the time i looked the reply i had already done it all apart from the reviews part. Got another question though. Rename a link in a box Basicly i wish to rename the link ' Conditions of Use ' to Terms and Conditions, Cheers in advance Simon My first Contribution - Extra payment method text Link to comment Share on other sites More sharing options...
SimonWard Posted January 14, 2007 Author Share Posted January 14, 2007 Oh, its alright i have already found it.. Its residing within english.php My first Contribution - Extra payment method text Link to comment Share on other sites More sharing options...
SimonWard Posted January 15, 2007 Author Share Posted January 15, 2007 3)catalog/includes/column_right.php remove this code require(DIR_WS_BOXES . 'reviews.php'); catalog/product_info.php remove this (may need to work with tables a bit) <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $reviews = tep_db_fetch_array($reviews_query); if ($reviews['count'] > 0) { ?> <tr> <td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> THERE IS A CURLY BRACE 2 LINES BELOW THE ABOVE CODE THAT ALSO NEEDS TO BE REMOVED. Done this and the reviews system is still there? My first Contribution - Extra payment method text Link to comment Share on other sites More sharing options...
SimonWard Posted January 15, 2007 Author Share Posted January 15, 2007 anyone...? My first Contribution - Extra payment method text Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.