Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by rudolfl

  1. Hi all, I have a question about this function. What should result of following code be? $test = (int)0; tep_not_null($tst); I get 'false', but I would think value of '0' is a valid one and result should be 'true'; Looking at the code (includes/functions/general.php), on line 1140, code is: if (($value != '') && (strtolower($value) != 'null') && (strlen(trim($value)) > 0)) I think first condition is incorrect. Instead of ($value != ''), it should be ($value !== ''). Then value of 0 is being processed correctly. Any thoughts? Thanks, Rudolf
  2. rudolfl

    Anyone made a module for Afterpay or Zippay (Australia)

    Hi, They can contact myself on 0414 635 468. Shop Hats From OZ. I am the original author of AfterPay plugin for osCommerse and I use it on 2 of my webstores. I believe some other people also use it successfully. Rudolf
  3. Hi all, I have a weird issue here. Sometimes (rarely), order checkout process freezes. Order gets recorded and payment is received, but no e-mails are sent. I just saw this one in action -- customer gets blank page and gets stuck on checkout_process. Same customer got back to checkout page and repeated process. Same result. I saw this happening using different payment methods. I record PHP errors in file. Nothing recorded in this case. I suspect an endless loop somewhere. I can not reproduce the problem myself. Unfortunately, I do not know what OS/Browser customer used. Any ideas? Thanks, Rudolf
  4. rudolfl

    Google Tag Manager

    If anyone is interested, I just uploaded instructions on how to set up Google Tag Manager (GTM) on osCommerse website. http://addons.oscommerce.com/info/9356 Rudolf
  5. rudolfl

    Change site return address?

    Hi all, This question is a bit out of scope of normal use of PayPal app. I need a way to tell PayPal where to return after payment is completed or if user cancels payment. Does anyone know where in the code this address is specified? I will be able to go from there. Thanks, Rudolf
  6. rudolfl

    Change site return address?

    Thank you for replies. I am using PayPal Express. PayPal app uses GET method to call paypal.com/webscr. So forms and HTML variables will not quite work in this case. Rudolf
  7. I will add few things as well (in no particular order) - Better Product filtering (I added facet search to add-ons, but more functionality is needed). I am actually thinking that products should not be placed into categories. Instead, each "category" must be a filter that just pulls out products that are needed to be displayed. - All SEO features are built-in. - Ability to have one back-end (admin) and multiple front-ends. Examples for such a use can be -- "retail and wholesale", "Separate stores for mens or ladies products with single ordering/stock control system", etc... - Gift cards that work better than current over-complicated plugin - Migration tool. This is a very important feature if we want to get customers aboard. Ability to migrate from osCommerce and other platforms. - Core/pluging upgrade without code changes. WordPress is a good example of this. Any localised changes (if required) are put into separate user files. Unchanged core files can then be easily upgraded to a new versions - Simplified checkout - Better reporting (perhaps integrate with Google Analytics) - Core should be completely separated from output. This will allow for proper templating and ease of adding new themes - Addition of automation for orders and shipping (I wrote a Frankenstein of a system, but this allows me to automatically print orders and postal labels as new orders arrive and allow me to "complete" the orders by scanning barcodes). Those sort of things should be integrated as much as possible - Security! - Ability to use different databases, depending on server configuration - Ability to duplicate products. - Speed! - Marketing tools integrated (recover of cart, discount offers, etc....) - Ideally, one will want a graphical UI to a page design, similar to WordPress. Rudolf
  8. 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
  9. Thank you for suggestion. I will have to think how the best to implement it. It is not straightforward, but should be do-able. Rudolf
  10. Hi, I would strongly suggest adding GTM (Google Tag Manager) instead. Then you will be able to add your analytics, FB pixel, AdWords conversion and pretty much anything else WITHOUT modifying your code, by doing it from GTM console instead. https://www.facebook.com/business/help/1021909254506499 Rudolf
  11. Hi all, Intermittently, I get same order processed twice seconds apart. So far I saw it happening using Afterpay payment (that I wrote :-)) and eWay payment methods. Not sure if this is relevant, though. Does anyone else experience same issue? As problem is intermittent, it is very difficult to catch. I tried to do multiple clicks on "confirm" button without success. May be I am not fast enough. Anyway, if anyone knows a solution, please share it. Thank you, Rudolf
  12. @modelshopleeds Thank you Andy, I just re-uploaded the full package including missing file. Also couple of minor fixes included Rudolf
  13. 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
  14. 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
  15. @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
  16. 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
  17. @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
  18. 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
  19. @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
  20. 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
  21. @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
  22. 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
  23. rudolfl

    Accepting Bitcoins?

    Hi all, Does anyone accept Bitcoins? I would like to start accepting Bitcoins, but keep them in my own wallet instead of signing up with merchant solutions that will pay me in "normal" currency. I looked through add-ons and found couple of solutions, but: 1. They all seem to be old (2+ years old) 2. Current setup of osCommerce does not support Bitcoin (BITC) as a currency. Yes, I can add it manually, but update engines in use do not support it yet. Any pointers? Thanks, Rudolf
  24. Hi all, Is there an add-on that provides product feed for Amazon? I have lots of products available and Amazon is now starting in Australia. Instead of manually adding products, I would like to use Amazon AWS to integrate my store inventory with Amazon. Any pointers? Thanks, Rudolf
  25. Our busy period started and will continue till end of Nov. I will have very limited time available, but will try to get your add-on working. Rudolf