Jump to content

deydod

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by deydod

  1. 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?

  2. 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).

  3. 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.

  4. 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.

  5. 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

  6. 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.

  7. 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?

     

     

×
×
  • Create New...