Jump to content


  • Posts

  • Joined

  • Last visited

Contact Methods

Profile Information

  • Activity

vyskoczilova's Achievements


Newbie (1/14)




Community Answers

  1. Following this thread and adding the column into correct table as tinyint solved my trouble: https://www.prestashop.com/forums/topic/393533-1-click-upgrade-module-installation-problem/ (in case anyone else is getting the same notice)
  2. Hi I wanted to install "1-Click Upgrade v1.6.7 - by PrestaShop" plugin, but I'm not able to because of following error: The following module(s) were not installed properly: autoupgrade : Unable to create the "AdminSelfUpgrade" tab I have checked enabled modules and all of them are up to date and issued by PrestaShop. Could anybody help me, please? I'm currently running PrestaShop™ Thanks for your help. Turned on Prestashop Debugger: [PrestaShopDatabaseException]Unknown column 'hide_host_mode' in 'field list' INSERT INTO `ps_tab` (`id_parent`, `position`, `module`, `class_name`, `active`, `hide_host_mode`) VALUES ('17', '10', 'autoupgrade', 'AdminSelfUpgrade', '1', '0') at line 639 in file classes/db/Db.php 634. WebserviceRequest::getInstance()->setError(500, ' '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97); 635. } 636. elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) 637. { 638. if ($sql) 639. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>'); 640. throw new PrestaShopDatabaseException($this->getMsgError()); 641. } 642. } 643. 644. /** DbCore->displayError - [line 333 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 613 - classes/db/Db.php] - [1 Arguments] DbCore->q - [line 398 - classes/db/Db.php] - [2 Arguments] DbCore->insert - [line 480 - classes/ObjectModel.php] - [3 Arguments] ObjectModelCore->add - [line 103 - classes/Tab.php] - [2 Arguments] TabCore->add - [line 442 - classes/ObjectModel.php] - [2 Arguments] ObjectModelCore->save - [line 115 - classes/Tab.php] TabCore->save - [line 74 - modules/autoupgrade/autoupgrade.php] Autoupgrade->install - [line 828 - controllers/admin/AdminModulesController.php] AdminModulesControllerCore->postProcessCallback - [line 1071 - controllers/admin/AdminModulesController.php] AdminModulesControllerCore->postProcess - [line 171 - classes/controller/Controller.php] ControllerCore->run - [line 374 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php]
  3. I'm usually working with WP, but I need to manipulate a module blockcontactinfos on Prestashop - just simply add two more fields which will be shown on the front end, but somehow it's not working. I have carefully copied one of the fields, changed it everywhere but I when trying to clear the cache (in the Performance menu): 2 errors blockcontactinfos (parse error in /modules/blockcontactinfos/blockcontactinfos.php) blockcontactinfos (class missing in /modules/blockcontactinfos/blockcontactinfos.php) Could anybody help me out of this? Thanks a lot in advance. Prestashop is 1.6. Fields are displayed correctly in settings, values saved, but there is the error above and I just can't force the web page to load changed template file. blockcontactinfod.php (added the ones with `_url`), lines 31-141, changes marked with `// KV`: class Blockcontactinfos extends Module { protected static $contact_fields = array( 'BLOCKCONTACTINFOS_COMPANY', 'BLOCKCONTACTINFOS_ADDRESS', 'BLOCKCONTACTINFOS_ADDRESS_URL', // KV 'BLOCKCONTACTINFOS_PHONE', 'BLOCKCONTACTINFOS_PHONE_URL',// KV 'BLOCKCONTACTINFOS_EMAIL', ); public function __construct() { $this->name = 'blockcontactinfos'; $this->author = 'PrestaShop'; $this->tab = 'front_office_features'; $this->version = '1.2.0'; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Contact information block'); $this->description = $this->l('This module will allow you to display your e-store\'s contact information in a customizable block.'); $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); } public function install() { Configuration::updateValue('BLOCKCONTACTINFOS_COMPANY', Configuration::get('PS_SHOP_NAME')); Configuration::updateValue('BLOCKCONTACTINFOS_ADDRESS', trim(preg_replace('/ +/', ' ', Configuration::get('PS_SHOP_ADDR1').' '.Configuration::get('PS_SHOP_ADDR2')."\n".Configuration::get('PS_SHOP_CODE').' '.Configuration::get('PS_SHOP_CITY')."\n".Country::getNameById(Configuration::get('PS_LANG_DEFAULT'), Configuration::get('PS_SHOP_COUNTRY_ID'))))); Configuration::updateValue('BLOCKCONTACTINFOS_ADDRESS_URL', Configuration::get('PS_SHOP_ADDRESS_URL')); // KV Configuration::updateValue('BLOCKCONTACTINFOS_PHONE', Configuration::get('PS_SHOP_PHONE')); Configuration::updateValue('BLOCKCONTACTINFOS_PHONE_URL', Configuration::get('PS_SHOP_PHONE_URL')); // KV Configuration::updateValue('BLOCKCONTACTINFOS_EMAIL', Configuration::get('PS_SHOP_EMAIL')); $this->_clearCache('blockcontactinfos.tpl'); return (parent::install() && $this->registerHook('header') && $this->registerHook('footer')); } public function uninstall() { foreach (Blockcontactinfos::$contact_fields as $field) Configuration::deleteByName($field); return (parent::uninstall()); } public function getContent() { $html = ''; if (Tools::isSubmit('submitModule')) { foreach (Blockcontactinfos::$contact_fields as $field) Configuration::updateValue($field, Tools::getValue($field)); $this->_clearCache('blockcontactinfos.tpl'); $html = $this->displayConfirmation($this->l('Configuration updated')); } return $html.$this->renderForm(); } public function hookHeader() { $this->context->controller->addCSS(($this->_path).'blockcontactinfos.css', 'all'); } public function hookFooter($params) { if (!$this->isCached('blockcontactinfos.tpl', $this->getCacheId())) foreach (Blockcontactinfos::$contact_fields as $field) $this->smarty->assign(strtolower($field), Configuration::get($field)); return $this->display(__FILE__, 'blockcontactinfos.tpl', $this->getCacheId()); } public function renderForm() { $fields_form = array( 'form' => array( 'legend' => array( 'title' => $this->l('Settings'), 'icon' => 'icon-cogs' ), 'input' => array( array( 'type' => 'text', 'label' => $this->l('Company name'), 'name' => 'BLOCKCONTACTINFOS_COMPANY', ), array( 'type' => 'textarea', 'label' => $this->l('Address'), 'name' => 'BLOCKCONTACTINFOS_ADDRESS', ), array( 'type' => 'text', 'label' => $this->l('URL na Google mapy'), 'name' => 'BLOCKCONTACTINFOS_ADDRESS_URL', ), // KV array( 'type' => 'text', 'label' => $this->l('Phone number'), 'name' => 'BLOCKCONTACTINFOS_PHONE', ), array( 'type' => 'text', 'label' => $this->l('Telefonní číslo bez mezer'), 'name' => 'BLOCKCONTACTINFOS_PHONE_URL', ), // KV array( 'type' => 'text', 'label' => $this->l('Email'), 'name' => 'BLOCKCONTACTINFOS_EMAIL', ), ), 'submit' => array( 'title' => $this->l('Save') ) ), ); blockcontactinfos.tpl (added the ones with `_url`), lines 32-33: {if $blockcontactinfos_address != ''}<li><pre> <a href="{$blockcontactinfos_phone_url|escape:'html':'UTF-8'}">{$blockcontactinfos_address|escape:'html':'UTF-8'|nl2br}</a></pre></li>{/if} {if $blockcontactinfos_phone != ''}<li>{l s='Tel' mod='blockcontactinfos'} <a href="tel:{$blockcontactinfos_phone_url|escape:'html':'UTF-8'}">{$blockcontactinfos_phone|escape:'html':'UTF-8'}</a></li>{/if} [1]: https://github.com/PrestaShop/blockcontactinfos
  4. Hi, imagine that we have two prestashop eshops. Both are independent on each another, first one is selling BRAND 1 and second BRAND 2. Than we wan to build third eshop, where will be all of brands which we sell and some more things. What would be great to do is get products of BRAND 1 from the first eshop and BRAND 2 from second some automatic way (API setting?), copy and keep updated details, price, pictures... they can even load from eshop1.com. Just to be clear - I don't want to export and import them. I just want to maintain them at one eshop not at two same time. Is there a way how to do that? Even paid plugin would be cool. Thanks a lot Karolina
  5. Už to mám - Pro PrestaShop 1.6.x nabídka Konfigurace > Produkty v části Stránka produktu nastavitZobrazí dostupné množství na produktové stránce na Ne. U produktů by měl být nastaven text Zobrazovaný text, pokud je skladem: (v záložce Množství)
  6. Máme nějaké zboží skladem, ale další zboží je kusové a "na objednávku" vyrobené na míru. Neporadil byste mi někdo, jak to dát do Prestashopu? Když tam dám 0 ks, tak mi všude svítí "vyprodáno", což ale není tak úplně pravda. Předem díky, Karolína
  7. Could anybody help me, if it's possible to do something like this. I have site A, where is Prestashop, products with unique reference code (and friendly-url) I have bigger site B, where is as well catalogue of products and I want to add link "to buy" to each of product which will be linked to the correct product in prestashop site A. All the I have at the site B is the reference code of product at site A. Both sites are completely independent. Is there a way which I can generate a working url of the product to put the link on site B? Or do I need to go through the database? Thanks a lot Karolina
  8. It looks like a cookie issue, it still keeps some old domain data (even throught I've changed ofcourse the url link in ps_configuration.. But hover, still it keeps weird things: https://www.dropbox.com/s/cti9erk4ucxegr8/Screenshot%202014-11-23%2008.50.45.png?dl=0
  9. After migration old and new customers can't login - don't know why. After login, nothing happens - it's just redirected (?) back to login site here: http://www.vonaveauto.cz/login?back=my-account You can try login as email/username: admin password: fantomas214 The weirdest thing is, that It does different things in different browsers: - can't log in Google Chrome - in Firefox I can log in, but than it brakes down in few clicks (lost menu and so on) - working in Internet Explorer without problems occured. And it work without any problems in my "demo" site here: http://demo.kybernaut.cz/yama Could you give me a hint, what can be possibly wrong and how to solve it? I used the google a lot, but nothing helped. Thanks a lot Karolina
  10. Hi guys, I've got an urgent problem - I need to migrate from Virtuemart to Prestashop, everythings done, but the problem is that I would like to keep my clients clients pwd. But Virtuemart is using varchar(100) and Prestashop varchar(32) and of course different salting technique. Is there anyway how to do that? Or any way how to reset all my customers password and send them email? K.
  11. Hi, works like a charm, but one more thing: I suppose that Email is just my translation which should be "Email / Username" but, I can login with the username (great!!) but when I type, it make the form red and with "x" sign, could you get rid of it or just make it green as email is? login form: printscreen here and another minor problem (however it's working, which is perfect) - user name is not displayed in "Customers" overview in admin - printscreen, printscreen2 - but that's not urgent, I don't need to see it if it's working
  12. Once more from the support: Hi, I was Check "Logging in with username" Module in default Prestashop theme and there is no any "User Name" Field that you say in "http://www.prestashop.com/forums/topic/376310-log-in-with-username-instead-of-email-module-attached/" this link. See Attach Screenshot: http://disk.kybernaut.cz/kybernaut_01.png and http://disk.kybernaut.cz/kybernaut_02.png If you still have any question then give me more detail about your issue with screenshot. http://demo.kybernaut.cz/yama/ Best Regards, Krishna Kanani
  • Create New...

Important Information

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