Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/11/2015 in all areas

  1. I got what i want now $params = $event->getParams(); $service_id = (int) $params['service_id']; Loader::loadModels($this, array("Services", "Packages")); $details = $this->Services->get( $service_id); $package_id = (int) $details->package->id; $p_details = $this->Packages->get($package_id); $meta_array = array(); $meta_array = $p_details->meta;
    2 points
  2. There was a Dedicated Server module for WHMCS... I think I even have a copy of that script, but it's an extremely old copy. Hmm... maybe I should convert it to Blesta? I'll look into it and see if there's anything that can be done. Honestly, the closest thing that comes to managing dedicated servers would be NOC-PS's NOC-PS module, but that's mainly for OS reloads and stuff. Ironically, I have a project right now with ModulesBakery that's currently on hold for developing such a module. It ties into Ubersmith... well, the providers that utilize Ubersmith such as QuadraNet have enabled Ubersmith's APIs. If you'd like to have access to such a module that makes use of the Ubersmith API for dedicated servers... I'd be happy to get it open-sourced instead of copyrighted and locked to our company only. Edit: Looks like the module for dedicated servers was abandoned. And a new version of the module has been released for WHMCS. I'll take a look-see at it and see if I can help with getting it converted over.
    1 point
  3. Blesta Addons

    Future Of Paypal...

    if you are looking for this , i have started the work in it , but not finiched and need some tweaks to be complete . http://host-image.net/v.php?id=45397incontext.png
    1 point
  4. serge

    Initial Setup Error

    after config change & php related, always restart php, and next nginx (or restart the whole server) other: ------- if you are on a VPS or dedicated server you have to edit the php.ini of the given virtual server and not the global php.ini: Global -------------- /etc/php5/fpm /etc/php5/cgi /etc/php5/cli Virtual host ------------------ /home/MY-HOSTNAME/etc/php5 and in the php.ini set this: cgi.fix_pathinfo=0 ------------------------------- also in this file: /etc/php5/fpm/pool.d/www.conf the "listen" directive must match to what you have in your nginx vhost or nginx conf example: listen = /var/run/php5-fpm.sock OR listen = 127.0.0.1:8080 ---------------- as you have apache in front also check that you "forward" php to what port from apache, and make this port is same in the "listen" within the nginx vhost file, and this port opened at your firewall for tcp
    1 point
  5. serge

    Initial Setup Error

    The line I given you is not in your file.....
    1 point
  6. The "Starting At" price is from the /plugins/order/views/templates/wizard/main_packages.pdt template. It currently shows the lowest numeric price, however, it would require several changes to show the lowest price per month. It becomes more complex if you have non-monthly terms in the mix as well. As an example, I will only show changes for the Wizard Boxes template, and ignore non-monthly terms for simplicity. Find: foreach ($package->pricing as $price) { if ($lowest_price === null || $lowest_price->price > $price->price) $lowest_price = $price; } Replace with: $lowest_monthly_price = null; $lowest_monthly_currency = null; foreach ($package->pricing as $price) { if ($lowest_price === null) { $lowest_price = $price; } if ($price->period == "month" && $lowest_price->period == "month" && $price->term > 0 && $lowest_price->term > 0 && ($price->price/$price->term) < ($lowest_price->price/$lowest_price->term)) { $lowest_monthly_price = ($price->price/$price->term); $lowest_monthly_currency = $price->currency; } } Find: <div class="package panel-blesta <?php echo ($this->Html->ifSet($package_id) == $package->id ? "selected" : "");?>" data-group-id="<?php $this->Html->_($package_group->id);?>" data-pricing-id="<?php $this->Html->_($lowest_price->id);?>"> Replace with: <div class="package panel-blesta <?php echo ($this->Html->ifSet($package_id) == $package->id ? "selected" : "");?>" data-group-id="<?php $this->Html->_($package_group->id);?>" data-pricing-id="<?php echo $this->Html->safe($this->Html->ifSet($lowest_monthly_id, $lowest_price->id));?>"> Find: <h4><?php echo $this->CurrencyFormat->format($this->Html->ifSet($lowest_price->price), $this->Html->ifSet($lowest_price->currency));?></h4> Replace with: <h4><?php echo $this->CurrencyFormat->format($this->Html->ifSet($lowest_monthly_price, $lowest_price->price), $this->Html->ifSet($lowest_monthly_currency, $lowest_price->currency));?><?php echo ($lowest_monthly_price !== null) ? "/month" : "";?></h4>
    1 point
  7. If a payment is made for multiple invoices, the invoice numbers gets mentioned in the "Invoice Paid" email. But only the first invoice is attached with the email. From my point of view i think it would be best to attach all invoices if they are mentioned within the email.
    1 point
  8. Nelsa

    2Checkout Api Support

    I started working on gateway with v2 API few days ago, I finished reading docs and downloaded v2 API library and Blesta SDK,for now I'm in early stage and just installed gateway today(Thanks Paul for dev. licence ).Now it is only empty template you can install,uninstall and put your seler ID,key... but like I say I start two days ago. Now I'm starting to implement everything ,this gateway is intended for one of my customers but copyrights stay to me and I will share it for free.Note that this is not existing gateway update but completly new. Few previews(it is labeled as merchant since I put it in merchant foldler)
    1 point
  9. serge

    Initial Setup Error

    I think your blank page is returning HTTP OK/success code 200 answer, and from memory, it's tippicaly due to a nginx misconfiguration, Try to edit this file: fastcgi_params in debian it's this path: /etc/nginx/fastcgi_params add this at the first line and save and restart nginx: ------------------------------------------------------ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    1 point
  10. for each service $i Service ID: $services[$i]->id Client ID: $services[$i]->client_id endfor
    1 point
  11. i the top of the pdt file n print the "services" var and chearch in it the var you need . print_r($services);
    1 point
  12. I think this will be logical, upgrade/downgrade or any new order are automatically set with price in the client default currency, but allowed to be changed with the currencies dropdownlist
    1 point
×
×
  • Create New...