Munti23 Posted June 22, 2015 Share Posted June 22, 2015 Hi guys, according to you is possible to change/remove "Powered-By: Prestashop" - (see below the attached img)? (I've already edited the header.tpl) Greetings Manuel Link to comment Share on other sites More sharing options...
selectshop.at Posted June 22, 2015 Share Posted June 22, 2015 Yes, you only need to remove it by uncheck on footer and by rework the index site adding your own metas, keywords. header.tpl is not the correct way for it. Uncheck on footer: modules -> modules -> cms block -> uncheck "Display powered by Prestashop" Change your metas: preferences > SEO & URL's > edit page "index" and change metas. 1 Link to comment Share on other sites More sharing options...
Munti23 Posted June 25, 2015 Author Share Posted June 25, 2015 Already done like 2 month ago. I get Powered By: Prestashop in the Header. Connection: Keep-Alive Content-Encoding: gzip Content-Type: text/html; charset=utf-8 Date: Thu, 25 Jun 2015 07:55:56 GMT Keep-Alive: timeout=60, max=500 P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA" Powered-By: PrestaShop Server: Apache Transfer-Encoding: chunked Vary: Accept-Encoding Link to comment Share on other sites More sharing options...
razaro Posted June 25, 2015 Share Posted June 25, 2015 That really bugs you that much :-) But to remove it I guess you need to override FrontController.php and change this function public function initHeader() { /** @see P3P Policies (http://www.w3.org/TR/2002/REC-P3P-20020416/#compact_policies) */ header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); header('Powered-By: PrestaShop'); // Hooks are voluntary out the initialize array (need those variables already assigned) $this->context->smarty->assign(array( 'time' => time(), 'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'), 'static_token' => Tools::getToken(false), 'token' => Tools::getToken(), 'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_, 'content_only' => (int)Tools::getValue('content_only'), )); $this->context->smarty->assign($this->initLogoAndFavicon()); } 1 Link to comment Share on other sites More sharing options...
selectshop.at Posted June 25, 2015 Share Posted June 25, 2015 (edited) This is really annoying. But you can not eliminate totally: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip, deflate Accept-Language: de-AT,en-US;q=0.7,en;q=0.3 Connection: keep-alive Cookie: PrestaShop-107a----- latest on cookie you will see that it is a Prestashop. Edited June 25, 2015 by selectshop.at (see edit history) 1 Link to comment Share on other sites More sharing options...
Munti23 Posted June 25, 2015 Author Share Posted June 25, 2015 Really thanks razaro!! Btw, yeah still remain Prestashop in cookie Link to comment Share on other sites More sharing options...
razaro Posted June 25, 2015 Share Posted June 25, 2015 This is really annoying. But you can not eliminate totally: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip, deflate Accept-Language: de-AT,en-US;q=0.7,en;q=0.3 Connection: keep-alive Cookie: PrestaShop-107a----- latest on cookie you will see that it is a Prestashop. Yeah good catch, guess that comes from here public function __construct($name, $path = '', $expire = null, $shared_urls = null, $standalone = false, $secure = false) { $this->_content = array(); $this->_standalone = $standalone; $this->_expire = is_null($expire) ? time() + 1728000 : (int)$expire; $this->_path = trim(($this->_standalone ? '' : Context::getContext()->shop->physical_uri).$path, '/\\').'/'; if ($this->_path{0} != '/') $this->_path = '/'.$this->_path; $this->_path = rawurlencode($this->_path); $this->_path = str_replace('%2F', '/', $this->_path); $this->_path = str_replace('%7E', '~', $this->_path); $this->_domain = $this->getDomain($shared_urls); $this->_name = 'PrestaShop-'.md5(($this->_standalone ? '' : _PS_VERSION_).$name.$this->_domain); $this->_allow_writing = true; $this->_salt = $this->_standalone ? str_pad('', 8, md5('ps'.__FILE__)) : _COOKIE_IV_; if ($this->_standalone) $this->_cipherTool = new Blowfish(str_pad('', 56, md5('ps'.__FILE__)), str_pad('', 56, md5('iv'.__FILE__))); elseif (!Configuration::get('PS_CIPHER_ALGORITHM') || !defined('_RIJNDAEL_KEY_')) $this->_cipherTool = new Blowfish(_COOKIE_KEY_, _COOKIE_IV_); else $this->_cipherTool = new Rijndael(_RIJNDAEL_KEY_, _RIJNDAEL_IV_); $this->_secure = (bool)$secure; $this->update(); } It is in class Cookie.php so try to override that and remove/edit that string 'PrestaShop-' . But not sure if that important and used somewhere else. Link to comment Share on other sites More sharing options...
selectshop.at Posted June 26, 2015 Share Posted June 26, 2015 Yeah good catch, guess that comes from here public function __construct($name, $path = '', $expire = null, $shared_urls = null, $standalone = false, $secure = false) { $this->_content = array(); $this->_standalone = $standalone; $this->_expire = is_null($expire) ? time() + 1728000 : (int)$expire; $this->_path = trim(($this->_standalone ? '' : Context::getContext()->shop->physical_uri).$path, '/\\').'/'; if ($this->_path{0} != '/') $this->_path = '/'.$this->_path; $this->_path = rawurlencode($this->_path); $this->_path = str_replace('%2F', '/', $this->_path); $this->_path = str_replace('%7E', '~', $this->_path); $this->_domain = $this->getDomain($shared_urls); $this->_name = 'PrestaShop-'.md5(($this->_standalone ? '' : _PS_VERSION_).$name.$this->_domain); $this->_allow_writing = true; $this->_salt = $this->_standalone ? str_pad('', 8, md5('ps'.__FILE__)) : _COOKIE_IV_; if ($this->_standalone) $this->_cipherTool = new Blowfish(str_pad('', 56, md5('ps'.__FILE__)), str_pad('', 56, md5('iv'.__FILE__))); elseif (!Configuration::get('PS_CIPHER_ALGORITHM') || !defined('_RIJNDAEL_KEY_')) $this->_cipherTool = new Blowfish(_COOKIE_KEY_, _COOKIE_IV_); else $this->_cipherTool = new Rijndael(_RIJNDAEL_KEY_, _RIJNDAEL_IV_); $this->_secure = (bool)$secure; $this->update(); } It is in class Cookie.php so try to override that and remove/edit that string 'PrestaShop-' . But not sure if that important and used somewhere else. Never tried to remove it. In this case, cause it is case sensitive and checked on database I preferred to don't touch. Don't know the impact of a change on this. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now