Jump to content

deydod

Members
  • Posts

    13
  • Joined

  • Last visited

Recent Profile Visitors

1,585 profile views

deydod's Achievements

Newbie

Newbie (1/14)

6

Reputation

  1. Hi naja7host I am aware that it should be possible and I already have custom template for pdf invoices. However this field should be populated on invoice creation. Do you have any idea where to start? Are there any hooks?
  2. Hi I've been doing some customization on Blesta's invoices to meet local requirements. One of the requirements is that if you sell something in USD you have to show the value and rate in local currency. So basically I have to keep the rate in the invoice' custom field for the day when it is created. I've already created a component that will fetch the rates from the right source, however do you think this is something that can be integrated? If you are not going to integrate such feature, can you point me to the right direction to customize invoices and have custom field?
  3. Well I am using the sessions way, that's the reason I havent tested this. But in my opinion the part that grabs the language and sets the cookie should be before outputing any content. That's probably the reason why its not working correctly.
  4. Licensecart your code should be: <?php // Selected language $language_code = $_GET['set_language']; if( $language_code != '' ){ Configure::set('Blesta.language', $language_code); Language::setLang(Configure::get('Blesta.language')); setcookie('set_language', $language_code, time() + (86400 * 30), "/"); // 86400 = 1 day }else{ $language_code = "en_us"; } ?> <form method="GET" class="form-inline text-center"> <select name="set_language" class="form-control input-sm" id="set_language"> <option value="en_us" <?php if ( $_COOKIE["set_language"] == 'en_us' ){ echo 'selected'; } ?>>English</option> <option value="fr_fr" <?php if ( $_COOKIE["set_language"] == 'fr_fr' ){ echo 'selected'; } ?>>French</option> </select> </form> <script type="text/javascript"> jQuery(document).ready(function() { jQuery("#set_language").change(function() { jQuery(this).closest("form").attr('action', window.location.href); jQuery(this).closest("form").submit(); }); }); </script> also this part needs to be changed: }else{ $language_code = "en_us"; } to: }else{ $language_code = Configure::get('Blesta.language'); } This way it will get the default language that is set in admin. (can be different than en_us).
  5. Found a small typo by accident I was not going to order, but to check how the site works: https://eidolonhost.com/billing/order/config/index/vps/?group_id=22&pricing_id=25 I guess it should be 12 MONTHS not years! Otherwise seems pretty good offer.
  6. Hi Tyson // User's language $language = Configure::get('Blesta.language'); Only returns the the blesta default language when you are not authenticated. Maybe I am wrong but in my tests it always returns "en_us".
  7. In addition to naja7host I've added some code so the selected language stays selected: <?php if (!isset($this->Session)) Loader::loadComponents($this, array("Session")); ?> <form method="GET" class="form-inline text-center"> <select name="set_language" class="form-control input-sm" id="set_language"> <option value="en_us" <?php if ($this->Session->read('language') == 'en_us') echo 'selected' ?>>English</option> <option value="fr_fr" <?php if ($this->Session->read('language') == 'fr_fr') echo 'selected' ?>>French</option> </select> </form> <script type="text/javascript"> jQuery(document).ready(function() { jQuery("#set_language").change(function() { jQuery(this).closest("form").attr('action', window.location.href); jQuery(this).closest("form").submit(); }); }); </script> Just in case anyone needs this.
  8. Hi I've been trying to adapt Blesta to my needs and this includes custom theme and language. However I have a few problems: 1) I've translated the support manager plugin files and that plugin usually puts "Support" in the client nav. However when the client switches language, everything translates except that. I have to uninstall/install support manager plugin to change this and it still does not change when client switch language. 2) When switching languages - the success notification is in source language. I should be in destination language. Example If I switch from English to Arabic, the success message should be in Arabic. Right now is in English. That's what I've found so far.
  9. Hi I am building multilanguage website and I am using Blesta for billing. I have a button called "client login", however I am not sure how to forward the user properly to the proper blesta language. Example: My website's default language is English. Client doesn't like it and switch to Poland. Then he tries to access Blesta login page, but he sees it in English (default Blesta language) User has set Poland in his user profile. Once logged in this is not a problem anymore. Is there a way to force Blesta to show login page in given language? I've tried passing ?lang=pl parameter, but it seems its not working. Deyan
  10. HI I am looking for good Blesta developer that can integrate ePay.bg as payment gateway. Its more or less similar to what paypal do: you purchase something, then you go to epay.bg, pay there and you are returned back to Blesta with confirmation. Unfortuantely I was unable to find English version of their API documentation, but if someone is interested, please have a look here: https://www.epay.bg/img/x/readme_web.pdf Please let me know what do you think.
  11. Yes, Xcache is insalled.
  12. Hi I've installed Blesta with no problems - just uploaded the files and followed the installation procedure. It seems Blesta is working fine, however there are errors on some pages: Accessing Support-> Tickets OR Knowledgebase from client area: Fatal error: Class 'SupportManagerController' not found in /home/xxxxxx/public_html/clients/plugins/support_manager/support_manager_kb_controller.php on line 11 When I am on Client Portal and click on Order, nothing happens, just refreshes the page. I've already added Package/Gropus/Order Forms. Also How I can use logicbox module to grab newest daomains from ResellerClub and their prices (Exmplae: .futboll, .luxury ...)? Also I was unable to find how to map existing clients (from cpanel server and resellerclub) with newly created ones?
  13. Hi Do you have csf installed on your system? If so check if it is not reaching any limits and then killing the process. It depends how you have configured csf to work and will explain everything.
×
×
  • Create New...