Jump to content

activa

Members
  • Posts

    737
  • Joined

  • Last visited

  • Days Won

    14

Reputation Activity

  1. Like
    activa reacted to Gigaion in [How To Guide] AJAX Boxes Order Form - Configurable Options Direct Link   
    Hello Blesta Community,

    Here's a quick snippet of being able to link directly to configurable options within the AJAX Boxes order forms template:

    Example Link:
    example.com/order/main/packages/EXAMPLE/?..etc-data...&group_id=[Your Group ID]&configoptions[1]=[Option Value 1]&configoptions[2]=[Option Value 2]

    Edit File: /plugins/order/views/templates/ajax/main_packages.pdt

    Add the following code after the "// Process change currency request" portion of the javascript code:
     
    // GET URL Variables as associative array function getURLVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; } //Change Config Options in URL: &configoptions[1]=VALUE&configoptions[2]=VALUE...etc $(document).ready(function() { setTimeout(function(){ configCount = 0; while (configCount < 10) { var ConfigVar = getURLVars()["configoptions[" + configCount + "]"]; if(ConfigVar) { $("#configoption_" + configCount).val(ConfigVar).change(); } configCount++; } }, 5000); //Secondary call after 10s //This helps resolve issues with coupon codes. Prices would show up correct, but drop downs would show incorrect setTimeout(function(){ configCount = 0; while (configCount < 10) { var ConfigVar = getURLVars()["configoptions[" + configCount + "]"]; if(ConfigVar) { $("#configoption_" + configCount).val(ConfigVar).change(); } configCount++; } }, 10000); }); Edit the "configCount < 10" based on how many variables your site requires.

    Please note there is a 5 second delay where it updates the configurable options.
    I'm aware there is probably a better method to do this and I'd love to see the community improve upon this idea by sharing below

    (Note: It does seem AJAX Boxes order form does have an issue where you login/create account it blanks out the config options)
  2. Like
    activa reacted to Nelsa in Enom: different pricing for registration, transfer & renewal?   
    Yes WHMCS implement different pricing for registration, transfer, and renewal...I didn't use it from version 5..now it is 7.x.x so I don't know much about newer versions but I know they have different pricing for domains where you can set a different price for registration, renewal, and transfer
  3. Like
    activa reacted to coreyman in Delete client   
    http://source-docs.blesta.com/class-Clients.html
    Looks like you need to use class Clients.
    getByUserId( integer $user_id, boolean $get_settings = false ) Fetches a client with contact details of the primary account holder Parameters $user_id integer $user_id The ID of the user Then you can delete by client id
    #delete( integer $client_id )  
  4. Like
    activa reacted to codym in Delete client   
    Crud. I didn't even see the getByUserID method. Thank you!
  5. Like
    activa reacted to domaingood in How to change bulk Client Group?   
    Why cannot select users and bulk changes group?
  6. Like
    activa reacted to Paul in [Module] Data Pools Module   
    Good job on this module, it's probably the one I refer people to @Blesta Addons for the most. Very handy. I know the thread is old, but just wanted to say that there is definitely demand for this one.
  7. Thanks
    activa reacted to Blesta Addons in [Module] Data Pools Module   
    Data Pools Module For Blesta
    Data pools module is a magic module that can help you offer so many services with a simple task . admins can add manual data in a system that act as a pool, when the client make the order, the service creation get one record  data from the already saved data list, and attribute it the client and remove it from the list .
    Features
    Selling Gift Card Selling Preconfigured Servers/Switch/Vps Selling Pin Codes Selling License keys Selling info/Links Screenshots


     

    Order Info
    More Info
    you can order the Pro subscription and add $5 (order here), or get it with other popular add-ons with the VIP subscription  order here.
    any bug/feedback report it here .
    best regards
  8. Like
    activa reacted to Paul in How to change bulk Client Group?   
    clients.client_group_id contains the client's group ID. If you wanted to update all clients in a specific group, then you could do something like:
    UPDATE clients SET clients.client_group_id='NEWID' WHERE clients.client_group_id='CURRENTID';
  9. Like
    activa reacted to mrrsm in Vultur module trying to directly access $module_row from parent   
    Lines 901 and 904 of vultur.php are not using the new method calls to getModuleRow which causes them to error out as they try to directly access a private member of their parent class.
    // Get the available templates $templates = $this->getTemplates($this->module_row, $package); // Get the available locations $locations = $this->getLocations($this->module_row, $package); They should probably look more like
    // Get the available templates $templates = $this->getTemplates($this->getModuleRow($package->module_row), $package); // Get the available locations $locations = $this->getLocations($this->getModuleRow($package->module_row), $package); At least based on the other modules I looked at
  10. Like
    activa reacted to coreyman in Email Ticket Importing suddenly stopped working?   
    Yes, because my mailserver puts incoming mail in the root of the mailbox. It requires no box name. By default outlook looks here for mail, you have to manually configure outlook to look in .INBOX. I think .INBOX is a 'cpanel' constructed way of configuring a mail server.
  11. Haha
    activa reacted to Joseph H in Server Location Choice   
    A useful feature indeed, but the post is 6 years old ?. I suggest you wait a bit
  12. Like
    activa reacted to Tyson in Get billing contact   
    You can use the client ID to fetch the billing contacts, e.g.
    <?php public function buildProcess(array $contact_info, ...) { Loader::loadModels($this, ['Contacts']); if ($this->ifSet($contact_info['client_id'])) { // Fetch all billing contacts for this client $billing_contacts = $this->Contacts->getAll($contact_info['client_id'], 'billing'); } }  
  13. Like
    activa reacted to Paul in Email Ticket Importing suddenly stopped working?   
    Importing via POP/IMAP?
    Does your PHP still have mailparse? It's likely something changed.
    Do you see login attempts from Blesta in your mail server's authentication logs?
  14. Like
    activa reacted to Tyson in Google Tag Manager / Google Analytics   
    Take a look at order embed codes. You can also look at CORE-2583, which implemented this feature for additional details that may not appear in the documentation yet.
    You should go to Packages > Order Forms > Settings (tab) in Blesta and paste in your Google Analytics to the Embed Code section. You can specify what pages of the order process it should appear on if that's relevant to you.
  15. Like
    activa reacted to Tyson in Css change in 4.4.2   
    Blesta uses the minified version of that file, i.e. "application.min.css". The other file, "application.css", is not necessary to keep in your installation. Both contain all compiled CSS as Paul mentioned.
  16. Haha
    activa reacted to koyama in Even if I try to make a package, the Cpanel module is not displayed   
    Thank you Paul.
    Thank you bym.
     
     
    I did not know that   It was necessary to prepare the package on WHM beforehand.
     
     
  17. Like
    activa reacted to Paul in Import with some error text. What does it all mean?   
    WHMCS plays very loose with their data, so sometimes there is no data when data is expected and required and it results in an error. Check your WHMCS database to make sure all clients/contacts have a client ID. The subsequent errors are likely a result of the first.
    If you need help, and are willing to securely share a dump of your WHMCS database, we can attempt the import here and debug any issues and either update the importer to work for you, or send you a fresh Blesta database with your imported data. We delete all data when we are finished.
  18. Like
    activa reacted to Beav in Delete client???   
    You could manage each individual service and UNSELECT 'Use Module' while removing the service to remove without using API (i.e remove just from Blesta side). Once there are no active services / invoices you should be able to remove the client as expected
  19. Thanks
    activa reacted to S.H. in Domain and Other order form not visible without forcing package group   
    https://docs.blesta.com/display/user/Selling+Domains With reference to the documentation, it is implied that order forms of "Domain and Other" type may optionally be used to bundle hosting packages with domains. However I am experiencing an issue if "Assigned Groups" is empty the form does not display on the order page at all. With everything else unchanged, if I move a package group from available to assigned the order form is visible. The problem is that it is forcing the bundling of domains + hosting in a scenario where I want to sell only domains with this order form.
    Blesta v4.4.2
    php v7.2
     
    Order System -> Settings -> Default Order Form: None - Show Listing Order Form Name: Domains Label: domains Visibility: Public Type: Domain and Other Template: Standard Default Client Group: General Allow Coupons: unchecked Require Manual Review and Approval of All Orders: unchecked Force Secure Connection (HTTPS): unchecked Require Human Verification Challenge for All Signups: checked (reCaptcha is working) Require Agreement to Terms of Service: checked (absolute url to pdf document is working) Domain Package Group: Domains Assigned Groups: Empty Currencies: USD checked Gateways: PayPal checked Those are my settings in the order form.
  20. Like
    activa reacted to Paul in Daily Invoice Creation Report   
    Are you subscribed to the report for both companies? Visit My Info > Notices tab for both companies to ensure the report is checked for both. These options are company dependent, and must be enabled for each.
  21. Like
    activa reacted to Clare in Can Clients Skip "configure" Step In Checkout Process?   
    Hi, 
     
    I have a question that particularly pertains to selling physical items. When a client orders an item that cannot be configured, is it possible to remove this step from the 4-step checkout process? This would be most helpful. 
     
    Thank you, 
     
    Clare
     
  22. Like
    activa reacted to Nelsa in Cron tasks stuck   
    Well Error: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away  is common issue with many shared hosting providers,mostly problem is low limits for one or more  variables in mysql configuration file my.cnf  , in most cases if you  incrase wait_timeout and/or max_allowed_packet it will resolve issue and in case when problem is timeout even incresing php settings can solve issue but again only if it is timeout issue   but it is very rare..since you can't really get much with php tweaking...ask provider to incrase these values if server is not under your control
  23. Like
    activa reacted to mobbdeep in Issue with PHP and backend   
  24. Like
    activa reacted to Kurogane in Issue with PHP and backend   
    You need to disable Rocket Loader and Auto Minify.
  25. Like
    activa reacted to Blesta Addons in Upgrade and Renew Service   
    but what hapen if the invoice paid and term changed before the cron run ? and this is what i think has been happen .
    Payment done in Jan 04, 2019 2:21:03 PM
    Maybe service term has been changed between 2:21:03 and 2:24:59, so here no open invoice
    Cron Renew in Jan 04, 2019 2:25:00 PM
    what i suggest never allow change term if there a re a renew process can be occur, Or add a new option to disable change term in certain packages.
    another thing is how the domains work, normally domain we can renew 1 year or X year, and this should have another approach than change term.  to be hones, blesta should take care urgently for domains process, we are now waiting years to see a new thing from Blesta about domains, if Blesta won't do anything or it need another years to do something just tell us, and we will happy to switch. Everyday we find that Blesta is so far from hosting industry, others are making a huge improvement in this subject and here we are just waiting for the basics !!!
     
×
×
  • Create New...