Jump to content

otakarw

Members
  • Posts

    133
  • Joined

  • Last visited

Everything posted by otakarw

  1. Finally I found solution. It is safe to delete. These files ale left there when script times-out and it does not have chance to clean folder. Be careful to leave there index.php to prevent direct acces to files in there
  2. I am interseted, too. Why is tmp folder so bloated. Are there necessary files, should I keep them?
  3. Mne naviac nesla nacitat vobec stranka prestashop.com tak som siel na spravodajstvo a ze daki chlapci v rakusku nasli 10.000€ a odovzdali to na policii.
  4. 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.
  5. Skuste len pre skusku znovu vygenerovat nahlady obrazkov a potom napiste, co sa stalo. Hint : Preferences >> Image a tam dajte znovu vygenerovat obrazky. Najma ci to dokonci a po akom case. A verzia vasej isntalacie dodatocne moduly a upravy tiez mozete spomenut.
  6. V podstate v anglictine je to Price impact a Weight impact; teda radsej to prelozim doslovne opravena verzia pre 1.4.3 je v prilohe.
  7. Download FileZilla ftp client to upload your files and to set correct folder and file permissions. There is an option to set just folders recursively. Then follow wiki or simply open your site and follow installer instructions.
  8. Silne odporucam update na 1.4.3 Vasa verzia je kvalitou v podstate beta verzia to sa ani neoplati riesit nieco v tejto verzii ;-)
  9. myslim ze to staci prelozit s hviezdickou v preklade pripadne treba vycistit cache.
  10. 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/
  11. Najprv treba spomenut aku verziu pouzivate, ake dalsie moduly mate nainstalovane ak to moze mat suvis. Naviac ci mate nastavene filtrovanie produktov pre skupiny zakaznikov a pod.
  12. Mozno bude problem hostingu. Osobne mam zle skusenosti s mediahostom. Pravdepodobne mate zaskrtenu kvotu a rychlo si vycerpate prideleny procesorovy cas. Skuste naplnit obchod na localhoste a potom nahrajte na server obchod aj s databazou. Na fore najdete ako presunut obchod z localhostu.
  13. 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.
  14. 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
  15. Jazyk admin rozhrania sa meni v nastaveniach uzivatela. Kazdy uzivatel ma vlastne nastvenia jazyka.
  16. 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.
  17. Bohuzial to nejde. Entity generuje TinyMCE editor. Robim ich podla zrkadlovej predlohy z anglictiny cez prekladovy tool.
  18. 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
  19. 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
  20. 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() { .... } ....
  21. After some thinking and searching I came to this /* set database */ 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 `dni`')) return false; }
  22. Waiting for the part manipulating data ObjectModel
  23. 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