Jump to content


  • Content count

  • Joined

  • Last visited

Profile Information

  • Real Name
  • Gender

Recent Profile Visitors

3,145 profile views
  1. SuperPower09

    Creating Custom Sessions

    I'm trying to find the osCommerce equivalent of the following: session_start(); $_SESSION["custom_session"]; $_SESSION["custom_session"][$keys]["products_id"] - as you can see, I'm working with a session array. Would anyone have insight on how to create custom sessions while using the osCommerce API? I've checked the application_top.php and sessions.php, which gave me some ideas but I wasn't exactly certain. Thank you in advance for any details here and I should add, if necessary, I'm totally comfortable with editing any core files...I know, I'm a rebel...
  2. Thanks @JcMagpie I was finally able to look at your post and I'm not sure if that's exactly what I'm looking to do. I pretty much want to add a class to the current selected category and I thought it could be done utilizing one of the functions from the category_tree.php I'm going to play around with some things and see what I can come up with, thanks again!
  3. Alright, so I'm attempting to just add a CSS class to a selected category link. I'm trying to get more familiar with the category tree (category_tree.php) and the only thing I've found that controls the selected output is the following: $OSCOM_CategoryTree->setCategoryPath($cPath, '<strong>', '</strong>'); This, of course, just bolds the current selected category. However, I'm just looking to do something similar to this (see the "CUSTOM_CSS_CLASS"): <a class="list-group-item list-group-item-action CUSTOM_CSS_CLASS" href="http://mywebsite.com/catalog/index.php?cPath=3"><strong>Electronics</strong></a> Is there a way to achieve this with any of the available functions within category tree?
  4. SuperPower09

    ELI5: Hooks vs. Modules (Bootstrap Edition)

    @Jack_mcs @MrPhil Thank you both, I really appreciate your feedback. I can definitely see sorting the modules playing a part in my layout so I'll keep that in mind. I've also found a few threads with some good examples so I'll go through those too. Oh, and I'm only using Bootstrap 4 version to mess around for now. I plan on finalizing my project towards the end of the year so I wanted to get familiar with both BS3 and BS4. Thanks again guys!
  5. I have an old version of osCommerce (2.3.4) I'm going through the process of getting familiar with the CE version of osCommerce (the Bootstrap 4 version). Overall, I'm trying to find the best way to customize things without touching the core...too much. Let's say I wanted to do a few simple things: - Add an ad banner or two to the home/index.php page - Add a custom div to the product_info page Would a module or a hook even be appropriate for setting these up? I guess, I'm not sure as to when I should use either a hook or module. I could be wrong but creating a module for this seems like way too much work. However, looking at the hook system, this looks like it would be simpler. Am I wrong in that assumption?
  6. Thanks for the reply and I don't believe I've done anything to affect this functionality but I'm going to double check everything to make sure. On my site, it's very hit or miss but on your demo, it works perfectly. I must add, I'm not using the BS version, just the standard 2.3.4. Thanks again, I'll follow up with any further findings.
  7. Hello! I ran across an issue I can't quite figure out....I feel like I'm overlooking something. We have a few products that have model names/numbers that are just three characters long and when I attempt to search for them, they don't show up in the autocomplete list results. I've tried to change the "Min Characters Required" to the minimum (2) but this doesn't seem to help either way. Any suggestions on what I can do here? I'm going to keep looking around in the meantime...
  8. @raiwa @ArtcoInc @John W I really appreciate your replies and thoughts. I did have more than one brand so, with the help of Rainer's suggestion, I came up with the following: $search_keywords = array('My Dog' => 'MyDog', 'Her Dog' => 'HerDog', 'His Dog' => 'HisDog'); $search_term = str_ireplace(array_keys($search_keywords), $search_keywords, $search_term); Please let me know if you see any pitfalls in my code but with that said, it works. Thinking outside the box.......I imagine this will be a somewhat rare instance but maybe something could be included on the Admin side that allows users to specify search terms in which spaces can be ignored.
  9. I have a quick question that probably doesn't have a quick answer. I'll start with an example... Customers search for a brand called, MyDog. Some customers type, "MyDog" and the results show properly. Some customers type, "My Dog" (with a space) and it shows no results. Is there a way to ignore spaces in such an instance?
  10. SuperPower09

    Product listing

    @raiwa @Dan Cole Thank you both for your help! I figured it out as I created a symbolic link for the main image directory to help with creating a file system path (instead of just using a URL or a absolute path). I had to make a few teaks but I got it to work.
  11. SuperPower09

    Product listing

    Okay guys, sorry for the really late response but I finally got around to looking at this recently. Again, just so you don't have to go back a page, I'm pretty much just trying to have two oscommerce installs with KissIT Thumbnailer and they both use the same thumbnail directory. So, in this case, I guess I'm just looking at how to properly add the file system path. Is this something I would add to the KissIT tep_image function or do I have to literally set up a different thumb define in the configure.php file?
  12. SuperPower09

    Product listing

    @raiwa Bare with me as this may be a silly question but would it be possible to use this addon for sites that share images? Long story but I have two sites, sharing one database and just looking to speed them both up a bit. My only guess would be to have the separate site point to the thumbs directory somehow. ...I'm going to do more research but I'd thought I'd ask first for your thoughts.
  13. SuperPower09

    [Addon] PDF Datasheet

    Thanks Jim! I do not need it but if it's something that is going to take you awhile, don't worry about it. I've found a quick fix for the moment.
  14. SuperPower09

    [Addon] PDF Datasheet

    Awesome and thank you. I was able to remove that error but I received an error 1054 Unknown column 'popt.products_options_sort_order' in 'order clause' I imagine this is due to the fact that I do not have a "sort_order" field in my database for this section? I'll research this to see what I can find out. Thank you again!
  15. SuperPower09

    [Addon] PDF Datasheet

    So, I'm testing out this addon in a local install and I believe this is the last hurdle that I have. Any tips as to what I'll need to look at from here? 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from products_options popt join products_attributes patrib ' at line 4 select distinct popt.products_options_id, popt.products_options_name, from products_options popt join products_attributes patrib on patrib.options_id = popt.products_options_id where patrib.products_id='52' and popt.language_id = '1' order by popt.products_options_sort_order, popt.products_options_name [TEP STOP]