Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Jack_mcs

Members
  • Posts

    31,133
  • Joined

  • Last visited

  • Days Won

    194

Everything posted by Jack_mcs

  1. Jack_mcs

    2CO and OSC

    Take a look at ThIS THREAD. Jack
  2. Jack_mcs

    PAYPAL

    Sounds like you did what is needed. Your best bet is to remove the stock PayPal module and install the PayPall IPN contribution. It is an updated version and behaves better than the stock one. If you can't get it to work, there is an active support thread here that should be able to get you going. It also has a test mode that will help you figure it out. Jack
  3. You have to enable the PayPal module in admin. But before doing that, I would install the PayPall IPN contribution if I were you. It has many more features than the stock one (like a test mode) and is currently being actively supported. Jack
  4. The product name is probably in the string but it is being cut off due to length. The code in includes/header_tags.php has the following for index.php: if (HTTA_DEFAULT_ON=='1') { $the_title= HEAD_TITLE_TAG_ALL . ' ' . HEAD_TITLE_TAG_DEFAULT . " " . $the_category['categories_name'] . $the_manufacturers['manufacturers_name']; but it should be something like: if (HTTA_DEFAULT_ON=='1') { $the_title= $the_category['categories_name'] . $the_manufacturers['manufacturers_name'] . " - " . HEAD_TITLE_TAG_ALL . ' ' . HEAD_TITLE_TAG_DEFAULT; Google only allows a certain number of characters in the title string (60 or 80, I can't recall ATM). If you go over that it is cut off so placing the product description at the end of the string is useless. Jack
  5. Argh! Of course that's not valid. Can't believe I missed it. It worked fine on the Windows server I was on so never thought that might be the problem. Thanks for pointing that out. :) Jack
  6. I haven't done any research into Froogle specifically, but since it is operated by google, I suspect it follows the same guidelines. The product that is most relevant to the search is displayed first. This means that you will need to follow standard SE rules to improve your placement. You should - make sure the title of the page is the name of the product - place the product name in an H1 tag - have lots of text on the page relating to the product with the product mentioned several times, in bold, if possible I'm sure there are more I am forgetting ATM. You can do a search here or on the web for other SEO techniques. Your PR won't mean anything unless there is another site's product that has the same relevancy as yours. Then the PR will be used to decide which goes first. Jack
  7. Julian - You need to install the Header Tags Controller contribution. It will allow you add meta tags and, more importantly, different title tags, to each page you define. You can do this manually if you wish, but it is a lot more work, especially should you ever decide to change the wording. Almost all of the files in the root of your shop will display meta tags. Usually there are about 30-40 of them. Jack
  8. I don't recall seeing contributions for what you are asking but that doesn't mean they don't exist. You can go to the contributions section and just start clicking through each one until you find something you like. With this kind of question you may have a hard time getting help, unless you pay someone for it. That's because your subject is so large. You really need to ask a specific question. One of the first contributions I recommend is the Gift Voucher one. If you are planning on having gift vouchers or discount coupons for your customers, you need this contribution. It is not a simple install if you are updating a shop. However, if you have a clean shop, then the install is fairly easy and a good way to get your feet wet. If you are not going to have coupons, have you thought of how you will accept payment. If you are going to use PayPal, then you need to install the PayPall IPN contribution. Basically what I am saying is that you need to determine what your site needs, otherwise no one will be able to help you. There is no need to apologize for your level of experience. Everyone starts somewhere and there is always someone with more knowledge on some subject. If you are totally stumped as to where to begin, maybe you could post what it is you are trying to accomplish with your site and others can give you suggestions on the best approach. Jack
  9. Ahh, I misunderstood what you were asking. Tsyrak has already explained how to do this. There is a contribution for it but it just duplicates his instructions. I'm not familar with the CMS contribution but there are many ways to add menus to your site. STS complicates things somewhat and is why it may not be supported in the next OSC version. In case you are not aware of it, the Information box already contains links for Shipping, Privacy, and so on. If you want to use that box, that is where one would normally put a link to an About page. However, menus are usually better due to their visibility IMO. Jack
  10. Add this code to whereever you want it (you may need to enclose this in a table): <a title="About Us" href="aboutus.html">About Us</a> But before you do this, this subject came up not too long ago and one of the team members replied stating that you should not do this since you will lose the SID. Why not just add a regular php page so it doesn't conflict with the way OSC is designed? Jack
  11. I have this contribution installed and working on one host. I copied the whole shop to another host and this is the only thing that is broken. I get this message when I click on Generate Catalog in admin. I've set the permission on the catalogs directory to the required value but that wasn't it. Anyone have any idea what this message means? Jack
  12. This is a common problem with STS. You have to include a line of code in one of your files IIRC. I don't recall the solution but there are several threads here on the subject. Do a search for "$content not displaying" or something like that. Jack
  13. Try moving those functions to the end of the file. You have them in the beginning before other required defines are included. Jack
  14. I can't say what your problem is for sure but that error looks suspicious to me in that there should be a space in DIR_WS_FUNCTIONSheader_tags.php. Take a look in application_top.php (or wherever you added the DIR_WS_FUNCTION code segment). Make sure the defines you added for HTC are correct. You may be missing a control character such as ', (, ) or ;. They should look like require(DIR_WS_FUNCTIONS . 'header_tags.php'); require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); Since clean_html is also giving you a problem but only when not calling header_tags.php, I almost guarantee you have a problem such as this. HTH, Jack
  15. While looking at your site in your browser, select Save As from the File menu. Select somewhere to save it so that you can find it with DW. It will save your page as an .htm file and will also create a directory with various files. Open the .htm file in DW and it should look just like the page you saved. Note that this is a one-way street - you cannot upload that page from DW. This is just a quick way to troubleshoot the kind of problem you are having. You can edit it all you want, then look at the code once you are happy with the result and copy that code to the correct file of your shop. Jack
  16. Cyndi - I don't know what the problem is with the code for line 603 but from your earlier posts it sounds like you don't have HTC installed correctly. I would replace the whole file with a backup and reinstall HTC to it if I were having the problem. As for the title placement, that is how it is coded in the includes/header_tags.php file. The code appears as echo ' <META NAME="Description" Content="' . $the_desc . '">' . "\n"; echo ' <META NAME="Keywords" CONTENT="' . $the_key_words . '">' . "\n"; echo ' <title>' . $the_title . '</title>' . "\n"; You just need to move the last line to before the others. Jack
  17. Ahh, I've posted this question twice and never got a reply. Thanks for finally clearing it up. The only time I see this problem is with the advanced_search.php file. It doesn't use HEADING_TITLE so that would explain it. Jack
  18. No problem. That has been happening a lot to me too lately. The missing ; wouldn't be causing you any problems if HTC is installed correctly because that part of the code would never get accessed. I really don't think it is installed correctly though since your source for the page has <title>Low Carb Foods -- Low Carbs Online</title> <META NAME="Description" Content=" "> <META NAME="Keywords" CONTENT=" "> <!-- BOF: Generated Meta Tags --> On a normally installed HTC shop, the last line should come before the first three. This seems to indicate the first three has been added manually or the english/header_tags.php file has been edited. Plus, the code you posted earlier for index.php does not match the code for the link above. Perhaps if you post the english/header_tags.php file something will show up. Jack
  19. You just need to insert a <table> at the appropriate place. However, your table should not have disappeared when you changed the cellpadding. I would wait until that was sorted out before making any other changes. If you have FrontPage or Dreamweaver you can open your home page up in one of those and play around with the settings. This should make it easier for you to see what is going on and to add a table as needed. Jack
  20. Just a thought, but try changing the table it's in that has cellpadding="2" to "0" and see what happens. You may have to include it in its own table to get around this. Jack
  21. Drako & Genius - AFAIK, the code works. The only way to verify would be to have a database that is known to be un-optimized and then check the code. I don't know how to put the database into that condition. If anyone here knows, let me know and I will test it. As far as the numbers are concerned, open up phpmyadmin and on the lower right of the main page you will find the total size of the database. Your number in the email should be pretty close to that. Now click on one of the tables (column on left side) and scroll down to find a section named "space usage." If that table needs optimizing, you will see an entry there, in red, indicating it. Just because you have a database for a while, doesn't mean it needs to be optimized. If you don't mess with it much, then it could be that optimizing would have no effect. Jack
  22. Here's the whole file: <? // Written by Emmett - www.hostingosCommerce.com $query = tep_db_query("select date_format(start_date, '%j') as start_date, counter from optimize_check"); $first_date = tep_db_fetch_array($query); $previous_day = $first_date['start_date']; $today = getdate(); $temp_day = $today['yday']; if ($previous_day > 355) { $previous_day = 0; } if (($temp_day - $previous_day) > 6) { tep_db_query("update optimize_check set start_date = now() where counter = '" . $first_date['counter'] . "'"); // Select database and continue only if successful (have permission to) If (mysql_select_db('ptcandy')) { // Statement to select the tables in the currently looped database $tbl_status = 'SHOW TABLE STATUS FROM ' . 'ptcandy'; // Query mySQL for the results $tbl_result = mysql_query($tbl_status); $dbsize_before = 0; $dbsize_after = 0; // Check to see if any tables exist within database If(mysql_num_rows($tbl_result)) { // Loop through all the tables while ($tbl_row = mysql_fetch_array($tbl_result)) { $dbsize_before += $tbl_row['Data_length'] + $tbl_row['Index_length']; // Statement to optimize table $opt_table = 'OPTIMIZE TABLE ' . $tbl_row[0]; // Query mySQL to optimize currently looped table $opt_result = mysql_query($opt_table); $dbsize_after += $tbl_row['Data_length'] + $tbl_row['Index_length']; } // End table while loop } } // End database if statement $db_optimized_email = '<b>Store database has been optimized.</b>' . 'Size before: '.$dbsize_before . 'Size After: '. $dbsize_after; $db_optimized_subject = 'Store database has been optimized.'; tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $db_optimized_subject, $db_optimized_email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } ?> Jack
  23. Just so you know, installing HTC doesn't not mean you will be listed in the SE's. It just improves your chances of getting better (higher) listings if you set it up correctly. Please don't take the following comments personally. I mean them constructively. If you want your site to do well, you need to make some changes. Now, as far as your site is concerned, I would remove the enter page if I were you. It serves no purpose that I can see that your catalog page doesn't do. But if you are intent on keeping it, you should at least rearrange it. I have to scroll down before seeing any usable information. Not user-friendly at all. The code on the page is not correct. You have meta-tags before the doc-type. And you have a "> showing on the upper left of the page - means something is wrong with your code. In any event, HTC doesn't appear to be installed on this page. Same holds true for the catalog page. The code is better but HTC is not installed that I can see. In fact, you don't even have a title tag that I can see. Jack
  24. Cyndi - You have to add any files added to admin via the administrator section. If not, what do you see when you try to edit a product? Is there a spot for the meta tags? Maybe you could take a snapshot and display it. Jack
×
×
  • Create New...