Jump to content
Latest News: (loading..)

rudolfl

Members
  • Content count

    256
  • Joined

  • Last visited

  • Days Won

    4

rudolfl last won the day on July 4 2017

rudolfl had the most liked content!

Profile Information

  • Real Name
    Rudolf Ladyzhenskii
  • Gender
    Male
  • Location
    Melbourne, Australia

Recent Profile Visitors

12,852 profile views
  1. v0.2 is now released in osCommerce add-on section. I added support for mobile version, as well as various improvements and bug fixes. This thread is now a support thread for the add-on. https://apps.oscommerce.com/Apps&qink1&faceted-multi-filtered-product-search Please let me know any issues you may find. Project is quite complex, so I am sure it is not bug-free. I currently run this module live on my site: www.hatsfromoz.com.au Rudolf
  2. @raiwa I just went through pretty much same scenario. I though about doing what you do, but this is not right. I would suggest not to add "store" to the template list (set var $template_integration = false; in constructor if your module in admin section). Now, it will NOT be a part of your TEMPLATE_BLOCK_GROUPS and will NOT be loaded, so you have to do it manually. (do go into database and edit TEMPLATE_BLOCK_GROUPS to remove "store" from there) Take a look at how includes/modules/boxes/bm_products_social_bookmarks.php is implemented (execute() function) -- you can pretty much copy the code. This way you will add all your "store" modules when you need them without playing with existing database entries. Rudolf
  3. I changed my modules not to be part of template and wrote a small function that loads my modules. Made it part of my box. Turned out simpler than I initially thought, so all is good. Rudolf
  4. @BrockleyJohn I though of it, but having everything in same module makes things messy. System I implemented is a multi-search facility where each search "dimension" is in its own separate configurable module. This makes it really easy to install/remove/configure modules. But they are being displayed in one container "Refine Search" Box, which builds its dynamic content at run time. I guess, one option is to remove my search modules from template and have my own processing outside of osc_template. This way core code will stay unchanged. I really like how it all fitted nicely with existing design, except for order of processing. Oh, well. Back to programming. Rudolf
  5. Hi all, I am writing a system where, unfortunately, one module depends on another one being already present. My issue concerns order in which modules are being processed in buildBlocks() function of osc_template class. From what I see, class just reads configuration table, gets TEMPLATE_BLOCK_GROUPS value and expands it. TEMPLATE_BLOCK_GROUPS contains list of module groups built in alphabetical order. Currently, it contains something like "boxes;header_tags;mygroup". This means boxes modules will be processed first. I want mygroup ones to be processed. At the moment my box module has something like $output .= $oscTemplate->getContent('mygroup') as my box shows dynamic content from "mygroup". So, code breaks at this point. I see few options and I don't like any of them: 1. Change order of modules in configuration table 2. Rename "mygroup" into something that will get it in front. 3. Complicate the code by making "mygroup" a standalone group and add additional processing just for this group. Messy. 4. I can not find a way to rewrite my code to avoid dependency. I tried few different ways. Can someone think of a nicer way of getting around my problem? Thanks, Rudolf
  6. Hi all, I want to have "tags" assigned to products. Tags are NOT attributes and will not be normally shown to customer, but will help me to group products and create custom filters. I am pretty sure I saw an add-on that allows adding tags to products, but can not find it. Can someone help? Thanks, Rudolf
  7. @burt. The way current system works -- all product listings are displayed as list view. Then, Grd/List view header tag module runs some JS, changing layout to grid view. The problem is -- this behavior is not compatible with ajax displaying of the product list. Grid/List JS runs only once, when page loads for the first time. So, I modified JS in the module by encapsulating all of the relevant JS code into a function and call this function when required. This way, original functionality is preserved and this function can be called externally by other modules if they have to reload product list without reloading the page. Hope it makes sense. Rudolf
  8. OK, here is a very first "raw" version with likely million of bugs, but this is a start. I think I fixed sorting and pagination issues along with slider problems reported earlier. I do not want to make an upload to add-on section until it is stable. Documentation is included. Installation should be very simple with core code changes kept to an absolute minimum. I really need help with testing and I will be adding more functionality in the meantime. If you implement any fixes yourself, please send me details, so I can integrate them. Before you ask why I am not using github... Well, I hate it. Just can not get used to use it. May be a bit later. Rudolf Facets Add-On.zip
  9. @burt I know what you are saying. I needed filtering specifically targeted to my shop. Was planned to be completely custom solution. I tried to use few existing plugins before starting to make my own. Eventually realised none were working in the way I wanted. By that time it was too late to start new. But, I did try to keep changes to existing code base to an absolute minimum. All functionality is in my own separate files. So, will be easy to apply to a "virgin" or modifed store. Slider... This will vary shop to shop. In some fields customers may use it. In my area, I do need slider as ladies are "visual". And I do need both ranges. As I do have a lot of products, this allows customers to narrow the search. Also, each "filter" is independent from others. They are easily customisable (by code changes at the moment) and new ones can be added relatively easily too. So, price range by checkboxes or dropboxes can be easily added. And thank you for the pointing me to HTML5 attributes. I will look at it too. Rudolf
  10. Thanks @BrockleyJohn It is being called "faceted search" for a reason: https://en.wikipedia.org/wiki/Faceted_search My site is set to show highest price firs, this is why slider may appear as not working when changing low boundary. And there are MANY products in this category. Security -- each input is "vetted" before being sent to database. I the end, it will fall into individual facet designs. I am trying to make it as secure as possible as I go, but this is one of the reasons I need outside testing. Rudolf
  11. Hi all, I am implementing a plugin that allow "faceted search" -- a system where multiple filters can be applied to a product listing page to refund selection. Here is my test site: http://test.rumatech.com/hats/spring-racing-fascinators-c-116.html I currently implemented filters for brands and price range. (at the moment clicking on page selection or apply sorting breaks the page, but that is being worked on at the moment). As it turned out to be more complex than I originally anticipated, I need some help with testing and styling (I suck at CSS). System is modular, applicable to EDGE version only (at the moment). Each facet (each filter) is an individual module that can be enabled/disabled/configured via admin interface. Product list update is happening via AJAX. If anyone is interested in helping, please PM me. v0.1 will be released as an add-on once I fix the problem with page selection and sorting. Oh, and any suggestions on additional facets or functionality are also welcome. Thanks, Rudolf
  12. I am unsetting it myself in a way suggested, but was curious where it gets remembered I am not setting it myself anywhere. Looks like it is not being saved by osCommerce core, but one of the add-ons somewhere. And it is saved in session variable. Just hate leaving behind things I do not fully understand. Rudolf
  13. @wHiTeHat I think you misunderstood the question. It looks like $listing_sql gets saved between page loads on its own and i can not find what does it. My problem is that I do NOT want it to be saved! Rudolf
  14. Hi all, I am working on some enhancements and it appears that variable of $listing_sql used in /includes/modules/product_listing.php is saved between calls to the module. In my case index.php calls this module once, then it is called from a different pafe that doe snot have $listing_sql defined. Yet, as long as application_top.php" is included, variable is set. Any idea where is the code this variable is saved between page loads? Thanks, Rudolf
  15. 500 Internal Server Error updating PHP 5.3 to 5.4

    You really need to see server log (apache error_log). It will have all the info you need.\ One of the problems may be security. Make sure your PHP files have permission set to 644 (e.q. not writable by anyone but owner). Rudolf
×