Jump to content

Jono

Blesta Developers
  • Posts

    376
  • Joined

  • Last visited

  • Days Won

    37

Reputation Activity

  1. Like
    Jono got a reaction from qba82 in Affiliate Order Recurring   
    Thanks for the report!  Strange thing to get missed in beta.  I've created a task for it https://dev.blesta.com/browse/CORE-3800.
  2. Thanks
    Jono got a reaction from Michael in Hotfix for 4.9.0+ for autodebit   
    A bug was introduced in 4.9.0 that causes the autodebit cron job to ignore the autodebit setting on an individual client in favor of the client group or company setting.  This only occurs when the client setting is false and one of the others is true.  This issue can be resolved by modifying app/models/invoices.php Invoices::getClientSettingSubquery() and replacing:
    $this->Record->select() ->from([ '((' . $sql1 . ') UNION (' . $sql2 . ') UNION (' . $sql3 . ') UNION (' . $sql4 . '))' => 'temp' ]); With
    $this->Record->select() ->from([ '((' . $sql1 . ') UNION (' . $sql2 . ') UNION (' . $sql3 . ') UNION (' . $sql4 . '))' => 'temp' ]) ->group('temp.client_id');  
  3. Like
    Jono reacted to zulfikar wijaya in Edit navigation bar   
    Hi, I'm not coder or programmer (and cant speak english well too), but maybe you can try this :
    1. Copy your template to another template name or backup your template, just in case something gone wrong
    2. If needed, change client template views to new template (from admin dahsboard: Settings - Look and Feel - Template - Client Template)
    3. In new template, open file structure.pdt (in yourblestadomain/yourblestafolderifexist/app/views/client/yourtemplatename/structure.pdt)
    4. Find line <ul class="nav navbar-nav navbar-right"> around line 190; this is user menu block code which show Login/Logout/UserMenu in right side client navigation
    5. Above that code, add your links with html code unordered list (use same css class with main menu) for example :
    <ul class="nav navbar-nav"> <li><a href="https://yourdomain.com/blog/">Blog</a></li> <li><a href="https://yourdomain.com/kontak/">Message Us</a></li> <li><a href="https://anythingurl.com/">anything</a></li> </ul> or
    add html code unordered list without class in to main navigation block (before </ul>)
    <?php } ?> // Above is main navigation menu block <li><a href="https://yourdomain.com/blog/">Blog</a></li> <li><a href="https://yourdomain.com/kontak/">Message Us</a></li> <li><a href="https://anythingurl.com/">anything</a></li> </ul> // Below is user profile menu block <ul class="nav navbar-nav navbar-right"> <?php if ($this->Html->ifSet($logged_in)) { ?> <li class="dropdown"> 6. Save and check your blesta client page
     

  4. Like
    Jono reacted to Tadso in My first Plugin throws an error   
    Problem found: typo in folder name "controllers".
    Also, for a new page in the client the combination of:
    $this->structure->setDefaultView(APPDIR);
    and
    $this->view->view = 'default';
    renders the new page inside the client portal.
     
    Consider this topic as solved.
     
     
     
  5. Like
    Jono got a reaction from Michael in Limit A Customer To Ordering A Product Only Once   
    Since 4.9 https://dev.blesta.com/browse/CORE-2872
  6. Like
    Jono got a reaction from vedova in How to change view order of Packages and Package Groups ?   
    On the order form edit page you can drag & drop package groups to rearrange the order they appear in the order form.  On the package group list page you can click on a package group row to expand it and from there rearrange the packages within that group.
  7. Like
    Jono got a reaction from Blesta Addons in add dates & amount to transactions filters   
    https://dev.blesta.com/browse/CORE-3631
  8. Like
    Jono got a reaction from codym in Upgrading/Downgrading a service via API   
    Do you really mean to use a ServiceChange?  Would Services::edit do what you want instead?  Service changes are processed automatically via cron after their invoice is paid. An edit would happen immediately.  use_module tells Blesta whether to invoke the module when making the edit, so yes it will work with or without it.
    That being said, I'm not sure of your question at this point.  Are you asking what parameters should be submitted to getPresenter?
  9. Like
    Jono reacted to Paul in New order notifications   
    Also, just to add to this.. each staff member can subscribe to order emails if they have access to the Orders widget by clicking the cog/gear icon and subscribing.
  10. Thanks
    Jono got a reaction from Paul in Order flow   
    I mentioned this in discord, but it is worth having it here as well.  Order form settings control whether to require manual approval on orders.  If manual approval is not required by the order form and  "Automatically Provision Paid Pending Services" is check at /admin/settings/company/billing/invoices/ then it should provision automatically.
  11. Thanks
    Jono reacted to breeze in 4.9 - Problem with universal module, URL notifcation   
    Hi all,

    I found the issue. Apparently our server provider implemented some new anti-fraud thing, and it was blocking outbound requests. So because I had a URL in the post notification of the universal module, the request wasn't making it out to the endpoint and the whole process was failing.

    Thanks for the input.

     
  12. Like
    Jono reacted to Deactivat3d in Email Server or External Service?   
    Hi Stu,
    Google and others can be convenient but if you really care about your data you might want to self-host this.
    If you're not keen on that, you can meet in the middle and go with a mail provider that is smaller and more focused on the security and integrity of your data.
    Cheers
  13. Like
    Jono got a reaction from Blesta Addons in filter options for client widget   
    Maybe something like this?

    Or with input-sm

  14. Like
    Jono reacted to HardSoftCode in HSC: Free Contact Form For Blesta   
    What is blesta contact form?
    Contact form plugin for Blesta is the best solution to receive messages from customers right to your email address(-es). It's a clean and simple, secure, plug-&-play contact form. The contact form has fields for Name, Email, Subject and Message. For added piece of mind this plugin also allows you to add a google reCAPTCHA. The contact form plugin has user friendly interface, so it should be relatively easy to use for most users. The contact form plugin can be installed with multi companies each company can use different email address(-es) and google reCAPTCHA.
    Why do you need it?
    If you're running a company that sell online products you really need to use our contact form plugin for pre-sales questions. Most customers have a lot of questions before buying a product as many of you know that blesta come only with support ticket system and this confuse the customer as they only want to ask one or two questions and need direct reply to their email address that’s why you need to use our contact form plugin for blesta
    How it works?
    After installing the contact form plugin, the admin can manage the plugin on how it going to work for each company. The admin can enter multi email addresses and an option to enter google reCAPTCHA site key and secret key if you need to use google reCAPTCHA. The contact form plugin creates an item in the client area menu so that customer can easily find the contact form. Every time a customer uses the contact form an email will be send to the email addresses the admin enter in the contact form settings.
    Features
    Multi email addresses Multi companies Google reCAPTCHA v2 Name, Email, Subject and Message fields Add contact form to client area menu Multi language User friendly interface For more details and screenshot visit the product page
    https://www.hardsoftcode.com/products.php?p=product&a=blesta-contact-form
    Other free blesta plugins
    Blesta Privacy Policy
    https://www.hardsoftcode.com/products.php?p=product&a=blesta-privacy-policy
    Blesta Terms of Service
    https://www.hardsoftcode.com/products.php?p=product&a=blesta-terms-of-service
     
  15. Thanks
    Jono reacted to Blesta Addons in Limit emails sent in mass mailer plugin   
    some of our clients asked us to change the mass mailer plugin to limit the emails sent on the cron, as the actual one some times block the smtp or the hosting account if the list is a big one. so we have decided to look in the code and i have found a simple way to do the jobs, and since is simple we have decided to share it with the community .
    open the file plugins/mass_mailer/Cron/Email.php and change this lines (begin from line 55)
    while (($task = $this->MassMailerTasks->getByJob($job->id))) { // Send the email $this->MassMailerEmails->send($task, $email); // Delete the task $this->MassMailerTasks->delete($task->id); } $this->completeJob($job->id); by this one
    $counter = 0; $limit = 15; while (($task = $this->MassMailerTasks->getByJob($job->id))) { if ($counter > $limit) { break; } // Send the email $this->MassMailerEmails->send($task, $email); // Delete the task $this->MassMailerTasks->delete($task->id); $counter += 1; } if (!$task) { $this->completeJob($job->id); } you can set you limit by editing the var $limit, in our example every cron (5min) it well send only 15 emails.
    i hope if Blesta staff can look into this simple task and add a limit to the mailer plugin  via the plugin setting.
  16. Like
    Jono reacted to Blesta Addons in Making development easier for gateways, modules, and plugins   
    for me the 4 point, this is not only for plugins but also for core specially the Pre/Post actions. 
    for other part, the docs in first time was not a really strong enough to help me make addons, but i have learned for blesta source code and the practice that make from us a long time .
     
  17. Like
    Jono got a reaction from Stu in Email Server or External Service?   
    Hey Stu,  you may get more interaction on this if you post in our discord server https://discord.gg/UNs26C.  If you feel like being an especially nice person you could even post back on here some of the answers you get
  18. Like
    Jono got a reaction from Stu in Affiliate module for Blesta   
    I'm happy to be able to say, this is actually the main focus of v4.11.0  https://dev.blesta.com/browse/CORE-3356
     
  19. Thanks
    Jono got a reaction from dipendra in Namesilo and Blesta 4.9 integration   
    Yup, so two things.  First, those requests happen when you save the module row details, just to make sure the credentials are valid.  Second, it unfortunately seems the regular availability checks are not being logged.  To add logging to that method you can add the following line at line 2280 of app/components/module/namesilo.php:
    $this->processResponse($api, $result);  
  20. Thanks
    Jono reacted to nahanil in [Plugin] Support PIN   
    Support PIN Plugin
    Assign clients a support PIN to use when making contact.
    Features
    Configurable length PIN Client & admin widget Optional PIN expiration/rotation Validation API endpoint It's open sauce
    https://github.com/webmastery/blesta-support-pin/

    https://marketplace.blesta.com/#/extensions/98-Support PIN
     

  21. Like
    Jono reacted to nahanil in Create Invoice cron task fails   
    Nvm it's CORE-3614
  22. Like
    Jono reacted to PixelPaul in SSLTrust Module to resell SSL Certificates   
    Hello all,
    I have finally finished the module you can use to resell SSL Certificate through SSLTrust:
    https://gitlab.com/ssltrust/besta/-/wikis/Installation
    https://www.ssltrust.com.au/
  23. Like
    Jono got a reaction from PreMadeKB in Why don't the Article category have other language options?   
    Yes.  It's not ideal, which is why I created the task. But it does at last allow you to show categories in each language, and after they select the language category things will look pretty much the same as if it did support multi language.
  24. Like
    Jono reacted to Jason in Stop invoices from sending on the weekend.   
    Wanted to follow up with the solution I used.
    Thanks so much for pointing me in the right direction @Jono!  I moved a variation of my the code to the CreateInvoices.php page (core/Automation/Tasks/Task/CreateInvoices.php) and that has worked perfectly (so far).
    In case anyone else was curious what I did ... I added an if statement after "private function process() {" that blocked the creation of the invoices on weekends. The invoice for the service is still created, but pushed until a later day. It didn't alter the service renewal dates, it simply altered when the invoice was created/sent.
    No guarantee it will work for anyone else, or that it won't have unintended consequences, but it seems to work perfectly for what I needed.
    Thanks again @Jono and @Paul for the help!
    private function process() { // Don't process renewal invoices if it is Saturday, Sunday or Christmas if ((date('N') >= 6) || (strtotime(date('Y-12-25')) == strtotime(date('Y-m-d'))) ) { $output = ""; } else { // Create invoices for renewing services $this->createRenewingServiceInvoices(); // Create recurring invoices $this->createRecurringInvoices(); } }  
  25. Thanks
    Jono got a reaction from evnix in Default payment gateway - Razorpay   
    Currently, bypassing this page is not an option, but renaming it is relatively simple.  You can edit the language file under components/gateways/nonmerchant/razorpay/language/en_us/razorpay.php and modify line 2
    $lang['Razorpay.name'] = 'Razorpay';  
×
×
  • Create New...