Jump to content

Blesta Addons

Alpha Developers
  • Content count

    4,288
  • Joined

  • Last visited

  • Days Won

    309

Blesta Addons last won the day on July 16

Blesta Addons had the most liked content!

4 Followers

About Blesta Addons

  • Rank
    Advanced Coder

Profile Information

  • Gender
    Male
  • Location
    : \Blesta\Core

Recent Profile Visitors

5,235 profile views
  1. Blesta Addons

    Prorate Calculation with renew date

    Hello tyson, i'm tottaly certain that the module or the code in the renew has nothing with this issue, as the domain is sending the request as it should . if you make a look to the domain you can understand it cleary . first we initialize the renew yaers with 1 year. $vars = ['years' => 1]; we do a loop to get the service term the same function in all your domains registrar module (logicboxes ect ..) foreach ($package->pricing as $pricing) { if ($pricing->id == $service->pricing_id) { $vars['years'] = $pricing->term; break; } } We check if the renew date will add a new year, this will prevent renewing domain if it was already renewed manually // Only process renewal if adding years today will add time to the expiry date if (strtotime("+" . $vars['years'] . " years") > $data['infData']['exDate']) { $vars['years'] = $vars['years']."y"; // Renew Domain 1 year $frame = new AfriCC\EPP\Frame\Command\Renew\Domain; $frame->setDomain($fields->{'domain'}); $frame->setCurrentExpirationDate(date('Y-m-d', strtotime($data['infData']['exDate']))); $frame->setPeriod($vars['years']); $response = $epp_client->request($frame); $this->last_request = array('url' => "Renew\Domain - renewService ". $fields->{'domain'} ,'args' => $frame); unset($frame); $this->processResponse($response); } so the module is not making any calculation he get the years from service pricing id, if not he use the default '1' . from where coming this 3 years? just to note the service term is set now for 2 years after the payment.
  2. Blesta Addons

    Prorate Calculation with renew date

    duplicating the issue in the same server we can't now, i need to prepare other server test for this . the first issue has not thing related with the module, i have checked and it very clear and the module we are working with it more than 3 years without any issue in renew until this case . the renew code is : $data = $response->data(); $vars = ['years' => 1]; if (empty($data['infData']['exDate'])) { unset($epp_client); $message = "RenewDomain: unable to parse response"; $this->Input->setErrors(array('errors' => (array)$message)); return; } foreach ($package->pricing as $pricing) { if ($pricing->id == $service->pricing_id) { $vars['years'] = $pricing->term; break; } } // Only process renewal if adding years today will add time to the expiry date if (strtotime("+" . $vars['years'] . " years") > $data['infData']['exDate']) { $vars['years'] = $vars['years']."y"; // Renew Domain 1 year $frame = new AfriCC\EPP\Frame\Command\Renew\Domain; $frame->setDomain($fields->{'domain'}); $frame->setCurrentExpirationDate(date('Y-m-d', strtotime($data['infData']['exDate']))); $frame->setPeriod($vars['years']); $response = $epp_client->request($frame); $this->last_request = array('url' => "Renew\Domain - renewService ". $fields->{'domain'} ,'args' => $frame); unset($frame); $this->processResponse($response); } from the code i can't see any thing related to the 3 years bug .
  3. Blesta Addons

    Prorate Calculation with renew date

    we have a issue that we have not understand what happen and how it was calculated. the case as the fallowing : Package for domain that has the fallowing terms : 1 year term (200dh Without Tax) 2 years term (380dh Without Tax) 3 years term (540dh Without Tax) Tax 20% . Proforma enabled . Logs Rotation to 10 Days . a domain (service) that was expiration date Jul 03, 2018 for 1 year term (200dh Without Tax) , it was already a invoice generated by blesta for renewing it was generated in 4-7-2018 [Domain .MA - (Jul 03, 2018 - Jul 03, 2019)] amount (200DH without TAX) Until here all thing are good an d normal . Now a client from his client area want to renew the domain for two years, and he changed the domain terms from 1 to 2 years from client area, a new invoice was generated that has a amount of 9.85DH Without TAX !! the invoice line was as the fallowing : Prorated Domain .MA (Jul 04, 2018 - Jul 03, 2019) the client has payed the first invoice in Jul 04, 2018 12:44:14 PM and the domain was renewed for 3 years (from the registrar logs it was renewed for 3 years in one renew command (not 2 and then 1) at Jul 04, 2018 12:45 . then he paid the second invoice in Jul 04, 2018 12:51:19 PM . the renew date in Blesta for this domain is Jul 03, 2019 , the expiration date in the registry is Jul 03, 2021 . now the client has extended his domain from 3 years with amount of 209.85dh Without TAX !!!! Any one can explain to me what happen ?!
  4. Blesta Addons

    [Module] Logicboxes Reloaded

    Hello Sir this Blesta Issue. The module hasn't yet the Sync Expiration Domains with blesta . normally when you renew domaine manually you need to update renew domain in blesta manually . we are still waiting the new function of the domains in blesta to make a roadmap for updating the module, as now we can't do anything related this issue until blesta release the new domains updates.
  5. Blesta Addons

    How to add custom server/vps details if I have no vzmanager??

    No way for universal Module .
  6. Blesta Addons

    Multi-Company: Are user registrations shared or completey separate?

    the limit is based on the username not email address. so if the username is the email then is limited .
  7. Blesta Addons

    Force email as username

    Yes you can just edit the files, and in every upgrade you need to re-edit the files, some other users hasn't the knowledge to do ti . a simple settings in admin settings can do the trick !!! and it will take just a minutes to complete the work .
  8. Blesta Addons

    How to add custom server/vps details if I have no vzmanager??

    wich module you are using ?
  9. Blesta Addons

    How to add custom server/vps details if I have no vzmanager??

    What you mean by labels?
  10. Blesta Addons

    Force email as username

    This feature was requested a so many times in so many old thread, not sure why is not accepted to the moments !
  11. Blesta Addons

    How to add custom server/vps details if I have no vzmanager??

    the universal module is self explantory, just install it from settings, modules, add a new row and fill the info, you can chek the blesta docs, maybe others has a experience in explain more than me and can make a step by step . Our module can be ordered from our website https://blesta-addons.com/plugin/membership_club/main/
  12. Blesta Addons

    How to add custom server/vps details if I have no vzmanager??

    This is possible if you are using universal module you can do this, add new service fields, then when you ad package include this service fields in your welcome email . you can also use our Data Pools Module that is created specially for that case .
  13. Blesta Addons

    [Module] Virtualizor Extended

    realease 1.1.0 Now Reinstall has it own tab.
  14. Blesta Addons

    [Module] Virtualizor Extended

    Screenshot
  15. Blesta Addons

    [Module] Virtualizor Extended

    Virtualizor Extended Module Virtualizor Extended VPS For Blesta will allow you to automate the provisioning of virtual servers to your clients. Owing to a well-thought module configuration you will be able to quickly and capably set up ready products in Blesta and offer them to your customers! The module will empower your clients to conveniently manage their virtual servers directly in your Blesta client area. Your customers will be able to reboot, shutdown or rebuild the servers as well as access various consoles, view usage graphs, set boot order and much more! A number of functionalities combined with ease of installation and use make Virtualizor Extended VPS For Blesta a great choice for every Virtualizor server owner. this plugin requiere a the Gold (VIP) subscription . Order Link Module page
×