nessworks Posted July 14, 2005 Share Posted July 14, 2005 I would like to remove or move the> Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account? on the Main Page. Any Help would be appreciated. Note: If I move it ... I would like to move it to the header. Link to comment Share on other sites More sharing options...
akosh Posted July 14, 2005 Share Posted July 14, 2005 I would like to remove or move the> Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account? on the Main Page. Any Help would be appreciated. Note: If I move it ... I would like to move it to the header. <{POST_SNAPBACK}> To remove Find: <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> in index.php Either remove it or change it to: <tr> <td class="main"><?php //echo tep_customer_greeting(); ?></td> </tr> To move to header: Find: <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> in includes/header.php add: <td class="main" align="center"><?php echo tep_customer_greeting(); ?></td> after it. Link to comment Share on other sites More sharing options...
mi_jaiten Posted July 14, 2005 Share Posted July 14, 2005 To remove Find: <tr> ? ? ? ?<td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> in index.php Either remove it or change it to: <tr> ? ? ? ? ? ?<td class="main"><?php //echo tep_customer_greeting(); ?></td> </tr> To move to header: Find: <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> in includes/header.php add: <td class="main" align="center"><?php echo tep_customer_greeting(); ?></td> after it. <{POST_SNAPBACK}> Here's a list that might help you! Os Commerce Forum Installation and Configuration ?Remove? Tips & Tricks =================================================== Q) Removing "This product has been added on A) in product_info.php =================================================== Q) Removing text from bottom Task Bar A) in catalog/includes/footer.php =================================================== Q) Removing a Product "Available Option" A) in administration Panel > catalog >products attributes delete & confirm deletion of each attribute from the Product Attributes box at the foot of the page =================================================== Q) Remove image on checkout_success page A) in public_html/checkout_success.php delete the relevant code. Right click on the actual image and you will see what it?s called. =================================================== Q) Remove "Products marked with ***" A) in administration Panel >Configuration >Stock: Check Stock Level: false =================================================== Q) Removing the Cash on Delivery choice A) in administration Panel > Modules > Payment. Disable the COD payment option there. =================================================== Q) Removing "See Which New Products....., at index.php A) It is on the index.php twice. In Files public_html//includes/languages/English/ index.php <tr> <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> =================================================== Q) Removing Options: Newsletter, A) at create_account.php =================================================== Q) How/where can I comment-out the Options Box that contains "Newsletter", on the create_account.php page? A) It's near the bottom. You'll see it if you look carefully. Don't forget to remove it from the account file, too, since it will show up as an option. =================================================== Q) Thanks for your advice. I commented-out the "Options" and "Newsletter", but how and exactly which lines do I commented out to remove the box they were in? Also, you said "Don't forget to remove it from the account file". Could you be more specific? What Account file? And where in that file, please? A) This is the code to remove, to completely delete the Newsletter box: CODE <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><b><?php echo CATEGORY_OPTIONS; ?></b></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" cellspacing="2" cellpadding="2"> <tr> <td class="main"><?php echo ENTRY_NEWSLETTER; ?></td> <td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td> </tr> </table></td> </tr> </table></td> </tr> ==================================================== Q) Disable order emails to customer? Q) I need to disable the emails that are sent out to the customer when they place an order. But I want to allow emails to be sent out for forgotten passwords and when a new user registers. So simply disabling email isn't an option. Plus where can I edit the forgot password and new customer emails? A) The code for the order emails is in files: public_html/checkout_process.php This process is completely separate from the forgotten passwords and other email generation, so you should be able to stub this code out in the checkout_process file to get rid the order emails. The following line in checkout_process.php is the one that actually sends the email to a customer when the order is placed: tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUB JECT, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ''); Comment that line out with two forward slashes // to stop it from executing. The code and defines for forgotten passwords is in files: public_html/password_forgotten.php and public_html/includes/languages/english/password_forgotten.inc And finally, the mail to new customers is located in: .../catalog/create_account.php and .../catalog/includes/languages/english/create_account.inc =================================================== Q) Remove "Let's See What We Have Here?" A) =================================================== Q) Removing image on main index page A) The name of the image is: table_background_default.gif Replace it with a picture of 1 x 1 pixel with the same name or delete it and go to administration Panel >Images Check Images required: false. =================================================== Q) Removing the Notification Box A) In Files public_html/includes/column_right.php comment out (put // in front of) the following lines that call product_notifications.php: if ($check['count'] > 0) { include(DIR_WS_BOXES . 'best_sellers.php'); } else { // include(DIR_WS_BOXES . 'product_notifications.php'); } } else { // include(DIR_WS_BOXES . 'product_notifications.php'); } =================================================== Q) Removing the product "Reviews" choice Q) At the bottom of each Product Description there is a selection Button on the left for "Reviews" and on the right for "Add to Cart" how/where do I remove (or comment-out) the Reviews choice? A) in Files public_html/product_info.php Comment out the following line right after the <?php tag using two forward slashes. // like this: <td class="main"><?php // echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td> =================================================== Q) Removing Shipping costs Q) I will be providing a service, not a shippable product. On checkout_shipping Page, how do I comment-out the Shipping Method box? Will simply commenting-out this box keep my store from calculating a shipping cost? Or do I need to do more? If so where/how? A) =================================================== Q) Removing Buttons Q) How to remove 'Reviews' button that displays at the bottom of the product page. A) Find the relative code on the product info page and delete it. Back up first in case of mistakes. You are looking for something like tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . =================================================== Q) remove "top" from navigation Q) how do i remove Top and the first ? how can i rename "Catalog" to "shop" on this navigation? A) You rename 'Catalog' to 'Shop' in includes/languages/english.php To remove the 'Top' link from your navigation edit this line in includes/application_top.php by adding two slashes in front of it (commenting it out). //$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); ================================================== Link to comment Share on other sites More sharing options...
nessworks Posted July 14, 2005 Author Share Posted July 14, 2005 Thank You aKosh & Michelle! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.