Jump to content


  • Content count

  • Joined

  • Last visited

Posts posted by Vestax159

  1. Look in the includes/configure.php file for this line

    define('DIR_WS_HTTP_CATALOG', '');

    If you find it, exactly as it is, then your configure file is setup incorrectly. See here on how to fix it.


    The code in includes/classes/seo.class.php has to be changed to rewrite a url that isn't already included. But this contribution includes most that are needed. What are you wanting to rewrite?


    Got it working, many of the pages still include .php for an extension. Looking to rewrite category pages to contain category name.

  2. // Create the root category list
    function tep_make_cat_dmlist($rootcatid = 0, $maxlevel = 0){
       global $cPath_array, $show_full_tree, $languages_id;
       global $idname_for_menu, $cPath_array, $show_full_tree, $languages_id;
       // Modify category query if not fetching all categories (limit to root cats and selected subcat tree)
    	if (!$show_full_tree) {
           $parent_query	= 'AND (c.parent_id = "0"';	
    			if (isset($cPath_array)) {
    			    $cPath_array_temp = $cPath_array;
    			    foreach($cPath_array_temp AS $key => $value) {
    					    $parent_query	.= ' OR c.parent_id = "'.$value.'"';
           $parent_query .= ')';				
    	} else {
           $parent_query	= '';	
    	$result = tep_db_query('select c.categories_id, cd.categories_name, c.parent_id from ' . TABLE_CATEGORIES . ' c, ' . TABLE_CATEGORIES_DESCRIPTION . ' cd where c.categories_id = cd.categories_id and cd.language_id="' . (int)$languages_id .'" '.$parent_query.'order by sort_order, cd.categories_name');
    	while ($row = tep_db_fetch_array($result)) {				
           $table[$row['parent_id']][$row['categories_id']] = $row['categories_name'];
       $output .= tep_make_cat_dmbranch($rootcatid, $table, 0, $maxlevel);
       return $output;


    Code for the above problem. starting at line 209 ending at line 245

  3. What exactly are you putting into the header of the STS Template?


    In the STS_template im just calling the $categorybox into the top of the page (so its above the content not in the columns.


    <?php include(DIR_WS_BOXES . 'dm_categories.php'); ?> was placed at the very end of the header.php after the last php closing tag.

  4. I have tried installing this add on just using the original file. My website once installed gives me this error.

    Fatal error: Cannot redeclare tep_make_cat_dmlist() (previously declared in /home/aopaj/public_html/catalog/includes/boxes/dm_categories.php:210) in /home/aopaj/public_html/catalog/includes/boxes/dm_categories.php on line 245


    I am trying to place this in the header of the STS template if that helps. I did follow the instructions for STS.

  5. So I followed the installation instructions in the documentation but once I change the .htaccess the home page fails to load and so does admin. The rewrite base is suppose to be the URL for the homepage not the ftp folder directory correct?


    # Options +FollowSymLinks 
    Options +FollowSymLinks 
    <IfModule mod_rewrite.c> 
     RewriteEngine On 
     # Change RewriteBase using the instructions  
     http://gator692.hostgator.com/~aopaj/catalog/ = RewriteBase /catalog/
     RewriteRule ^(.*)-p-([0-9]+).html$ product_info.php?products_id=$2&%{QUERY_STRING} 
     RewriteRule ^(.*)-c-([0-9_]+).html$ index.php?cPath=$2&%{QUERY_STRING} 
     RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} 
     RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING} 
     RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} 
     RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} 
     # Articles contribution 
     RewriteRule ^(.*)-t-([0-9_]+).html$ articles.php?tPath=$2&%{QUERY_STRING} 
     RewriteRule ^(.*)-au-([0-9]+).html$ articles.php?authors_id=$2&%{QUERY_STRING} 
     RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING} 
     # Information pages 
     RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING} 
     # Links contribution 
     RewriteRule ^(.*)-links-([0-9_]+).html$ links.php?lPath=$2&%{QUERY_STRING} 
     # Newsdesk contribution 
     RewriteRule ^(.*)-n-([0-9]+).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING} 
     RewriteRule ^(.*)-nc-([0-9]+).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING} 
     RewriteRule ^(.*)-nri-([0-9]+).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING} 
     RewriteRule ^(.*)-nra-([0-9]+).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING} 

  6. Can you be more concrete about what you want to do? Or is your question just a theoretical one?


    Well, it is both really. I am looking to edit the content of the home page along with the other pages (Shipping and Returns, Privary Notice, etc). To edit that I needed to know which to change, the index is also located under catalog/includes/language/english and in other places (I think). Which I now assume is just to be changed if your using different languages for your site.


    So I could of just asked where to edit these pages at. However, I was curious as to how it assigned this information for content to the $content variable since it doesn't have anything like $content = "yadda yadda yadda" in index.php or anywhere else I could find.

  7. How is $content being pulled from the index? Doing a search I don't see the variable being assigned anywhere.


    Anyhow which directory should I find the files to modify the content? I have heard several answers on this from looking through the forums and manuals.


    Lastly, I saw that the product categories can't be edited as of the current STS build. Does anyone have a link to an add on for this or assistance with the coding?

  8. Reposting this from os commerce 3.x since it seems it doesn't exist in this newer version.


    Anyhow, I'm new to OS commerce and in an effort to speed things up decided to give STS a try. When looking over the database it is already setup pretty well minus a few columns which I will need to be adding. However, I am having trouble reverse engineering and deciphering what exactly is what. Is there a breakdown of the database someplace I could check out? Mainly need to know how each table is related and it would be helpful to get a breakdown of what some of the columns mean.


    I'm also attempting to alter the url, meta tags, and meta keywords by adding an additional column for tags / keywords. At the moment is appears as if the url is being pulled from the product_id but for the life of me I cannot find where in the many pages of code this is being pulled in. I realize I could use one of the many wonderful add ons but would prefer to do this on my own.

  9. If this isn't the correct forums for this let me know. The link in the user manual for STS didn't seem to work.


    I'm looking to rename the products URL to something more friendly to the end user. Right now it looks like it just pulls up the product_id field for the URL. However for the life of me I can't find where it does then in the code because then I could just add a new field with the URL name and direct it to there instead. I also need the meta keyswords, description, and title but I found a program that could do that for me.


    I'm also looking to import a large amount of products which I should just be able to import a csv file into the SQL database. Seeing how I didn't construct this database I am unsure what some of the fields mean or refer to is there a list of them somewhere?


    I can't seem to find the shipping information either.