Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

bkellum

Pioneers
  • Posts

    4,854
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by bkellum

  1. Have you checked to see that all of your links, such as for your images, are not pointed to "http://yourlink" ? All of your links should be relative links like so: "yourlink" or "foldername/yourlink". If any of your images that you have inserted into the STS template points to an "outside" source, you will not have a secure icon shown for the shopper. They may see the following error message: 2. This page has both secure and insecure items This alert appears if the secured page the browser is trying to show has objects or references that point to non secured domains. So for instance if you had a graphical image of credit cards as processed by your gateway and say you were hotlinking to the images with a piece of code such as <img src="http://mycreditcardprocessor.com> That image is not on your encrypted domain hence the alert would show. Often this problem will appear from one or more of three sources: Where you are hotlinking images for your products from the wholesalers server Objects in your footer Objects in your boxes in the columns If the problem is an image you are hotlinking you need to ask the owner if you can have access to the image and place it in your own images directory under the encrypted domain and then change the path in your footer so that it now references the image in your domain. [font="Courier"][color="#0000bb"]<?php [/color][color="#007700"]echo [/color][color="#0000bb"]tep_image[/color][color="#007700"]([/color][color="#0000bb"]DIR_WS_IMAGES [/color][color="#007700"]. [/color][color="#dd0000"]'my_image.gif'[/color][color="#007700"], [/color][color="#dd0000"]'my ALT text'[/color][color="#007700"], [/color][color="#dd0000"]'100'[/color][color="#007700"], [/color][color="#dd0000"]'150'[/color][/font][font="Courier"][color="#007700"]); [/color][color="#0000bb"]?>[/color][/font] All images which are also hyperlinks should be referenced in the following way: [font="Courier"][color="#0000bb"]<?php [/color][color="#007700"]echo [/color][color="#dd0000"]'<a href="' [/color][color="#007700"]. [/color][color="#0000bb"]tep_href_link[/color][color="#007700"]([/color][color="#dd0000"]'your_directory/your_page.php'[/color][color="#007700"]) . [/color][color="#dd0000"]'">' [/color][color="#007700"]. [/color][color="#0000bb"]tep_image[/color][color="#007700"]([/color][color="#0000bb"]DIR_WS_IMAGES [/color][color="#007700"]. [/color][color="#0000bb"]your_image[/color][color="#007700"].[/color][color="#0000bb"]gif[/color][color="#007700"]) . [/color][color="#dd0000"]'</a>'[/color][/font][font="Courier"][color="#007700"]; [/color][color="#0000bb"]?>[/color][/font] If you are using images in the stylesheet for backgrounds they should also use the relative address ... e.g. images/my_background.gif If you have for instance a visitor counter that goes back to the counter owners server to process info - you may be able to construct an if else statement around the counter using php such that if the $request_type is SSL then do not go to the counter owners site. For Google ads the script has to go back to google - not on your domain which gives the problem so use the following construct to prevent google ads from showing iF the browser is on a secure page: [font="Courier"][color="#0000bb"]<?php [/color][color="#007700"]if ([/color][color="#0000bb"]$request_type [/color][color="#007700"]!= [/color][color="#dd0000"]'SSL'[/color][/font][font="Courier"][color="#007700"]) { ..... ..... ..... [/color][color="#0000bb"]src[/color][color="#007700"]=[/color][color="#dd0000"]"http://pagead2.googlesyndication.com/pagead/show_ads.js"[/color][/font][font="Courier"][color="#007700"]> [/color][/font][font="Courier"][color="#0000bb"]</script> [/color]..... ..... } ?>[/font] If none of the above matches your situation, check the following to be sure you have configured your shop correctly: The workings of SSL with osCommerce are quite straightforward. Once your SSL is installed, you set the configuration path for https:// in catalog/includes/configure.php to enable SSL and the code takes care of the rest. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.yourdomain.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://yourdomain.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com'); define('HTTPS_COOKIE_DOMAIN', 'yourdomain.com'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); Note: In the example above the certificate was issued WITHOUT the www. qualifier and this shop is installed in Catalog directory ONE level below root. In normal working - these changes above will result in a small padlock being shown in the bottom right of your browser status bar when you navigate to a secure page AND your address line will show the https:// URL instead of http:// If you look through the code you will see example after example of statements that refer to SSL where osC is making a decision based on request type as to whether to display the secured or non secured pages. In short neither you nor your customers has to type in https:// into the address line to get to secure pages. osCommerce will identify from the configuration if SSL is installed and direct browsers to the correct page depending on what the browser is doing on your site. I hope this helps in some way, Bill Kellum
  2. It appears you may have not installed all the files in the correct location or possibly missing some files. To install it correctly, You will only need to download and install this and then this. :thumbsup: (STS v4.1 as well as the Index module v1.0.3 for STS4.) The two files between these two contributions have been known to cause problems such as double headers and php errors. ;) In the future, please post at the STS forum so that all can benefit from the Q&A. Hope this helps, Bill Kellum
  3. Hello, You may find your answer in the following STS Plus forum here. Also, I suggest upgrading to the latest version of STS (STS v4). To install it correctly, You will only need to download and install this and then this. :thumbsup: (STS v4.1 as well as the Index module v1.0.3 for STS4.) The two files between these two contributions have been known to cause problems such as double headers and php errors. ;) Hope this helps, Bill Kellum
  4. I use the excellent freeware program called Winmerge (for windows users of course). You can get it here. http://winmerge.org Hope this helps, Bill Kellum
  5. You could edit your sts_display_output.php: Find the following lines of code and comment them out: // Perform OSC version checking if ($sts_osc_version != $sts_osc_version_required) { echo "[b]STS was designed to work with OSC version[/b] [$sts_osc_version_required]. This is version [$sts_osc_version].\n"; } By doing so, STS will no longer check what version of OsCommerce you are running. In the future, please post all questions in the STS forum so that all can benefit. Hope this helps, Bill Kellum
  6. To install it correctly, You will only need to download and install this and then this. :thumbsup: (STS v4.1 as well as the Index module v1.0.3 for STS4.) The two files between these two contributions have been known to cause problems such as double headers and php errors. ;) Hope this helps, Bill Kellum
  7. To install it correctly, You will only need to download and install this and then this. :thumbsup: The STS v4.1 as well as the Index module v1.0.3 for STS4. The two files between these two contributions have been known to cause problems such as double headers and php errors. ;) Hope this helps, Bill Kellum
  8. The error you are experiencing maybe because you have modified the index.php file (and probably other pages in your shop as well) to include header_tags.php, and now STS includes it again.Possible Solution: Remove the include of header_tags.php from each file in your store, or add this condition for it: if ($sts->display_template_output==false) { ... If you add the above condition, you'll still have Header Tags Controller working when STS is turned off. Another thing to look for: In your headertags.php file, look for the following code: $sts->start_capture(); if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_FUNCTIONS . 'header_tags.php'); require(DIR_WS_INCLUDES . 'header_tags.php'); } $sts->stop_capture('headertags'); and change it to this: $sts->start_capture(); if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require_once(DIR_WS_FUNCTIONS . 'header_tags.php'); require(DIR_WS_INCLUDES . 'header_tags.php'); } $sts->stop_capture('headertags'); That will cause the file to only be called once and should take care of your error. Hope this helps, Bill Kellum
  9. I found this contribution to work well with STS v4: Here is a simple tip that may help you get rid of the images as well as get rid of some of the "canned" catagory titles. Also: Try posting any STS questions in the STS v4 forum for all to benefit from the responses. To get rid of "Let's See What We Have Here" for your Categories and Sub-Categories, you can replace them with the name of the categories or subcategories name. Here is how I hacked the OsCommerce code to do it: Open the following file in a text editor: /yourstore/index.php Do a search for the following line of code: <?php echo HEADING_TITLE; ?> You will find three instances of each. Do the following: To see the name of your CATAGORIES instead of "let's see what we have here" text, just replace the first instance of the code: <?php echo HEADING_TITLE; ?> with the following: <?php echo $category['categories_name'] ?> To also have SUBCATEGORIES displayed dynamically as the CATAGORIES above, just replace the second instance of the code: <?php echo HEADING_TITLE; ?> with the following: <?php $category_query1 = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'"); $category1 = tep_db_fetch_array($category_query1); if ($category1['categories_name'] != "") {echo $category1['categories_name'];} else { echo HEADING_TITLE;} ?> The third <?php echo HEADING_TITLE; ?> should be left alone so you do not need to modify it at all. Don't forget to save your document as the same name as the original index.php. That's all there is to it. If this is too daunting, or if you run into problems, let me know. Since I haven't useed this hack in a long time, I ran it on a test store and everything worked perfectly. :thumbsup: Good luck, Bill Kellum
  10. It sounds like your are experiencing a url image link problem. Either way, Edit your CSS page to set the background color to an image like so: background-image: url('YOURIMAGE.jpg') This should do the trick, Bill Kellum[/code]
  11. It sounds like your are experiencing a url image link problem. Either way, Edit your CSS page to set the background color to an image like so: background-image: url('YOURIMAGE.jpg')
  12. I would suggest you look into HTML code. STS does not get in the way for you to add a background image. If you are not familiar writing HTML code, use a WYSIWYG HTML editor such as Microsoft FrontPage 2003 or Dreamweaver. I suggest you create a table to insert any of the STS standard templates into. Set the background image for your new table to be anything you want. As far as your colored text, you will need to edit the CSS page inside OsCommerce. I came across an excellent (basic, down to earth) resource giving an easy explanation of each item listed in the stylesheet.css included in osCommerce. You can view it by going to the developer's web site here. :thumbsup: The above link will take you to a "fully commented" definition of each item in the style sheet with correlating examples. Hope this was useful, Bill Kellum
  13. You'll have better luck posting in the STS v4 forum. Here's the link.
  14. Use the same Application_bottom.php from your original OsCommerce 2.2 store. Take caution to which files (contributions) that you download from the STS page. I recommend these two files only. (STS v4.1 & index.php module) Have fun, Bill Kellum
  15. You may not have grabbed the latest "full" version. To install it correctly, You will only need to download and install this and then this. :thumbsup: The STS v4.1 by rigadin as well as the Index module v1.0.3 for STS4. The two files between these two contributions have been known to cause problems such as double headers and php errors. ;) Hope this helps, Bill Kellum
  16. Rhoda, did you get rid of the other two contributions from the STS Contributions page that were causing the double header issue? Like I mentioned earlier, those two contributions are known to cause the double header problem. Bill Kellum
  17. I agree with this hack being a must. Sorry my help came so late.... I missed the point of your question at first. My bad. Glad it all worked out though. -Bill Kellum
  18. You can use standard HTML tags to get your desired result. I caution you though...the size of a browser is a personal thing for most "buyers" and you might lose a bunch of sales by resizing the width of their browsers. To set a fixed width, I prefer to use tables in HTML. You can then set the attributes of the table such as size and justification. STS is an HTML template so all HTML rules apply. Have fun! -Bill Kellum
  19. Did you forget to add the <!--$headcontent--> at the top of your html template page? This tag goes in the <head> of your template. It contains the charset of the page, meta tags, base href and javascript taken out of header.php. If you have this in the <head> section of your template and you are still having problems, take a look at your javascipt in the header.php page. Hope this helps, Bill Kellum
  20. Alessandra, Why not just remove the tags? STS gives you the power to move the boxes anywhere you want them, and if you don't want them, just don't add the tag for that particular box. Hope this helps, Bill Kellum
  21. Rhoda, To install it correctly, You will only need to download and install this and then this. :thumbsup: The STS v4.1 by rigadin as well as the Index module v1.0.3 for STS4. The two files between these two contributions have been known to cause problems such as double headers and php errors. ;) Hope this helps, Bill Kellum
  22. Niel, I tried to get this response back to you right away but the forums were down for several hours... I'm sorry about leading you down the wrong path regarding your catagory names being listed at the top of each page. I forgot that I had hacked some code to get it to dynamically display the catagory name instead of the canned "Let's see what we have here" language. I kept poking my head back into the forums last night hoping for an opportunity to give you the correct information. I feel badly about it. TO THE STS COMMUNITY: I know this doesn't really apply to STS directly, but I'm posting it anyway since most of the STS users are not familiar with PHP and I feel that fellow STS'ers could benefit from this little hack that works nicely along with the STS template theory. To get rid of "Let's See What We Have Here" for your Categories and Sub-Categories, you can replace them with the name of the categories or subcategories name. Here is how I hacked the OsCommerce code to do it: Open the following file in a text editor: /yourstore/index.php Do a search for the following line of code: <?php echo HEADING_TITLE; ?> You will find three instances of each. Do the following: To see the name of your CATAGORIES instead of "let's see what we have here" text, just replace the first instance of the code: <?php echo HEADING_TITLE; ?> with the following: <?php echo $category['categories_name'] ?> To also have SUBCATEGORIES displayed dynamically as the CATAGORIES above, just replace the second instance of the code: <?php echo HEADING_TITLE; ?> with the following: <?php $category_query1 = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'"); $category1 = tep_db_fetch_array($category_query1); if ($category1['categories_name'] != "") {echo $category1['categories_name'];} else { echo HEADING_TITLE;} ?> The third <?php echo HEADING_TITLE; ?> should be left alone so you do not need to modify it at all. Don't forget to save your document as the same name as the original index.php. That's all there is to it. If this is too daunting, or if you run into problems, let me know. Since I haven't useed this hack in a long time, I ran it on a test store and everything worked perfectly. :thumbsup: Good luck, Bill Kellum
  23. Take a look at one of my stores and you will see the "text" catalog title on each page. Hat Over Heels. Select the "Hatalog" and it will take you to the store. It appears you may have deleted a line from your index.php file or english.php file that displays the catagory title along with the catagory image. OsCommerce 2.2 displays both by default. Hope this helps, Bill Kellum
  24. Am I missing something? The name of the Category should be set by what you have entered into your OsCommerce shop. For example, if you have a Hardware Catagory, then "Hardware" should be listed on the Hardware page. You would have to edit the PHP within OsCommerce to get it to do otherwise. I'm referring to what would be listed in your breadcrumbs drop down list of Catagories. Are you talking about something different? Bill K.
  25. Please post what you may have been doing wrong that you corrected in order to get STS v4.1 installed. I ask this so that I can use your troubles to create an easier to understand installation instruction sheet. When I write these instruction sheets, it's good to have a view point from someone who is just starting out with OsCommerce along with STS. Thanks and I'm glad things worked for you, Bill Kellum
×
×
  • Create New...