Jump to content
thirty bees forum

datakick

Administrators
  • Posts

    3,035
  • Joined

  • Last visited

  • Days Won

    465

Everything posted by datakick

  1. I've just released new version 0.0.2 -- I've added another level of records data that you can use for conditions and/or bind to action. For example, when you choose trigger Before record is created and select record = Product then in Conditions you can use all product fields -- you can write condition like this: Product:Name contains 'Cup' This was already available in previous version. This new version will allow you to access sub-records field values as well. For example, every product has default category, so we can now write condition using this default category values: Product:Category:Name = 'Shoes' This mechanism is implemented using lazy loading technique, so it shouldn't impact performance. Data for sub-records are loaded only when needed
  2. This looks like a bug in thirtybees core, or some override is messing around. If you send me ftp access, and back office access, I can have a look into this for you.
  3. This is just a default design. It's intended to be light and spacey, because that's what I personally like. I hate too many information on a page. But it's just my opinion. You can, of course, modify css that comes with the module and adjust it according to your needs. In this case, you will want to target .chex-row, .chex-input or .chex-input-label css classes. For example add this to your theme's css file: .chex-row { margin-top: 0px; margin-bottom: 0px; }
  4. Hard to tell. We would need to go over the filesystem and figure out what content is related to database entries or individual store instances, and what not. The investigation itself would take couple of hours, and the fix itself would require at least week of work.
  5. Thanks Andy for the access. I have found the issue - it was related to page javascript optimization / moving to bottom of the page. I've fixed this and released a new version
  6. Well, you will get into issues with store customizations. Same codebase means same modules. If owner of Store A deletes some module, other stores will be affected as well. The same applies to module upgrade, for example... Also, file assets will be problematic. For example, product images are stored using image database id inside directory /img/p/... When you have two databases, you will have file conflicts. When I think about this... you better don't do it...
  7. Why not use multistore? Anyway, if you are really committed to this approach, you will need to edit /config/settings.inc.php and define database settings conditionally, based on current request url. Just note that there might be some corner cases when the thirtybees is not bootstrapped inside web context. For example, some cron tasks can be setup to run in php-cli environment.
  8. I've just released first beta version of this module, you can download it here. There are still a lot of work to do, but I wanted to release it as soon as possible in order to collect your opinions and ideas. I hope there will be some 🙂 You can also test this module on my demo server - go to Advanced parameters > Conseqences. Please be careful and don't ruin my test account too much 🙂 Some information about the module: - this module allows you to create Rules - every Rule consists of three parts: trigger, conditions, and action - trigger is some event that can fire the action, for example new order created email is about to be sent page view order status change ... etc - conditions - optional settings that you can use to react only on some events. For example, you can use conditions to execute action only when new order is created for customer with id 123 - action - this is where you set what you want to do in reaction to trigger event. For example: send email redirect raise error change product quantity execute custom sql Some screenshots: 1) Rule builder: 2) Choose trigger 3) enter conditions: 4) define action
  9. Sometimes cherry picking single commit doesn't work -- for example, it might depend on some code that was committed before this commit, but is not part of 1.0.8 The only answer I can give you is to use core updater and update whole shop to bleeding edge.
  10. The memory limit is a red herring, not a root cause. There is some error thrown somewhere, and error reporting engine tries to serialize this error message and output it to error page (encrypted). If the context is large enough, this operation can easily lead to memory exhaustion. This problem is fixed (or mitigated) in bleeding edge. So, if you can, try to use core updater and update your shop to bleeding edge. That should fix the error reporting issue. Then the root cause will be revealed -- and of course, you will have to fix that one as well.
  11. I remember that @Traumflug fixed similar problem lately. Forward your shop to bleeding edge using Core Updater to see if this bug is fixed in upcoming version.
  12. Cache modules are one of the few that aren't (deliberately) compatible. The question is, do you need to use this module at all? Thirtybees has very good response time even with all caches disabled.
  13. This is, in general, the intended use case. The module will work like this: 1) something happens in your thirtybees that will trigger the consequence rule 2) every trigger type will collect and provide details about the event. For example, *product added to cart* event would fetch information about added product, information about cart, information about customer, current cart total, etc... and pass these information forward to conditions/action layer 3) conditions can be build using only those information passed by trigger. So, there can be condition like 'added product id equals 100' or 'added product description contains word T-shirt'. 4) if all conditions are met, then the action is trigger 5) most actions needs some parameters for execution. For example, action 'Redirect' needs redirect url. These action parameters can be provided as constant during rule definition, or can be derived from trigger output. For example, we could say the redirect url is 'https://www.google.com/{product_name}' where {product_name} will be substituted on the fly Your use case would require to define condition (step 3) like this: - there exists some customer record in database that is marked as blacklisted and has same email as currently pending email While this condition can be implemented, it will not be in the first few versions, as I will first try to tackle primitive conditions
  14. You can copy post.tpl to themes/<yourtheme>/modules/beesblog/views/templates/front/post.tpl and make your modifications there. This file will not be overwritten on module update. But you are right, I also don't see any reason why it should use <h4> by default. Let's track this in github issue: https://github.com/thirtybees/beesblog/issues/33
  15. Thanks for bug report and proposed fix. I was able to reproduce the caching problem, and the fix indeed works correctly
  16. That's true. But fortunately, creating new trigger or action is very easy (at least it has been easy so far). One needs to declare input/output parameters, and then implement the actual action execution. If there will be a demand for this module, I'll be happy to invest some time on this task. And maybe some tech savvy users will be able to implement (and share) their own actions/triggers.
  17. Thanks for the ideas. The first one is probably not possible -- it would be hard/possibly impossible to change page content. Actions that can be triggered are somewhat independent, not related to the source / trigger. The rest of your ideas could be theoretically done
  18. This gave me an idea for simple module to flush cloudflare cache (via api call) when store cache is cleared.
  19. There is really something very wrong with your site. More precisely, there is some cache somewhere that is returning non-thirtybees files. 1) Thirtybees contains notification.js file, but this file does not contains references to show_new_orders at all 2) thirtybees version of dashgoals.js javascript file contains this content on line 163: $months = $this->setMonths($year); As you can see, there is no reference to $, so the error can't be trigger. The only explanation is that something somewhere is returning old/prestashop versions of these files. Please make sure to 1) clear browser cache 2) clear server cache 3) clear any proxy server cache (nginx, cloudflare, or any other service that might be between your server and your browser)
  20. Thanks @Briljander for your input, I really appreciate Unfortunately these use cases will be out of the scope of my module (at least for now), because there aren't any immediate triggers that I could hook to. My module can only react when something happens (record is saved to database, visitors perform some action, email is about to be sent, etc...). Here there aren't such immediate actions, it's more about state in the database. I do, however, plan to implement scheduled triggers in the future, if this module takes off. There would be a cron task that would periodically check if some condition is met, and if so then trigger action. This mechanism could be used to implement your use cases.
  21. You are right, it's basically a smart bindings between existing hooks and some actions. Very similar to IFTTT concept, if you are familiar with. If not, this is how their UI looks like, I wanna make something similar
  22. Hi everyone, I'm presenting you my new free module named conseqs (as in consequences). This module is based on simple idea - it allows you to execute some action when something interesting happens in your store. It's vague on purpose -- it's because there are be many triggers (new order created, product changed, page visit, product added to cart,...) and many actions (send email, raise error, log information, update record in db, send notification to slack,...) that you can combine together. This module allows you to create automations like this: when new order is created send email to my email address when product stock quantity changed, and product reference is 'mug', and new quantity is below 30, then send email when user navigates to url that contains string '/blabla' then redirect to '/blabla2' when employee logs in to back office then log this information to access.txt file when user ends up on 404 page, then log the url address before email is send, if name contains 'www.' then raise error message when customer's total amount spent is greater than 1000EUR then update customer and change his group to 'Premium customers' And much more. >>> DOWNLOAD LINK <<< Demo: you can also test this module on my demo server Licensing: the free version is limited in number of rules you can create. If you need more automation, you can purchase license and use the module without limitations.
  23. Check that you have categories set up correctly
  24. This type of errors occurs when ajax response contains something else then valid json. It's usually caused by error reporting emitting warnings/notices into response. I bet you have debug mode enabled. If so, then disable it, and try again. Alternatively you can forward your store to bleeding edge using core updater.
×
×
  • Create New...