Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

bkellum

Pioneers
  • Posts

    4,854
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by bkellum

  1. I am having a problem with my admin panel after installing STS. I have seen this referenced here before and when I posted it in the regular installation forums I was sent here for help. Any help would be very much appreciated.

     

     

    I copied all of the files STS installation instructions told me about, and went back to my admin panel and this is what happened.

     

     

    Warning: require(includes/classes/navigation_history.php) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\catalog\admin\includes\application_top.php on line 128

     

    Fatal error: require() [function.require]: Failed opening required 'includes/classes/navigation_history.php' (include_path='.;\xampp\php\PEAR') in C:\xampp\htdocs\catalog\admin\includes\application_top.php on line 128

     

     

     

     

    Thanks in Advance!

     

    This is not a STS issue but rather most likely a user error on your part. You've accidentally copied the /catalog/includes/application_top.php into the admin. Be sure to follow the installation instructions very closely.

  2. Hi,

     

    I'm having a bit of a nightmare... The site was working fine (with STS) until two days ago. Out of the blue it just stops. No one has been playing with the code or anything.

     

    Anyway, I backup everything that was there and then revert back to the copy i had made of the site when I put it live - the working version. This didn't work, when i loaded index.php which was a blank screen. When i checked the source all i got was

     

    <!-- right_navigation_eof //-->
       </table></td>
     </tr>
    </table>
    <!-- body_eof //-->
    
    <!-- footer //-->
    

     

    and that's IT (same for all other pages)

     

    however, the admin still worked, and my site came back when i disabled STS (note - sts WAS working previously)

     

    I also contacted my hosting to check if they'd changed anything, and they hadn't. I got them to do a restore to last week too, but this still didn't help.

     

    I've updated sts to the 4.6, and admin side it seems to work - however i've found a problem with my includes/column_right.php file. When I put the final

    // START STS 4.1 
    }
    // END STS 4.1

    in as told by the installation, i get a blank index.php page. Without the final } something loads - the core bits such as what is in the language index.php file but none of the template layout. grr.

     

    Can someone help?

     

    Before you say it -

    • I've compared my old column_right, the one in the 4.6 download, and my old backup one.
    • I've gone over ALL the installation procedure from scratch 5 or 6 times.
    • I've searched about every possible keyword phrase i can think of for this problem to find if someone else has had it on here

     

    I've included the column_right.php

     

    <?php
    // START STS 4.1
    if ($sts->display_template_output) {
    $sts->restart_capture ('content');
    }
    else 
    {
    //END STS 4.1
    /*  $Id: column_right.php 1739 2007-12-20 00:52:16Z hpdl $  
    
    osCommerce, Open Source E-Commerce Solutions  http://www.oscommerce.com  
    
    Copyright (c) 2003 osCommerce  Released under the GNU General Public License*/  
    
    require(DIR_WS_BOXES . 'shopping_cart.php');  if (isset($HTTP_GET_VARS
    
    ['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');  if 
    
    (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 
    
    'order_history.php');  
    //secure seal  Box v1.0
    include(DIR_WS_BOXES . 'securelogo.php');  if (isset($HTTP_GET_VARS['products_id'])) 
    {    if 
    
    (tep_session_is_registered('customer_id')) 
    {      $check_query = tep_db_query("select 
    
    count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = 
    
    '" . (int)$customer_id . "' and global_product_notifications = '1'");      $check = 
    
    tep_db_fetch_array($check_query);      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');    }  }
    else {    include(DIR_WS_BOXES . 
    
    'best_sellers.php');  }  if (isset($HTTP_GET_VARS['products_id'])) {    if (basename
    
    ($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 
    
    'tell_a_friend.php');  } else {    include(DIR_WS_BOXES . 'specials.php');  }
    //  require (DIR_WS_BOXES . 'reviews.php');   if (substr(basename($PHP_SELF), 0, 8) != 'checkout') 
    {    include(DIR_WS_BOXES . 'languages.php');    
    include (DIR_WS_BOXES . 'currencies.php');  
    require(DIR_WS_BOXES . 'memberlogin.php'); }
    
    // START STS 4.1 
    }
    // END STS 4.1
    ?>
    

     

    Thanks for any help that can be given. I don't understand why re-uploading my backed up working copy of the site isn't just fixing this.

     

    regards

     

    I'd say your host DID do something or you were hacked. You should have went over your files via FTP to see when the last time they were updated. Check all root files on your server to make sure a hacker didn't do something there.

     

    Also, you could be dealing with a database problem. Try uninstalling STS via the admin and then log out. Login again to install STS to refresh the database.

  3. I just found out that I had the right file path, but it just had to be in my templates folder since that was where it was looking for the files and not my root directory. Thanks.

     

    - Luc

     

     

    STS already has a procedure to deal with file includes. Hint: Look into the STS Modules in the admin.

    Also, please post STS related questions in the proper support thread, it is the forum rules by the way. whistling.gif

     

    See the STSv4 Forum link in my signature below and then once you are there, click on "Add Reply" to post within that thread. Thanks!

  4. Documentation change:

     

    I have a suggestion to help make the STS User Manual a little more clear. In the 7.1 section on infoboxes where it says

     

    Note: Include the name of the infobox filename in the template in the following format:

    • infobox_
      infoboxname
      .php.html

     

    I finally found what the possible infoboxname values can be, the file names in the osCommerce catalog\includes\boxes directory. I kept thinking they were the placeholder names for the infoboxes, i.e. category for $categorybox$ or information for $informationbox$. I think it will be more clear if you reference the files names in the catalog\includes\boxes directory.

     

    Thanks for a great tool,

     

    Russ Petersen

     

    Russ,

     

    Good point! To be honest, I thought I included that in the documentation. Good catch! I will modify the text in the next release. I have a update to be made very soon regarding the custom infoboxes so I will make this change along with that.

     

    Thanks for posting,

  5. Josh,

     

    Since this is not the support thread for STS, I will only respond this one time here, if you need further help, please visit and post your questions in the proper support thread. You can find this thread link in the STS User Manual as well as in my signature below (STSv4 Forum). When posting in the STSv4 Forum, be sure to click on the "Add Reply" button to post WITHIN the proper thread. Otherwise, you will create an entirely new thread as you have done so here.

     

    1. When installing onto a new osCommerce RC2a (not version 3.x), you should simply upload all of the files WITHIN the STS folder (not the actual STS folder), being sure to keep the file/folder structure intact. The files within the STS folder are new files that are not found in a stock osCommerce RC2a.
    2. The second part of the install is to upload all of the files WITHIN the "Files for RC2" folder (not the actual "Files for RC2" folder), being sure to keep the file/folder structure intact. The files within the "Files for RC2" folder are files that are already found in a stock osCommerce RC2a but have been modified in order to complete the STS installation.
    3. thumbsup.gif After doing the above, it is a good idea to use a file comparison tool such as WinMerge or BeYond Compare to compare the files on your server with the files within the STS and "Files for RC2" folders of the STSv4.6 contribution. This will help rule out a bad upload from your FTP Client software. I have seen numerous accounts of users who claimed they had indeed upload all of the required files but in reality, they were using a poor FTP Client software program which had failed them.
    4. Now, the last part of the installation is to login to your admin, and then "Install" the STS Default Module. At this time, simply click on the install button (or Enable) and leave all of the settings in their default status except of course for the "Use Templates" should be set to "True".
    5. Installation is now complete.

    See you in the STSv4 Forum.

     

     

     

     

     

  6. Hi recheck installation, also are you using STS?

     

    the error you are getting is because no order id is being passed

    insert into orders_status_history (orders_id, orders_status_id, date_added, customer_notified, comments) values ('', '2', now(), '1', '')

    notice first value is missing '','2'

     

    Steve

     

    Steve,

     

    STS would not have anything to do with this contribution, page load times and all.

  7. Hello

     

    I've been experimenting with STS for a new site and I'm running my templates around in circles trying to solve what is probably a simple design issue.

     

    I have STS 4.6 w/ Enchanced Specials, Simple Multi Images, and Fancy Tag for STS working perfectly. I am evolving a free template into a "multi" template with header/footer/sidebar/content pages using CSS.

     

    My problem occurred when I was following a click stream through our "catalog":

     

    Home > Pools > Inground > Accessories

     

    Within the Accessories Sub-Catergory I have both products and other sub-categories (yes the logic is flawed, but..) I would like to display the sub-categories at the top and the products below.

     

    I would also like to alter the layout of any sub_category pages with sub_categories within them... (wow that was painful)

     

    I though that creating an index.php_X.html and index.php_X_X.html would solve this, but that only changes the product_info pages...

     

    Please shed some light on this subject or maybe I'm simply not reading the Users Manual/Beginners Tut correctly...

     

    thanks

    -jt

     

    First, be sure you have the STS Index module enabled.

     

    Then, follow the template name structure for custom template pages. Another option is to create custom PHP code to handle this if you didn't want to create specific template pages for each sub-category (STS gives you the choice to do it eitherway).

     

    See the common template names listed a few posts above.

  8. Hi all,

     

    I have a question, I'm trying to integrate the following contrib on my OSC which of course runs STS:

    Ajax attributes images

     

    What it does is simply linking an option to a an image, so that by slecting the corresponding option you can see a corresponding image in realtime.

     

    Unfortunately, when the ajax call happens in product_info.php the result given is not the content I'm supposed to retrive but the HTML code of the STS template.

     

    I suppose the two contributions have issues because of this code:

    .....

     

    Any work around suggested?

     

    thanks!

     

    I actually created my own options as images add-on and it works perfectly with STS. I don't see any reason why the one you are using would have any issues other than that contribution not being coded correctly to meet osC standards. If you are not using a content template for your product info pages, then STS would pick up the content changes you made in your standard product_info.php page automatically.

     

    Here are some things to look into:

    1. Be sure you are calling the JavaScript needed in your template pages
    2. Be sure the Ajax add-on is working with STS turned off first
    3. You could look into not having STS template any pages created by this add-on (See Below).

    How to exclude a page from being templated in STSv4.5.x:

     

    In the sts_default.php file, find the following code:

     

     

    if (strstr($scriptbasename, "popup") || strstr($scriptbasename, "info_shopping_cart"))
             return ''; // We don't use template for these scripts

    Add your php file that you want STS to exclude and it will not template that file. Note: Add the script name as follows:

     

     

    if (strstr($scriptbasename, "popup") || strstr($scriptbasename, "your_script_here")|| strstr($scriptbasename, "info_shopping_cart"))
             return ''; // We don't use template for these scripts

     

     

    Hope this helped,

     

     

     

  9. Thanks for that information, but I have a few more questions.

     

    Would it be possible to bring the page I created and put it in the index file in the oscommerce folder or would that just mess everything up more? Secondly, would I be able to use the "Content Outside OSC" to put all of the content that you would normally find inside OSC on to the page I created to match my homepage and then use sts to change the look of the boxes to match my page? And finally does this mean sts is strictly for changing the look of the original OSC store and images?

     

    - Luc

     

     

    Luc,

     

    STS allows you to make your own home page using HTML and naming that page as so: index.php_0.html

    This page would then be used as your home page. You would then make sure you have a default index template named index.php.html to be used for all of your other catalog pages. This is different from the default template page (sts_template.html). The sts_template.html is used for anyother page in your shop in which you have not created a specific template for such as your privacy.php and shipping.php pages.

     

    See these posts for more information:

     

    Important Posts for the STS newbie:

     

    Post #3755: http://forums.oscomm...p;#entry1226986

     

    Post #4326: http://forums.oscomm...p;#entry1303555

     

    Post #4974: http://forums.oscomm...p;#entry1361366

     

    Post #3772: http://forums.oscomm...p;#entry1227769

     

    Post #3757: http://forums.oscomm...p;#entry1227006

     

    Please review the above for insight on how the Simple Template System allows you to make templates for pages, categories, home page, products and infoboxes.

     

    TIP

    Here is a quick rundown of common template names:

     

    • sts_template.html
      • = Default template

      [*]index.php.html

      • = Default Category template (used for all category pages that do not have a specific template page created for it – if you didn’t have this template, STS would use sts_template.html).

      [*]index.php_0.html

      • = Home page template

      [*]index.php_x.html

      • = Specific category template where x = the category ID.

      [*]index.php_x_y.html

      • = Specific subcategory template where x = the category ID and y = the subcategory ID

      [*]product_info.php.html

      • = Default Product template (used for all products, in all categories, if no specific product template is found).

      [*]product_info.php_c23.html

      • = Product template for all products in a specific category (23 in this example – change to the category ID needed)

      [*]product_info.php_23.html

      • = CONTENT template for product ID 23. All content template should be saved in the SGP/content/ folder. Review the sample content template provided in the STS template “full/content” folder. The STS Module Product Info must be enabled in order to use this STS feature. This template is not recommended unless you really know what you are doing since you would need to make modifications to it if you ever added new osCommerce contributions to your shop.

      [*]popup_image.php.html

      • = Template for the product popup image.

      [*]index.php.mfr.html

      • = Default Manufacturer template page (used for all manufacturer pages that do not have a specific template page created for it - if you didn’t have this template, STS would use sts_template.html).

      [*]index.php.mfr_x.html

      • = Specific Manufacturer template where x = the manufacturer ID.
         
        Hope this was helpful,

  10. I must be a complete NOOB.

     

    I've read the docs and everyone seems to get this up and running. I can not seem to get it right.

     

    I make the changes to the sts_template.html and when I log into my filemanager and look that file, i can see all the changes I've made.

     

    BUT when I go to the site, there are NO changes. It is still the default sts template.

     

    YES, I've gone through and enabled the module from the oscommerce admin site. Yes, I've reloaded the store from scratch and followed the directions to a T ...okay so maybe I haven't because it STILL DOESN"T work! aRRRGGGgggHHHHHh

     

    Any clues? I've only been able to modify the logo by going through and uploading my own image and naming it store_logo.png

     

    grrr please please PLEASE someone help me

     

    thanks

     

    Hello and welcome to osCommerce RC2a and STSv4.6. Sorry to see that you are having problems right at the start.

     

    • Be sure you are indeed uploading the modified template back onto your server in the same location.
    • Be sure you have the correct template set selected that you have made the modifications in (the folder where this modified template resides).
    • If the template set is using a index.php.html template, then you would need to modify that template as well.
    • If all esle fails, refresh the cache in your browser as you may be viewing an old cached page of your site. Try viewing your site from a different computer to see for sure.

    Hope this helped,

     

     

     

     

  11. this is a reply to my original thread (http://www.oscommerce.com/forums/topic/362514-sts-content-not-showing/), but as requested by the starter of this topic, I am moving the discussion in here! smile.gif

     

     

    Currently using osC MS2 (including some patches applied manually)

     

     

    I uploaded all the new files from the MS2 folder, and made the changes to the existing files manually.

     

     

    I kept the entire folder structure intact and used all the default STS and osC folder names.

     

     

    After installing STS, I first tried the default settings with one of the sample templates; right from the start I have not seen any $content being displayed, other than what I posted in my previous thread.

     

    If no $content would show up altogether, I would expect I had done something wrong editing the files, but since some content does show (albeit nothing usable), I suspect something else has gone wrong.

     

    I also tried using the debugging function of STS, but couldn't detect anything strange. No errors/exceptions/warnings are thrown...

     

    As I mentioned before, everything is working as expected, it's just that all pages are empty since the $content variable does not contain the expected code.

     

    Any suggestion is welcome... smile.gif

     

    Check your installation.

     

    1. Be sure you have indeed uploaded the contents of the "STS" folder to the correct location on your server, keeping the file/folder structure intact (meaning, do not upload the STS folder and everything in it but only upload everything inside of the STS folder.
    2. Either upload everything in the RC2 folder or make the changes to each file manually. If you choose the manual route, save yourself some time and pain by using a good file comparison tool such as Beyond Compare or WinMerge to merge in the changes manually, so as to make sure the modified code is going to the correct location.

    Once the above is completed, click on the "install" button for the STS Default module in the admin. Keep all of the default settings and then test your shop.

     

     

     

  12. Hello all...

     

    I have a question. Using STS 4.x, where I have a few different links coded into the template (ie, Index, Forum, etc) it does not carry the osCid= string with it. Therefore it loses the session, logs the user out and deletes the cart.

     

    Does anyone know why or what settings I should check?

     

    Thanks!

     

    Yes, you need to make sure you have created your links properly (to retain the session ID).

    See the following thread in this STS Forum:

     

    Creating Page Links

  13. Hi there!

     

    I recently installed STS 4.6 on my osCommerce MS2 installation and everything seems to work fine, except for the fact that no actual page content is being displayed.

     

    At first I thought I may have made a mistake in my template file, but all of the default/example templates that come with STS4.6 show the same behaviour.

     

    When I look at the source, the code below is the only code that appears instead of the $content variable, regardless of the page that I visit (whether it is a product page, the checkout page, an information page, all the same result).

     

    <!-- start Default Content //-->
    <!-- right_navigation_eof //-->
       </table></td>
     </tr>
    </table>
    <!-- body_eof //-->
    
    <!-- footer //-->
    
    <!-- end Default Content //-->
    

     

    I tried searching Google and this forum, but did not find anything similar.

     

    Does anyone have a clue as to what I am doing wrong? Did I miss a step during the installation process? I checked and rechecked all the installation steps (manual installation, since I did not have a clean install anymore) but was unable to find anything...

     

    I'm really hoping you girls and guys can help me out, I've been staring at this for a few hours now without any luck... maybe I should just get some sleep! tongue.gif

     

    Regards,

    Rinck

     

    What version of osC are you using?

    Did you upload all of the files within the STS folder as well as all of the files from the RC2 folder?

    Did you keep the folder structure intact?

    Did you try using STS using the default settings (other than the enabling the Default module by clicking on the Install button of course)?

     

    Please post this in the STSv4 Forum thread (link is in my signature below as well as being listed in the STS User Manual).

  14. Well I can't get the site working properly using STS with IE. SO, does anyone know of any easy way to change the layout without STS?

     

     

    The problem is not STS or IE, but with your coding in your template or CSS.

     

    This is why STS comes with sample templates. Use them and get aquainted with STS and osCommerce and then create your own templates.

  15. Jami,

     

    This is known bug from a template set (freeosc009) donated by a user. I have not been able to locate in the template set what is causing the bug but I do have a stable fix for users who still want to use that particular template set as a foundation for their site.

     

    You can find the work around here:

     

    http://www.oscommerce.com/forums/topic/295660-contribution-sts-v4/page__st__5760__p__1514546%26#entry1514546

     

     

     

    Hope that helped you out,

  16. When I use STS images aren't showing up but when I turn it off they do. Can anyone help?

     

    Glad you took the time to find the correct STS thread. Wasn't that easy?

     

    1. Usually, with these types of issues, it is most likely that your site's configure.php files are not setup correctly (includes/configure.php and admin/includes/configure.php).
    2. Another possible reason, you do not have the correct permissions setup on your images folder.
    3. And lastly, make sure you didn't make the rookie mistake of turning on "Use Search Engine Safe URL's". This should never be turned on as it is still in development. If you want this option, you will need to install one of the SEO contributions.

  17. Thank you brokert, I have the same feeling. I found this thread and thought my troubles were almost over now I have to go search other places. Why can't people just answer the damn question if they know what it is instead playing these games.

     

     

    Why can't you stop playing games and go to the STSv4 support thread and ask your question there. My gosh, you would think I was cutting off your right arm. Just go to the STSv4 Forum and post your question. How much easier could it be? There is a purpose for this as explained in my posts above.

     

    I even posted the link for you in my signature below as well as publishing it in the STS User Manual.

    Everyone wants it handed to them and not put any effort into doing it correctly. I will GLADLY provide FREE support to ALL of your STS QUESTIONS if you follow directions and post there.

     

    If not, keep complaining and Good luck!

  18. I just love it when I am searching for the answer to a problem, then find the post that should have the answer and the response is like the above. Why can't anyone just give an answer instead of helping by telling the poor person in trouble to go read here, go read there. They must know the answer if they know where it is. I will now continue looking for the answer I need. By the way, I read the documentation.

     

     

    Because we get sick and tired of people NOT READING THE DOCUMENTATION. crying.gif

     

    thumbsup.gif The documentation specifically points out to post all STS related support questions in the proper support thread in order to BENEFIT ALL STS USERS from the question/answer. If you would have read it, you would have seen this. Thank you.

     

    Also, if the user would do the above, they would find that the answer has most likely already been given a hundred times over within the STS support thread. An easy Google search of the thread would point that out. (see below)

     

    I provide the software and support for free so why can't the users oblige and post in the appropriate support thread? Seems fair to me.

     

    If I don't inform the erratic posters that they are not in the correct thread, other users may think this is the official STS Forum and piggy back questions to no end.

     

    Sorry to upset you but please try to follow the proper procedures. Thanks!

     

    Here are some Google search tips:

     

    Search the specific STS version 4 support thread:

    site:www.oscommerce.com/forums [Contribution] sts v4

    site:www.oscommerce.com/forums [Contribution] sts v4 $templatedir

    By adding the search phrase "$templatedir", Google will search the entire STSv4 Forum thread for that phrase.

     

     

    Search the entire osCommerce forum:

    site:www.oscommerce.com/forums sts

    site:www.oscommerce.com/forums "insert your search text here without the quotes"

    By adding the search phrase "sts", Google will search the entire osCommerce Support Forum for that phrase.

     

     

    Search the contributions:

    site:http://www.oscommerce.com/community/contributions simple template system

    site:http://www.oscommerce.com/community/contributions "insert the search contribution name here without the quotes"

    By adding the search phrase "simple template system", Google will search the entire osCommerce contributions for that phrase.

     

    So...for example

    Do a Google search for: site:http://www.oscommerce.com/community/contributions Header Tags SEO

     

    And that will return the following.

     

     

  19. I had the same problem and found that i had uploaded a file to the wrong directory. (The file had the same name.) I discovered this by looking at the size of the file. The file size was very different than the one in the original installation package.

     

    to correct it i uploaded the original file over top of the file i accidentally uploaded.

     

    Good luck.

     

    Mike

     

     

    Yes, osCommerce has a lot of files with the same name, but the key is that they are located in specific folders.

     

    For example, files that osCommerce would "include" in a page would be found in the "includes" folder. Well, since there is a frontend catalog (includes) and a backend admin(admin/includes) that would use file includes, they both have an "includes" folder.

     

    In either the admin or the catalog (frontend), both may have a modules section for example and the same name issues would be found there as well.

     

    Before installing ANY add-on to osCommerce, it is a good idea to get familiar with the folder structure and the overall flow of the program first. It will make installing contributions (add-ons) a lot easier to understand.

×
×
  • Create New...