Jump to content

otakarw

Members
  • Posts

    133
  • Joined

  • Last visited

Posts posted by otakarw

  1. Zdravím, dnes jsem nainstaloval Prestashop 1.4.1 s tím, že jako defaultní jazyk při instalaci jsem zvolil češtinu. Z nějakého důvodu se mi nestáhla česká vlaječka (vlaječky ostatních jazyků jsou v pořádku, místo české se objevuje text)....


    Tento problem odstranili, oni totiz vymazali tieto obrazky vlajociek zo serveru prestashop.com, z kade su aj pri pridavani vlastneho baliku stahovane (preto cz.gzip neobsahuje ziadne obrazky) Uz su opat nahrane.
  2. Oficialne preklady nainstalujete aj cez administraciu. Uz som doplnil aj verziu 1.4.3. Robil som nejake upravy v preklade. Bol som trosku zaneprazdneny, ale uz by to malo fungovat. Bohuzial v oficialnej verzii nie su obsiahnute vsetky stringy, pretoze sa nedaju prelozit ani nahrat, je to problem na strane presta teamu. Skuste to v administracii, ak Vam bude toho chybat vela, tak radzsej nainstalujte moj balik exportovany priamo z 1.4.3, ktory obsahuje vsetky stringy. Ak chcete plnohodnotny preklad, ktory som importoval na oficialny server tak ten najdete tu:

    http://www.prestashop.com/forums/viewthread/99300/

  3. No prave ved tam mam nastavene slovak a nic...resp prave pozeram ze slovencinu v admine aj mam ale tie zalozky (buttony) ako orders, catalog, customers atd...mam po eng..preco ?


    Pretoze PrestaShop ma tieto preklady v databaze. Pri instalacii modulu sa tak vytvaraju dynamicky nove taby. Bohuzial este nezahrnuli preklad poloziek databazy do jazykoveho balicka. Takze je potrebne to prelozit manulane v administracii Employees >> Tabs, ked si prehodite na Slovencinu mozete si to tam prelozit. Planujem spravit sql subor, ktory zrunejete cez phpmyadmin na databazu a mal by sa to prelozit.
  4. Preklad verzie 1.4.3

    Bohuzial administracne rozhranie pre nahravanie prekladov je stale nekompatibilne na 100% s verziou 1.4 pretoze je to len upravena administracia z 1.3 takze nezachyti ani vsetky stringy. Prikladam preklad v podobe ako ho nahramvam do administracneho rozhrania. Ak chcete cely preklad v podobe ako ho nahravam naimportujte si tento, pretoze adminstracne rozhranie odfiltruje stringy, ktore nepozna. Upozornenie vo verzii 1.4.3 pribudla nova e-mailova sablona

  5. otakarw:

    administracia->kosiky : (vyber nejaky kosik) : "Hore"

    pravdepodobne preklad z UP (angl. Hore) v tomto pripade je to ovsem skratka User Price.

    podobne (je to asi ten isty string) v otvorenej objednavk...

    JM


    Pripomienku zapracujem. Momentalne vylepsujem preklad. Niektore preklady sa mi zdali prilis mechanicke. Clovek Niektore stringy boli uplne vylepsene. V toole nie su naimportovane vsetky stringy takze mozno postnem sem archiv lebo nieco preskoci pri importe do toolu.
  6. je mozen aby subory neobsahovali entity ?
    napr. v bankwire.html
    Vaša objednávka bola úspešne zadaná do  nášho systému a bude spracovaná v čo najkratšom čase, ako prijmeme od Vás platbu.


    ale aby tam bol 'normalny' text s diakritikou ?
    ---------------------------------------------------------------

    pri instalacii sa uz nahraju do adresara s modulmi subory sk.php
    Pozeram ze subor \modules\bankwire\sk.php co je v baliku SK ktory som stiahol z downloads je iny ako uz je v adresary \modules\bankwire po instalacii PS 1.4.2.5




    Bohuzial to nejde. Entity generuje TinyMCE editor. Robim ich podla zrkadlovej predlohy z anglictiny cez prekladovy tool.
  7. To solve the issue that form is hardcoded in core files you can inj elements of your form
    (I did not come further because doing this takes much more time than edit core)

    use function appendBefore

    just sniplet example:

    var newP = document.createElement("p");
    var txt = 'Kilroy was here.';
    var newT = document.createTextNode(txt);
    newP.appendChild(newT);
    var p2 = document.getElementsByTagName('p')[1];
    p2[removed].insertBefore(newP,p2);
    



    You have to replace submit form button by our button by new element (submit button)

    d.removeChild(X); 
    document.createElement(Y);
    


    more here: http://www.dustindiaz.com/add-and-remove-html-elements-dynamically-with-javascript/

    and then submit form with cURL or fopen to file url=/modules/your_module/your_code.php - this form should contain altered authentification.php class from core. More here http://www.html-form-guide.com/php-form/php-form-submit.html

    last issue to redirect via cURL to /my-account.php or /order.php?step=1 so it means that is too much complicated

  8. To add whole database, execute inside install() function this condition:

    /* Create Table */
               if (!Db::getInstance()->Execute('
               CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'paypal_order` 
               (`id_order` int(10) unsigned NOT NULL auto_increment, `id_transaction` varchar(255) NOT NULL, PRIMARY KEY (`id_order`)) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8'))
                   return = false; //returns false if Db::getInstance.. returns true =(!(false=error)) in other case is skipped
    

  9. To add column into databaase during installation of module you neet to execute this code:

    "addind company ID and Tax ID into ps_adress table"

    class CompanyID extends Module
    {
       public function __construct()
       {
           $this->name = 'companyid'; //directory name
           $this->tab = 'billing_invoicing';
           $this->version = '1.0';
           $this->author = 'xxx';
    
           parent::__construct();
    
           $this->displayName = $this->l('Company ID\'s');
           $this->description = $this->l('This module extends information about customer with Company ID and Tax ID.  ');
           $this->confirmUninstall = $this->l('Are you sure to uninstall this module? Collect and display information about customer\'s Company ID and Tax ID!');
    
       }
    
       public function install()
       {
       /* Install and register on hook */    
           if     (!parent::install() 
               OR !$this->registerHook('createAccountForm') 
               OR !$this->registerHook('customerAccount') 
               OR !$this->registerHook('adminCustomers'))
               return false;
    
               /* Setting database adding column */
           if (!Db::getInstance()->Execute('SELECT company_id from `'._DB_PREFIX_.'address`'))
           { 
               if (!Db::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'address` ADD `company_id` varchar(16) NULL AFTER `phone_mobile`'))
               return false;
           }
    
           if (!Db::getInstance()->Execute('SELECT tax_id from `'._DB_PREFIX_.'address`'))
           { 
               if (!Db::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'address` ADD `tax_id` varchar(16) NULL AFTER `company_id`'))
               return false;
           }
    
           /* Set configuration - creates value in ps_modules table */
           Configuration::updateValue('COMPANY_ID_MODULE_ENABLED', 1);
           return true; 
       }
    
       public function uninstall()
       {
           ....
       }
    ....
    

  10. I am creating module that will get required ID numbers for tax athority according to tax laws. Presta can save only 2 nubers Tax ID adn VAT ID. We need company register ID nr. Basically, I need to add column, but I want to add check if this column exist before executing ALTER TABLE:


    This column should be created upon module instalation in backoffice with this code:

    public function install()
       { 
       ...
    /* here are all functions to show module in administration and to allow to install it */
       ...
    
    /* Set database Db::getInstance()->Execute('… SQL QUERY …')  but missing check if coulmn EXISTS*/
       if (!Db::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'address` ADD `company_id` varchar(16) NULL AFTER `dni`')
               return false;
    
       }
    



    How to modify following to work with prestashop classes

    $sql=mysql_query("SELECT company_id FROM ps_adress");
    
    if (!$sql){
    
    mysql_query("ALTER TABLE ps_adress ADD company_id VARCHAR(16) NULL AFTER dni");
    
    return false;
    
    }
    
    

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More