Jump to content

kenkja

Members
  • Content count

    256
  • Joined

  • Last visited


Reputation Activity

  1. Like
    kenkja reacted to burt in What YOU can do to help with development of 2.4   
    It does not matter how technically proficient you are, you can help to speed up development of v2.4 osCommerce.
     
    HERE IS HOW:
     
    1. Download and install v2.3.3 => http://www.oscommerce.com/solutions/downloads
     
    2. Play with it as much as you can. If you come across something that you think is a bug or inconsistency, post to the bug tracker => http://forums.oscommerce.com/tracker/project-1-oscommerce-online-merchant-v2x/
     
    Someone will respond to your bug to let you know if it is a bug, and provide a fix.
    Fixes for confirmed bugs will be rolled into 2.4
     
    Let's get this community rolling! Do YOUR part to help bring osCommerce back the success it deserves.
  2. Like
    kenkja reacted to multimixer in Google Analytics for v2.3.1   
    You don't need any addon for google analytics in version 2.3.1
     
    In your admin panel go to modules>header tags, install the analytics module (same way as you do eg for boxes) and paste your code into the input field.
     
    That's all
  3. Like
    kenkja got a reaction from silverkorn in [Contribtion] Year/Make/Model for OSC v2.3.x   
    Regarding last post, it would be great to have the first lines of the created arrays language specific, but as it is reasonable obvious what should be done even if you don't speak/read english, its not a big deal.
     
    More concerning is I don't think I have the install correct as I have 2 issues which I didn't expect.
     
    1. Unless there is at least 1 product with YMM attributes the whole index.php page looses its formatting quite dramatically. The centre section (which contains the user greeting) disappears, both left & right _column(s) change width, the "OS Commerce" logo become left justified and the YMM box has no title.
     
    Clearly the obvious answer is to keep a product with YMM attributes, but is this normal ??
     
    2. Within Admin create/edit a product 2 lines of the coding appear as text between the page title and the product status lines -
     
    Page Title - New Product in "Clothing =>Shirts"
     
    Text Code - //bof Year_Make_Model Contribution V2.3.x by Dunweb Designs
    Text Code - //eof Year_Make_Model Contribution V2.3.x by Dunweb Designs
    Then - Product Status In Stock/Out of stock line
     
    Again as these lines are only text, they don't really matter, but are something I didn't expect.
     
    I've doubled checked the files affected by the install with the readme.txt file and copied all of them into a spreadsheet along with all of those from the "Drop on Top Files" folder, then asked the spreadsheet to compare each line. Aside from some changes in includes/application_top.php as required by the Secuirty Pro & Ip Trap contributions and some colour changes in stylesheet.css, all of my files appear identical to the "Drop on Top Files" with the exception of
     
    Includes/application_top.php
     
    My Code - Define('PROJECT_VERSION', 'osCommerce Online Merchant v2.3');
    Drop on Top - Define('PROJECT_VERSION', 'osCommerce Online Merchant v2.3.1');
     
    Include/Functions/general.php
     
    Instruction 8b of the readme.txt requires the following code to be added before the last ?> the two lines in Red bold type are not in the "Drop on Top Files" version
     
     
    //bof Year_Make_Model Contribution v2.3.x by Dunweb Designs
    function YMM_get_categories_where($id,$where){
    global $languages_id;
     
    $cq = tep_db_query("SELECT c.categories_id, 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 . "'");
     
    $inc_cat = array();
    while ($r = tep_db_fetch_array($cq))
    $inc_cat[] = array ('id' => $r['categories_id'],'parent' => $r['parent_id']);
     
    $cat_info = array();
    for ($i=0; $i < sizeof($inc_cat); $i++)
    $cat_info[$inc_cat[$i]['id']] = array ('parent'=> $inc_cat[$i]['parent'],'path' => array($inc_cat[$i]['id']));
     
    for ($i=0; $i < sizeof($inc_cat); $i++) {
    $cat_id = $inc_cat[$i]['id'];
    while ($cat_info[$cat_id]['parent'] != 0){
    $cat_info[$inc_cat[$i]['id']]['path'] [] = $cat_info[$cat_id]['parent'];
    if($cat_info[$cat_id]['parent'] == $id)
    $cat_info[$inc_cat[$i]['id']]['ind'] = count($cat_info[$inc_cat[$i]['id']]['path']) - 2;
    $cat_id = $cat_info[$cat_id]['parent'];
    }
    $cat_info[$inc_cat[$i]['id']]['path'] [] = 0;
    if($cat_info[$cat_id]['parent'] == $id)
    $cat_info[$inc_cat[$i]['id']]['ind'] = count($cat_info[$inc_cat[$i]['id']]['path']) - 2;
    }
     
    $ids = '';
    if(trim($where) != 'p.products_id in () and'){
    for ($i=0; $i < sizeof($inc_cat); $i++) {
    if(isset($cat_info[$inc_cat[$i]['id']]['ind'])){
    $q = tep_db_query("select
    c.categories_id
    FROM
    " . TABLE_PRODUCTS . " p,
    " . TABLE_PRODUCTS_TO_CATEGORIES . " pc,
    " . TABLE_CATEGORIES . " c,
    " . TABLE_CATEGORIES_DESCRIPTION . " cd
    WHERE $where
    p.products_id = pc.products_id AND c.categories_id = pc.categories_id AND
    p.products_status = '1' AND
    c.categories_id = ".$cat_info[$inc_cat[$i]['id']]['path'][0]." AND
    c.categories_id = cd.categories_id AND
    cd.language_id = '" . (int)$languages_id . "' LIMIT 1");
    if(tep_db_num_rows($q) == 1)
    $ids .= ($ids != '' ? ',' : '') . $cat_info[$inc_cat[$i]['id']]['path'][$cat_info[$inc_cat[$i]['id']]['ind']];
    }
    }
     
    return ($ids != '' ? ' c.categories_id in ('.$ids.') and ' : '');
    }
     
    }
    //eof Year_Make_Model Contribution v2.3.x by Dunweb Designs
     
    Also the "Drop on top files" folder includes categories.php with the Admin/Includes/Languages directory, however in my install this is in admin/includes/languages/english
     
    ken
     
     
     
     
     
×