Guest Posted May 15, 2004 Share Posted May 15, 2004 Unfortunately just after posting I found out it still won't work. I reinstalled and reconfigured OScom. , (since the database is the same I kept it the way it was..), then copied the whole BTS catalog data to my catalog dir and overwrote the files. Now, again, when I try to start up http://localhost/~philsamhaber/catalog/ I get a blank page.. I do have a htaccess in my catalog directory (with DirectoryIndex index.php index.htm index.html) ... why isnt this working? VERY strange bc there isn't even an error code or ANYTHING. just the blank page... Any idea how to log this process? (almost forgot: There isn't any sourcecode showing in safari either!? wtf?) Quote Link to comment Share on other sites More sharing options...
♥ecartz Posted May 16, 2004 Share Posted May 16, 2004 Try looking here to see how to turn on error reporting. Hth, Matt Quote Always back up before making changes. Link to comment Share on other sites More sharing options...
Guest Posted May 16, 2004 Share Posted May 16, 2004 matt, I am absolutely new to all this. I included the code into my htacess, but how do I view the log? Where can I find it? Sorry for the dummy questions.. best, Phil Quote Link to comment Share on other sites More sharing options...
Lucky Bastard Posted May 17, 2004 Share Posted May 17, 2004 How can I change the window page title order from say : <Categogy Name> : <Store Name> <Product Name> : <Store Name> etc to the reverse. <Store Name> : <Categogy Name> <Store Name> : <Product Name> I want it to be applied to everypage (not just category/product pages) so that the storename appears first. Thanks! Quote Link to comment Share on other sites More sharing options...
ieuflr2000 Posted May 17, 2004 Share Posted May 17, 2004 Hello, I work on Wish List v22c MS2 all the pages are made there is only a translation in FR and garage. But I am not very good. It is somebody can give me a help has metre it form for her(it) bts1 3 <?php/* $Id: wishlist.php,v 1.1 2002/07/01 13:52:20 mattice Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce */ // retreive the wishlist // $wishlist_query = tep_db_query("select * from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id"); $wishlist_query_raw = "select * from " . TABLE_WISHLIST . " WHERE customers_id = $customer_id order by products_name"; $wishlist_query = tep_db_query($wishlist_query_raw); ?> <!-- wishlist //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_CUSTOMER_WISHLIST ); new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_WISHLIST, '','NONSSL')); $info_box_contents = array(); if (tep_db_num_rows($wishlist_query)) { if (tep_db_num_rows($wishlist_query) < MAX_DISPLAY_WISHLIST_BOX) { $product_ids = ''; while ($wishlist = tep_db_fetch_array($wishlist_query)) { $product_ids .= $wishlist['products_id'] . ','; } $product_ids = substr($product_ids, 0, -1); $customer_wishlist_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">' . "\n"; $products_query = tep_db_query("select products_id, products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id in (" . $product_ids . ") and language_id = '" . $languages_id . "' order by products_name"); while ($products = tep_db_fetch_array($products_query)) { $customer_wishlist_string .= ' <tr>' . "\n" . ' <td class="infoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . tep_get_product_path($products['products_id']) . '&products_id=' . $products['products_id'], 'NONSSL') . '">' . $products['products_name'] . '</a></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . // BoF Modification by: R. Siebert (VINI & VITA) ' <td class="infoBoxContents" align="center" valign="bottom"><b><a href="' . tep_href_link(FILENAME_WISHLIST, tep_get_all_get_params(array('action')) . 'action=cust_order&pid=' . $products['products_id'] . '&rfw=1', 'NONSSL') . '">' . BOX_TEXT_MOVE_TO_CART . '</a> |' . "\n" . ' <a href="' . tep_href_link(FILENAME_WISHLIST, tep_get_all_get_params(array('action')) . 'action=remove_wishlist&pid=' . $products['products_id'], 'NONSSL') . '">' . BOX_TEXT_DELETE . '</a></b></td>' . "\n" . // EoF Modification by: R. Siebert (VINI & VITA) tep_draw_separator('pixel_black.gif', '100%', '1') . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '</td></tr>' . "\n"; } } else { $customer_wishlist_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">' . "\n"; $customer_wishlist_string .= '<tr><td class="infoBoxContents">' . sprintf(TEXT_WISHLIST_COUNT, tep_db_num_rows($wishlist_query)) . '</td></tr>' . "\n"; } } else { $customer_wishlist_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">' . "\n"; $customer_wishlist_string .= '<tr><td class="infoBoxContents">' . BOX_WISHLIST_EMPTY . '</td></tr>' . "\n"; } $customer_wishlist_string .= '<tr><td colspan="3" align="right" class="smallText"><a href="' . tep_href_link(FILENAME_WISHLIST, '','NONSSL') . '"><u> ' . BOX_HEADING_CUSTOMER_WISHLIST . '</u> [+]</a></td></tr>' . "\n"; // $customer_wishlist_string .= '<tr><td colspan="3" align="right" class="smallText"><a href="java script:popupWindowWishlist(\'' . tep_href_link('popup_' . FILENAME_WISHLIST_HELP, '','NONSSL') . '\')"><u>'. BOX_HEADING_CUSTOMER_WISHLIST . ' Help</u> [?]</a></td></tr>' . "\n"; // Popup link $customer_wishlist_string .= '<tr><td colspan="3" align="right" class="smallText"><a href="' . tep_href_link(FILENAME_WISHLIST_HELP, '','NONSSL') . '"><u> ' . BOX_HEADING_CUSTOMER_WISHLIST_HELP . '</u> [?]</a></td></tr>' . "\n"; // Normal link $customer_wishlist_string .= '</table>'; $info_box_contents[] = array('align' => 'left', 'text' => $customer_wishlist_string); new infoBox($info_box_contents); ?> </td> </tr> <!-- wishlist_eof //--> Thank you indeed Pcamille :rolleyes: Quote IEUFLR2000 Link to comment Share on other sites More sharing options...
Guest Posted May 18, 2004 Share Posted May 18, 2004 *update* concerning my last post: I installed BTS on my webspace, works like a charm. HOWEVER on my localhost (ibook) I get this error (taken form apaches error_log): [Tue May 18 11:26:31 2004] [error] PHP Warning: main(includes/configure.php): failed to open stream: No such file or directory in /Users/philsamhaber/Sites/catalog/includes/application_top.php on line 29 [Tue May 18 11:26:31 2004] [error] PHP Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.:/usr/local/php/lib/php') in /Users/philsamhaber/Sites/catalog/includes/application_top.php on line 29 What is this?! Quote Link to comment Share on other sites More sharing options...
Skhilled Posted May 19, 2004 Share Posted May 19, 2004 [Tue May 18 11:26:31 2004] [error] PHP Warning: main(includes/configure.php): failed to open stream: No such file or directory in /Users/philsamhaber/Sites/catalog/includes/application_top.php on line 29 [Tue May 18 11:26:31 2004] [error] PHP Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.:/usr/local/php/lib/php') in /Users/philsamhaber/Sites/catalog/includes/application_top.php on line 29 I've got the same error message. Can't tell if it shows only on my localhost or to the world but is very unsettling. And I can't seem to fix it or comment out the lines causing the errors. Skhilled Quote Skhilled Do it till you're satisified! Link to comment Share on other sites More sharing options...
ornito Posted May 19, 2004 Share Posted May 19, 2004 categories.php is acting up. it has a global var called $boxContent inside of a function called tep_show_category This variable is being set just fine inside the function (I echo'd) it. but as soon as I exit the function back to the one place it is called $boxContent has no value, it is blank, and it just gives a blank How can this be? It was working fine yesterday? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 19, 2004 Share Posted May 19, 2004 Where can I change/comment out the corner gifs of the new products "box" on the mainpage??? I have had a hard time looking and I can't find the lines...help me! ;) Quote Link to comment Share on other sites More sharing options...
Skhilled Posted May 21, 2004 Share Posted May 21, 2004 Geeeeeezzzz! I feel so stupid!!! The reason for the error I posted above is simple. I uploaded and changed the index file in my home directory instead of the catalog directory. Actually, I uploaded the bts to my start in my home dir and it changed my index with it's own. I quick look at the index file (which was mostly html) revealed a lot of php and oscommerce comments. I hope this will help others like Felipe. Skhilled Quote Skhilled Do it till you're satisified! Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2004 Share Posted May 21, 2004 Geeeeeezzzz! I feel so stupid!!! The reason for the error I posted above is simple. I uploaded and changed the index file in my home directory instead of the catalog directory. Actually, I uploaded the bts to my start in my home dir and it changed my index with it's own. I quick look at the index file (which was mostly html) revealed a lot of php and oscommerce comments. I hope this will help others like Felipe. Skhilled unfortunately this was not the issue in my case. I still haven't found out what keeps the index from showing, maybe I should reinstall the whole system... Besides, I would bet its not my php or sql or apache acting up, since my other projects all run /w any problems... Skillhed, so your shop is working again? I triple checked if the BTS files had overwritten the existing osC files, because actually the error message I had got sounded like there wld be at least one file which HADN'T been overwritten. May this just happen to have something to do with my Database forwarding a wrong filepath to my shop and eventually to my browser? I don't know much about SQL and PHP so please correct my scizofrenic assumption if I am wrong :-) P.S.: BTS is up and running on my online space, it works like a charm and saves a lot of time! Best, Phil Quote Link to comment Share on other sites More sharing options...
Skhilled Posted May 21, 2004 Share Posted May 21, 2004 Yes, My site is up. The problem was I had some html files in my public_html directory. I'm not talking about the files in my catalog directory which is a subdirectory of public_html. This is where I started to build my site until I found out about oscommerce. Look for a index.html file in your public_html directory. If one is there, overwrite it with something that'll link or redirect to the catalog (or whatever you named it) directory. The 'catalog' directory is your actual shop directory. If you have files with and '_' (underscore in the name in your public_html dir, then oscommerce or you put those files there and they shouldn't be there. The index file there is overwritten. I'm not an expert so I hope I'm explaining it correctly. I've reinstalled osC a dozen times before I realized what was happening. I hope this helps! :D Quote Skhilled Do it till you're satisified! Link to comment Share on other sites More sharing options...
Lucky Bastard Posted May 24, 2004 Share Posted May 24, 2004 So anybody able to help me with my question posted earlier : How can I change the window page title order from say :<Categogy Name> : <Store Name> <Product Name> : <Store Name> etc to the reverse. <Store Name> : <Categogy Name> <Store Name> : <Product Name> I want it to be applied to everypage (not just category/product pages) so that the storename appears first. Thanks! THANKS IN ADVANCE!! Quote Link to comment Share on other sites More sharing options...
Guest Posted May 27, 2004 Share Posted May 27, 2004 (edited) lucky bastard.... do you know allready how to change this? other question.... I have big problems to integrate this "Impressum" addon: http://www.oscommerce.at/download/agree_conditions_1.01.zip it does not work together with bts... can some try to find a solution for this?? ive tried but i've failed (my php skills are = 0 :unsure: ). pleeeeease help :o Edited May 27, 2004 by Bundy Quote Link to comment Share on other sites More sharing options...
Lucky Bastard Posted May 28, 2004 Share Posted May 28, 2004 Bundy, unfortunately not - no replies to my question :( Before posting my question I had a feeling I knew how to do it, but when I went ahead to make the mods I thought were required nothing changed - so I just undid those mods, then posted here HOPING for help (which has eluded me so far). Do you know how to change it? Quote Link to comment Share on other sites More sharing options...
Santo Posted May 28, 2004 Share Posted May 28, 2004 Hi Paul, I am having trouble installing a mod into the BTS system. The mod is located at http://www.oscommerce.com/community/contributions,298. Is it possible for you to help me? Thank you for any help you can provide. Best regards, Santo Quote Link to comment Share on other sites More sharing options...
John-Doe Posted May 28, 2004 Share Posted May 28, 2004 How can I change the window page title order from say :<Categogy Name> : <Store Name> <Product Name> : <Store Name> etc to the reverse. <Store Name> : <Categogy Name> <Store Name> : <Product Name> I want it to be applied to everypage (not just category/product pages) so that the storename appears first. Thanks! did already take a look at includes/meta_tags.php ? By the way I think it's best to display the products name followed by price. Google uses this title tag and shows it in the results. So unless your company name is really important to show, I would not put it in front. Quote Link to comment Share on other sites More sharing options...
detsouvalas Posted May 28, 2004 Share Posted May 28, 2004 Lucky, So anybody able to help me with my question posted earlier : The beginning of the answer was also posted earlier ... check your includes/metatagrs.php files ... !! Quote Antonios Link to comment Share on other sites More sharing options...
talon177 Posted May 29, 2004 Share Posted May 29, 2004 How's everything going, I was overlooking the BTS and was noticing that all the breadcrumbs throughout the pages are different and was wondering if this needs to be updated, some show for example $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_2); while others show $breadcrumb->add(NAVBAR_TITLE_1); $breadcrumb->add(NAVBAR_TITLE_2); Also is there any files that you no longer need from the core osC files once installing BTS? Quote Link to comment Share on other sites More sharing options...
talon177 Posted May 29, 2004 Share Posted May 29, 2004 (edited) The previous post was a bit too fast maybe, Instead you also can (probably is a little better solution than posted above) edit includes/meta_tags.php and replace (approx line 98) ?case CONTENT_ADDRESS_BOOK_PROCESS: ? ?define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline); ? ? ? ?define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS); ? ? ? ?define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1); ? ? ? ?break; ?case CONTENT_ADDRESS_BOOK_PROCESS: ? ?define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline); ? ? ? ?define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS); ? ? ? ?define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1); ? ? ? ?break; by ?case CONTENT_ADDRESS_BOOK_PROCESS: ? ?define('META_TAG_TITLE', NAVBAR_TITLE_2 . PRIMARY_SECTION . TITLE . $web_site_tagline); ? ? ? ?define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS); ? ? ? ?define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1); ? ? ? ?break; NAVBAR_TITLE_2 is already defined in the address_book_process language file, so no need to add any define then Added Paul's info above to a new update in the contrib 29 May 2004 - Meta Tags Bug Fix Edited May 29, 2004 by talon177 Quote Link to comment Share on other sites More sharing options...
talon177 Posted May 29, 2004 Share Posted May 29, 2004 (edited) Here's some things that I think should be adjusted. This will be added to the contrib area as well. ***** templates/osC/main_page.tpl.php ***** Find (Line 4-9): <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <?php require(DIR_WS_INCLUDES . 'meta_tags.php'); ?> <title><?php echo META_TAG_TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>"> <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>"> Replace with: <?php require(DIR_WS_INCLUDES . 'meta_tags.php'); ?> <title><?php echo META_TAG_TITLE; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>"> <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>"> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> ***** templates/osC/popup.tpl.php ***** Find (Line 4-8): <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" /> <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" /> Replace/Add with: [COLOR=red]<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">[/COLOR] <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" /> <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" /> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> ***** info_shopping_cart.php ***** Find (Line 22-23): <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> Replace with: <title><?php echo TITLE; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> Edited May 29, 2004 by talon177 Quote Link to comment Share on other sites More sharing options...
talon177 Posted May 29, 2004 Share Posted May 29, 2004 Just noticed that stylesheet.css in the original osC 2.2MS2 is the same as BTS 1.3 templates/osC/stylesheet.css and the only file in BTS 1.3 that is calling the original stylesheet.css is info_shopping_cart.php ***** info_shopping_cart.php ***** Find (Line 25): <link rel="stylesheet" type="text/css" href="stylesheet.css"> Replace with: <link rel="stylesheet" type="text/css" href="<?php echo DIR_WS_TEMPLATES; ?>stylesheet.css"> ***** FILES/FOLDERS NO LONGER NEEDED ***** stylesheet.css // REMOVED FROM ORIGINAL OSC -> Note: If new contributions look for original osC stylesheet.css use above code instead checkout_process.php // DELETE FROM CONTRIB DUPLICATE OF ORIGINAL OSC CODE download.php // DELETE FROM CONTRIB DUPLICATE OF ORIGINAL OSC CODE redirect.php // DELETE FROM CONTRIB DUPLICATE OF ORIGINAL OSC CODE Quote Link to comment Share on other sites More sharing options...
talon177 Posted May 29, 2004 Share Posted May 29, 2004 File Modification: -> includes/languages/english.php Find (Line 50): // header text in includes/header.php Replace with: // header text in includes/warnings.php ** Remove File(s) ** includes/header.php //REMOVE FROM ORIGINAL OSC FILES (Note: includes/header.php is now includes/warnings.php, * If new contributions look for original osC stylesheet.css use above code instead) includes/footer.php //REMOVE FROM ORIGINAL OSC FILES (Note: includes/footer.php is incorporated into templates/osC/main_page.tpl.php * If new contributions look for original osC stylesheet.css use above code instead) Quote Link to comment Share on other sites More sharing options...
Lucky Bastard Posted June 1, 2004 Share Posted June 1, 2004 did already take a look at includes/meta_tags.php ? Yep, certainly did, and played around with it, but nothing I did worked, even though I am sure I was on the right track. But guess what, got that issue fixed now, it was what I looked at before, but for whatever reason when I did it last time it didn't work (cos I changed something wrongly no doubt). BTW, is it only my install, that pages like edit address book entry and other pages that use the address_book_process.php show in the header : Store Name : HEADING_TITLE The reason is obvious, in address_book_process in lang/eng it has what you would expect, not one HEADING_TITLE constant defined, as many pages use that address_book_process.php, but rather there is one defined for each page, such as HEADING_TITLE_ADD_ENTRY,HEADING_TITLE_MODIFY_ENTRY. Then you look in the meta_tags.php under the case CONTENT_ADDRESS_BOOK_PROCESS, and it obviously only referes to HEADING_TITLE. There is no switch ow whatever to determin WHICH HEADING_TITLE to use. Is that normal for a BTS install, or has mine somewhere along the line got messed up? If that later, any suggestions on a neat way of fixing it? I have a method I hink (just an if statement within the case based on the HTTP_GET_VARS) but I want to know if anybody else has a better/neater method. ;) Thanks for the help guys!! Quote Link to comment Share on other sites More sharing options...
Lucky Bastard Posted June 4, 2004 Share Posted June 4, 2004 Anyone?? See question in above post? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.