Jump to content

SuperPower09

Members
  • Content count

    34
  • Joined

  • Last visited

Profile Information

  • Real Name
    DeDe
  • Gender
    Male

Recent Profile Visitors

3,347 profile views
  1. SuperPower09

    Full Category Link Path

    I'm trying to create a select element with options that include links all of my categories/subcategories. My categories are up to three levels so a cPath URL would look like: https://example.com/index.php?cPath=1_12_23 Is there a way to grab the full cPath? Is there possibly something I can do with $OSCOM_CategoryTree?
  2. Boom! This completely solves it and makes it sustainable for any future upgrades. Thank you both for your time and details here.
  3. @ecartz I was able to figure it out and it was quite simple. I'll post it so that it may help others. So, there are two files - autocomplete.php and product_info_tt.php These two files are deep in the 'ext' directory. Towards the beginning of these two files, there is the following code: chdir('../../../../'); require 'includes/application_top.php'; So, I moved the two files to the main directory (in my case, "catalog/") and removed the "chdir('../../../../')" function. I had to update the URLs within the "ht-twitter-typeahead.js.php file to point to new directory path of the two files. After that, the addon worked as normal. For those who cannot get this addon to work, in my case, I updated my code by using CoreJS-Typeahead (https://github.com/corejavascript/typeahead.js), which is the successor to Twitter Typeahead but it is pretty much set up the same. If I have time, I'll post what I've done but it's really all a matter of comparing the current osCommerce addon with CoreJavascript and making those changes.
  4. No, it doesn't but I appreciate your response, I know you're very busy. And thank you, I will start here and see what I can figure out.
  5. I was able to get this addon to work with Phoenix until the version 1.0.5.0 (really, somewhere between versions 1.0.4.0 and 1.0.5.0). I believe it has something to do with the the recent autoloader.php (includes/functions/autoloader.php) addition. To quickly summarize, it appears the autoloader.php file is looking for directories that shouldn't exist. Here is one of the main directory paths for this addon: 'catalog/ext/modules/header_tags/twitter_typeahead' However, it appears the autoloader is looking for 'catalog/ext/modules/header_tags/twitter_typeahead/includes/hooks'. @burt I just want to pick your brain on the following errors. Is there something different/new we need to do with directory paths? I'm afraid I'm not sure why the autoloader is involved here. Directory 'ext/modules/header_tags/twitter_typeahead/includes/hooks/includes/hooks' doesn't exist [20-Feb-2020 10:00:57 America/Chicago] PHP Warning: scandir(C:/localhost/www/phoenix/catalog/ext/modules/header_tags/twitter_typeahead/includes/hooks,C:/localhost/www/phoenix/catalog/ext/modules/header_tags/twitter_typeahead/includes/hooks): The system cannot find the path specified. (code: 3) in C:\localhost\www\phoenix\catalog\includes\functions\autoloader.php on line 46 [20-Feb-2020 10:00:57 America/Chicago] PHP Warning: scandir(): (errno 2): No such file or directory in C:\localhost\www\phoenix\catalog\includes\functions\autoloader.php on line 46 [20-Feb-2020 10:00:57 America/Chicago] PHP Warning: Invalid argument supplied for foreach() in C:\localhost\www\phoenix\catalog\includes\functions\autoloader.php on line 46 Directory 'ext/modules/header_tags/twitter_typeahead/includes/modules' doesn't exist [20-Feb-2020 10:00:57 America/Chicago] PHP Warning: scandir(C:/localhost/www/phoenix/catalog/ext/modules/header_tags/twitter_typeahead/includes/modules,C:/localhost/www/phoenix/catalog/ext/modules/header_tags/twitter_typeahead/includes/modules): The system cannot find the path specified. (code: 3) in C:\localhost\www\phoenix\catalog\includes\functions\autoloader.php on line 14 Directory 'ext/modules/header_tags/twitter_typeahead/includes/classes' doesn't exist [20-Feb-2020 10:00:57 America/Chicago] PHP Warning: scandir(C:/localhost/www/phoenix/catalog/ext/modules/header_tags/twitter_typeahead/includes/classes,C:/localhost/www/phoenix/catalog/ext/modules/header_tags/twitter_typeahead/includes/classes): The system cannot find the path specified. (code: 3) in C:\localhost\www\phoenix\catalog\includes\functions\autoloader.php on line 14 Directory 'ext/modules/header_tags/twitter_typeahead/includes/system/versioned' doesn't exist [20-Feb-2020 10:00:57 America/Chicago] PHP Warning: scandir(C:/localhost/www/phoenix/catalog/ext/modules/header_tags/twitter_typeahead/includes/system/versioned,C:/localhost/www/phoenix/catalog/ext/modules/header_tags/twitter_typeahead/includes/system/versioned): The system cannot find the path specified. (code: 3) in C:\localhost\www\phoenix\catalog\includes\functions\autoloader.php on line 14
  6. 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...
  7. 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.
  8. 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...
  9. @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.
  10. 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?
  11. 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.
  12. 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?
  13. 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.
  14. 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.
  15. 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!
×