Jump to content
Latest News: (loading..)

Vestax159

Members
  • Content count

    44
  • Joined

  • Last visited

  1. Got it working, many of the pages still include .php for an extension. Looking to rewrite category pages to contain category name.
  2. Recieving this error after install. Warning: strpos() [function.strpos]: Empty delimiter in /home/aopaj/public_html/includes/classes/seo.class.php on line 2580 Secondly, how should I go about adding additional files to rewrite?
  3. Vestax159

    "Dynamenu" for osCommerce

    No idea what the problem is?
  4. Vestax159

    "Dynamenu" for osCommerce

    // 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.'"'; } unset($cPath_array_temp); } $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
  5. Vestax159

    "Dynamenu" for osCommerce

    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.
  6. Vestax159

    "Dynamenu" for osCommerce

    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.
  7. Ahh ok! That worked sort of. Now when I click on the various items it send me to a 404 page. http://gator692.hostgator.com/~aopaj/catalog/ Heres the link to the site if you need it.
  8. 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} </IfModule>
  9. Vestax159

    [Contribution] STS v4

    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.
  10. Vestax159

    [Contribution] STS v4

    Thnx, but which index.php should I use (Which directory is it listed under)? I see multiple of them but none of them seem to be assigning a variable to content.
  11. Vestax159

    [Contribution] STS v4

    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?
  12. Vestax159

    Need some help in customizing STS

    Thanks for the link. I kind of though the database was added by sts not oscommerce but either way this will be very helpful! Under the template it refers to the variable $content for the body of the homepage, categories, etc. Where is this being pulled from?
  13. 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.
  14. Vestax159

    Need some help in customizing STS

    Sorry new to STS / OScommerce. If a mod would like to move this to the correct position feel free. I am looking for the shipping price / information (Ground, Two Day, etc)
  15. 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.
×