Jump to content


  • Content count

  • Joined

  • Last visited

Profile Information

  • Real Name
    Larry M Elchuck
  1. Dr.Tech

    Customer Add Product

    I searched the form but could not find a solution for this problem. I've installed CAP and it works well, but when the Categories are displayed in the first tab, the sort order is wrong. The categories are sorted alphabetically by a mix of categories and subcategories ... which makes it difficult for customers to find the proper slot to place a product. I would like them sorted the way they appear in the Categories sidebar Category A Category A--> Subcategory A1 Category A--> Subcategory A2 Category A--> Subcategory A3 Category B Category B--> Subcategory B1 Category B -> Subcategory B2 etc. Is there a way to sort them alphabetically by Category then subcategory? I assume changes would need to be made to the following code (in account_add.php)but do not know php well enough to solve this alone. thanks in advance larry ========== while ($categories = tep_db_fetch_array($categories_query)) { //echo $categories['parent_id']; $parent_id = $categories['parent_id']; if ($parent_id==0) { $categories_array[] = array('id' => $categories['categories_id'], 'text' => $categories['categories_name']); } else { $txt=NULL; while ($parent_id!=0) { //echo $parent_id; $category_query = tep_db_query("select a.categories_id,parent_id, b.categories_name from " . TABLE_CATEGORIES . " as a," . TABLE_CATEGORIES_DESCRIPTION . " as b where a.categories_id = b.categories_id and a.categories_id = " . $parent_id . " and b.language_id = " . (int)$language_id . " order by categories_name"); $category = tep_db_fetch_array($category_query); $txt .=$category['categories_name']."->" ; $parent_id = $category['parent_id']; //die($txt.$parent_id.$category['categories_id']); } $categories_array[] = array('id' => $categories['categories_id'], 'text' => $txt.$categories['categories_name']); } }
  2. This contribution was originally designed to send a message to the manufacturers at the checkout_process level, then evolved to be done at the order confirmation level. Dos anyone have the code to make it send a message to the manufacturers at the checkout_process, usng the most recent version (0.6) thanks larry