Jump to content

flangefrog

Members
  • Posts

    282
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by flangefrog

  1. Could one of the Blesta devs please let me know what validation checks the below TODO is referring to? public function addService($package, array $vars = null, $parent_package = null, $parent_service = null, $status = "pending") { # # TODO: Handle validation checks #
  2. How do you transfer a domain when adding it through the admin panel? The domain modules all have the functionality built in but I can't figure out how to use it.
  3. I also use Notepad++ sometimes when I'm working on a single file, but if you're working on a bigger project you should consider checking out NetBeans. It's designed especially for PHP/HTML so makes it easy to refactor, go to declaration, navigate all classes, methods, properties in the file and format code. It shows documentation for all PHP functions and even your own if you have PHPDoc style comments above them. It integrates with several PHP debuggers, will check syntax and best practices. You can connect it with git and other versioning systems and also with bugtrackers. It's got far to many features to list and is very stable, fast and easy to use. https://netbeans.org/features/php/
  4. You make some good points. I'm also a developer and what I have sometimes done is told the client they can get the extension developed for $100 and own the IP, or for 20% less I will own the IP. Then I can sell it myself if I want to make some extra money. I work primarily with OpenCart and as far as I know not one extension is ionCube encoded. But I know this won't work everywhere.
  5. Yes it is, thanks. I have been running with just a few clients for several months (clients were from a previous business) and I'm planning to launch the domain part of the business in a few days because we have .nz 2LD domains like anyname.nz coming on 30th September.
  6. You can use this vQmod. Visit https://account.orangehost.co.nz/ to see this in action. If you don't want to use a vQmod you can make the changes manually: In /app/views/client/bootstrap/structure.pdt replace if ($this->Html->ifSet($show_header, true)) { with if (true) { Or just remove the if block altogether. always_show_header.xml
  7. For your second issue, you should be able to add a domain name field in the product settings for the universal module.
  8. Could be because the folder is owned by the wrong user, but it sounds more likely there is something wrong with the path you have entered. Are you using an absolute path?
  9. Thread is a little old but wanted to note that I use PHP-FPM and have never had any issues with invoices, so it is probably an issue with your configuration.
  10. In both the logicboxes and namecheap modules the code to get the renewal term is below: $vars = array( 'years' => 1, ); foreach ($package->pricing as $pricing) { if ($pricing->id == $service->pricing_id) { $vars['years'] = $pricing->term; break; } } The problem with this (not tested) is that it doesn't check the pricing period. If a domain is set to renew every 12 months, it will be renewed for 12 years each time. Shouldn't it be changed to something like this? $vars = array( 'years' => 1, ); foreach ($package->pricing as $pricing) { if ($pricing->id == $service->pricing_id && $pricing->period == "year") { $vars['years'] = $pricing->term; break; } } At least then it will use the default of one year. Maybe it could be set to accept any period but round up or down to the nearest year. Or it might just be better if there was no default term and it didn't renew at all if the period was incorrect. Do any of these registrars handle monthly terms? I know my local registry and several local registrars do.
  11. Ok, how does this work with .com domains? When you renew a .com it will only renew it for a year from the renewal date not the expiry date. If a .com expires on 2014/01/07 but the invoice is paid on 2014/01/01 then next year the domain will expire on 2014/01/01. The expiry date in Blesta remains 2014/01/07 so the client doesn't have time to renew before it is cancelled. Before you edited the post you mentioned logicboxes doesn't renew the domains. Looking at the modules it's only namecheap EDIT: enom missing the renewal code so does logicboxes work or is it broken?
  12. How does renewing domain names work in Blesta? An invoice will be sent a week or so before it is due to expire. Is the domain renewed on payment of the invoice? For a TLD like .com next renewal date will need to be changed to 1 year since payment. It will work if it is a .nz TLD as those add a year from the expiry date not the payment date. Is the domain renewed on the renewal date? This could cause problems if it is even a few minutes too late as the domain might be cancelled. Is the domain renewed if invoice is not paid? I'm guessing it is not. When the domain has been cancelled for non payment but is later paid, will the domain be renewed? This may cause problems if the registry charges fees to reinstate a domain because Blesta will not charge them.
  13. Do you know what version the domain plugin is scheduled for?
  14. What about downloading a PHP page from the website and checking it for some text? e.g. blesta.com and <img src="http://www.blesta.com/wp-content/themes/blesta/img/logo.png" alt="Blesta" width="164" height="41">
  15. If you're running PHP-FPM you will need to do additional checks to ensure that it is running. You could integrate it with the PHP-FPM status page and even with the Apache status page for more detailed info.
  16. That was just because I copied the code from two different modules. I'm thinking of just using private function getTld($domain) { return strstr($domain, "."); } for my module though. I'm not familier with CoCCA but I just looked it up. It seems they make software for registries right? Although they are a New Zealand company they don't seem to mention that it is used for the .nz registry. I'm not a registrar so I am using Web Drive for registering NZ domains. I started building a module for Web Drive several months ago but put it aside while waiting for a reply to one of my support tickets regarding the API (still no reply). I have been using it in production but today I'm working on finishing it so I can actually use it to register/renew/transfer domains.
  17. I realise that, but what I'm asking for is that all those checkboxes are checked by default. Currently every time I create an invoice or package I have to remember to check the tax box as it is unchecked by default. It's a small issue and one that I can easily fix myself but I think it should be an option in Blesta.
  18. Why does the getTLD() function in the domain modules compare against the module's TLD list? If the TLDs are not in the right order e.g. Configure::set("Webdrive.tlds", array( ".nz", ".co.nz", )); then the domain example.co.nz would return .nz instead of .co.nz. It also doesn't limit the returned value to those in the TLD list. Why not just use the last line? private function getTld($domain) { $tlds = Configure::get("Enom.tlds"); $domain = strtolower($domain); foreach ($tlds as $tld) { if (substr($domain, -strlen($tld)) == $tld) return $tld; } return strstr($domain, "."); }
  19. When creating invoices or packages I have to remember to check the tax checkbox every time. As every product is taxable in my country it would be good to have the checkbox checked by default or even not shown.
  20. This is a JavaScript you can customise for your own use if you're adding a few similar packages like domains. Run it by pasting in the dev tools console or make it into a bookmarklet. //Set module $("#module_id").val(8).change(); //Set group $("#available option[value=2]").appendTo("#assigned"); //Get domain name var domain = prompt("Enter the domain:", ".com"); //Set package name $("#name").val(domain); //Get price var price = prompt("Enter the price:", "99.99"); price = parseFloat(price) * 10 + 10; //Set price $(".price_row").last().find("input.term").val("1"); $(".price_row").last().find("select.period").val("year"); $(".price_row").last().find("input[name='pricing[price][]']").val(price.toFixed(2)); //Add extra terms for(x = 2; x <= 10; x++) { $("a.price_row_add").click() $(".price_row").last().find("input.term").val(x); $(".price_row").last().find("select.period").val("year"); $(".price_row").last().find("input[name='pricing[price][]']").val((price * x).toFixed(2)); } //Set tax $("#taxable").prop('checked', true); //Wait for 500ms as module options loaded via ajax setTimeout(function(){ //Set domain $("input[value='" + domain + "']").prop('checked', true); //Set nameservers $("#logicboxes_ns1").val("ns1.orangehost.co.nz"); $("#logicboxes_ns2").val("ns2.orangehost.co.nz"); $("#logicboxes_ns3").val("ns3.orangehost.co.nz"); $("#logicboxes_ns4").val("ns4.orangehost.co.nz"); //Save $("a.submit").click(); }, 500);
  21. Quick hack to remove the Tax ID/VATIN field from the client's "Edit My Information" page, registration page and ajax, standard and wizard templates. Use with vQmod See: http://dev.blesta.com/browse/CORE-547 http://www.blesta.com/forums/index.php?/topic/3258-add-option-to-disable-client-tax-id/ http://www.blesta.com/forums/index.php?/topic/476-ask-for-tax-id/ http://www.blesta.com/forums/index.php?/topic/1523-disallow-clients-to-edit-some-fields-from-the-client-area/ Version 1.1.0 remove_client_tax_id.xml
  22. Ok, that makes sense although I think an admin should always be allowed to add restricted packages, that way if there is a package you don't want on the order form (like a free domain) you can add it without setting the package first.
  23. I do have a limited company, but I only ever show my GST number to my clients not to my suppliers. I.e. an invoice should have my GST number on it but never my clients number.
  24. Thanks. I don't see the point of have to set the packages before adding the service though. It seems to only allow the admin to add the service right?
×
×
  • Create New...