Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

hawgwired

Archived
  • Posts

    19
  • Joined

  • Last visited

Profile Information

hawgwired's Achievements

  1. You know, that's the way I started out, but for whatever reason, using cPath that way doesn't work for my stuff; not only does it not expand the node, but it doesn't do the bold thing either. I'm using the $GLOBALS['products_id'] as a last resort, and it does seem to make the bold thing work, but not the expanding thing. Pretty wierd too, considering that $that_expanded and $that_selected are both being set at the same time, but only $that_selected seems to work. Hmm...
  2. Hey, thanks for the compliment! I think you're right about my method though, it's probably not working right because of the way I build the list. The item highlight works now, but it doesn't expanding the category automatically. What can I say, I barely know what I'm doing at best. For what it's worth though, here's the stuff I added: In dm_categories.php, in the tep_make_cat_dmbranch function $output .= str_repeat(".", $level+1).'|'.$val.'|'.tep_href_link(FILENAME_DEFAULT, $cPath_new).'|'.$this_title.'|'.$menu_icon_file.'|'.$this_selected.'|'.$this_expanded."\n"; // mikeys product listing $products_in_category_query = tep_products_in_category($key); while ($products_in_category = tep_db_fetch_array($products_in_category_query)) { $product_id_h = 'products_id='.$products_in_category ['product_id']; $product_name_h = $products_in_category ['product']; if ($GLOBALS['products_id'] == $products_in_category ['product_id']) { $that_expanded = '1'; $that_selected = 'dmselected'; } else { $that_expanded = ''; $that_selected = ''; } if ($menu_use_titles) { $that_title = $product_name_h; } else { $that_title = ''; } $output .= str_repeat(".", $level+2).'|'.$product_name_h.'|'.tep_href_link(FILENAME_PRODUCT_INFO, $product_id_h).'|'.$that_title.'|'.$menu_icon_file.'|'.$that_selected.'|'.$that_expanded."\n"; } //EOF mikeys product listing if ((isset($table[$key])) AND (($maxlevel > $level + 1) OR ($maxlevel == '0'))) { $output .= tep_make_cat_dmbranch($key,$table,$level + 1,$maxlevel); } } // End while loop Most of that stuff came from a contribution I found here called Category Tree v.8 (authors name is Joe) that listed products in the regular categories.php. It came with this cool function I added to my general.php file: //// USED FOR PRODUCTS IN CATAGORY MENU // Return the query for products in a category // TABLES: products, products_to_categories, and products_description function tep_products_in_category($category_id, $include_inactive = false) { if ($include_inactive) { $products_query = tep_db_query("select p.products_model as product, pd.products_id as product_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = p2c.products_id and p2c.categories_id = '" . $category_id . "' and p.products_id = pd.products_id order by p.products_model"); } else { $products_query = tep_db_query("select p.products_model as product, pd.products_id as product_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = p2c.products_id and p.products_status = '1' and p2c.categories_id = '" . $category_id . "' and p.products_id = pd.products_id order by p.products_model"); } return $products_query; } Anyway, I'm happy that it works for my needs, but would still like to get the auto expand to work properly... Thanks again for your help Nate, much appreciated, Mike
  3. Once again I waste board space, my bad. I'm on it now, should be able to figure it out now. Thanks to all on this righteous osC site!
  4. Found it after that post; sorry. Thanks for your replies Nate. And now the last problem: I can't seem to get the tree menu items (my products stuff) to turn bold when selected, as well as the tree's don't expand automatically like they should. I'm sure it's my own coding problem, but any guidance on where to look? You can see an example of my lame menu here: www.hawg-wired.com I'd paste code here too, if I knew what I should paste here...
  5. Crap. I thought I was done needing help, but I can't for the life of me find where the menu items are set bold in any of these files. I need to override that, but can't locate where. Can someone point me to the right place?
  6. Hey, nevermind. I simply put my menu stuff inside of the dm_categories.php file, set it to be a box, and viola. Thanks again all, Mike
  7. Right on, thanks for the tip. I'm using the tree menus, and just found the png files that set the precedent. Making smaller versions of these files seems to do the trick. Another stooopid question now; How do I insert the dm_categories.php file in the middle of a string like this: $info_box_contents[] = array('text' => $home . $gins . $ghaw . $tech . $dm_string . '<br>' . $ghak . $ghac . $info); new infoBox($info_box_contents); $dm_string is where I'd like the menu to appear, and the contents of all the other $xxx are simple text and links that end with <br>. I know, I'm lame, but I'm trying... Thanks again for everyone's help, Mike
  8. Ok, I got it working sort of (unbelievable for me, seeing as I'm more an auto mechanic than a webmaster!), but I have issues. I can't seem to get the highlighting to happen on my products (categories work fine), and I can't get the trees to expand automatically (is there a global for product ID like there is for cPath?). I will, in time, but there's one thing I need guidance with: I would like to get the text of the tree compressed as much as possible to match the rest of the menu around it (single line spacing, like using <br> between them). I am not using the icons, so that's not an issue, but I don't know where to look on this one. Am I stuck this way, or can I tweak the JS stuff somewhere to change the default? Mike
  9. Hey Nate, any chance you know how to add the product links from each category to the menu, or is this something that's not feasible to accomplish quickly? I have the "all_products.php" add-on that loops on both categories and products, but I can't seem to figure out how to blend that stuff with this menu stuff. Any help or direction would be appreciated.
  10. Install was simple, easy, I got it up and working in no time. Killer contribution for sure! One problem for me though: I was expecting to see my products showing up under my categories, as I don't have any sub-categories. How hard would it be to add a loop for products in each category to be added to the menu as well, specifically the tree menu version? Looking at the code, it is well written and documented, a clear indication that it's complicated and way over my head. If I understood what I was looking at, I'd get this thing to do it with a few cuts and pastes, but I'm lame and lack knowledge. Anyone interested in helping with this one? Thanks, and again, awesome piece of work!
  11. You are not alone, as the exact same thing just happened to me today. I've been running the Authorize.net module for about 7 months now without any problems until today. The customer claims everything looked normal on his end, we both received the Authorize.net transaction email, but the order never showed up in the SQL database, and the goods he bought are still in his cart. I'll post back here if I find out what happened. Anyone? Mike
  12. Here's my po.php (I hack tables/cells alot to match my store, so it might look more different than it really is from the MOD orignal) If this doesn't help, I'd look closely at "catalog/checkout_process.php" and "catalog/includes/classes/order.php" too. I think that's where the automated math happens. Then again, the proverbial blind leading the blind might be applicable here as well... Mike
  13. Hey Tom, mine seems to deduct the order total from the customers credit limit automatically when they place the order. Using the "Increase Credit" and "Payment Credit" fields in the customer edit window are kind of funky, but they seem to work ok too. If you want a copy of my po.php (or other file) to compare with, just say the word. And, I think that your assessments of "most problems" hits both of my nails on the head! lol
  14. Wish I could help on this one Tom, but mine seems to do the math correctly and I can't find a reason it wouldn't. I am, however, a novice. Good find helping out Irin earlier BTW! Mike
×
×
  • Create New...