Jump to content

butlerov

Members
  • Posts

    37
  • Joined

  • Last visited

Profile Information

  • First Name
    Butlerov
  • Last Name
    Gennady

Recent Profile Visitors

517 profile views

butlerov's Achievements

Newbie

Newbie (1/14)

  • Dedicated Rare
  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

0

Reputation

  1. Hi. I wanna insert a markup only on one cms page, how to do it? when i have only one header.tpl for all pages. prestashop 1.6.1 default theme. Thx for the trouble Solved. Had to use {if $smarty.get.id_cms == 4 }{/if} in header.tpl <script type='application/ld+json'> { "@context": "http://www.schema.org", "@type": "Organization", "name": "Название Компании", "telephone": "+08*****", "email": "эл. почта", "url":"http://www.name.com", "logo": "http://www.name.com/include/img/logo.png", "description": "Описание", "image": "http://www.name.com/include/img/logo.png", "address": { "@type": "PostalAddress", "streetAddress": "Адрес улица, проспект, дом, офис", "addressLocality": "Город", "addressRegion": "Область", "postalCode": "Почтовый индекс ЦИФРОЙ", "addressCountry": "RU" } } } </script>
  2. Hi. Tried to put a extra links into topcolumn only for specific categories but inserting below code into header.tpl above breadcrums gives 500 error only. {if $page_name !='index' && $page_name !='pagenotfound' && $smarty.get.id_category = 418 && $smarty.get.id_category = 420} {include file="./new_code.tpl"}{/if} What's wrong? Can someone give a direction?
  3. Hi. Noticed that hook_footer didnt load on homepage. On other pages all normal. Why is this happening? Cant find the reason. Please help. Default template. Ps version 1.6.1.16. Tried clear cache in BO and delete cookies. URL caprigoshop.ru So it is how looks home page footer This is how it should look and look on other pages Hook modules if needed Live edit doesn't show blockcontactinfos module on homepage Found the reason. It was module creative slider . Slider was placed in displayTop. Looks like its somehow prevent footer-content from load.No, the assumption was wrong. There was too many slides.
  4. Yes, I also noticed this when created new categories and positions rearranged. It is a pity that this trick does not work for products. Have to turn off the product, change it position and turn it on.
  5. Maybe someone help which sql query should i put in sql manager? Changing all position of certain idcategoryparent dosent change position in BO at all. Maybe it happens because UPDATE method used by phpmyadmin not allowed. thanks Well seems change postions of categories "kinda" worked. What i did, created a new subcategory then i turn on and off rest of subcategories, after that i can change position by drap and drop from BELOW to the TOP(from top to below doesnt work) all the categories and after reload the page they stayed when i left them.
  6. Well i set id_category some irrelevant category with 8 subcategories and no products in them and BO sql manager said This SQL query returned an empty result. Another category with subcategories and products said but real amount of products in is not correct id_product count(*) 5099 23 Target category with subcategories and products where i want to change some position of subcategories returns This SQL query returned an empty result. So some categories returns empty even there a products in them and some incorrect number of products in them if understand this query count how many products in category But i dont need products, wanna change ps_category position but when i changed position of one category in phpmyadmin to 3 in BO that category position was still 26
  7. Hi. When i use drap and drop to change subcategory positon it's say Succesfull, but after page reload nothing happens. In chrome console i got [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. send @ jquery-1.11.0.min.js:4 ajax @ jquery-1.11.0.min.js:4 onDrop @ dnd.js:145 mouseup @ jquery.tablednd.js:262 dispatch @ jquery-1.11.0.min.js:3 r.handle @ jquery-1.11.0.min.js:3 but i can change products positions.Presta version 1.6.1.16. Changing position in phpmyadmin does not work. What sql query should i put to change positions of subcategories? or maybe what change here https://github.com/PrestaShop/PrestaShop/pull/6749 but i dunno products still change positions and can be saved as usual. Thanks.
  8. Well, all i trying to do is move module contents lower some modules on DisplayHome. When Im tried and put the code you suggested, lowering the module is possible in live edit. But unfortanatly after save via live edit module, got 500 error on homepage.
  9. Hi. I trying to hide subcategories when filter is used and found solution on another forum, but after filter is uncheck, subcategories dont go back. How to reveal them again after all filter boxes is closed? The method I found: in /themes/default-bootstrap/js/modules/blocklayered/blocklayered.js i put $('#subcategories').slideUp(); before if (!ajaxLoaderOn). Cant find where to put .slideDown(); or its not that simple? Maybe, there some way to move to the product-list when filter used, instead? Thanks. blocklayered.js
  10. Hi. I tried to change hook of module blockspecial from && $this->registerHook('displayHomeTab') to && $this->registerHook('displayHome') and from public function hookDisplayHomeTab($params) { if (Configuration::get('PS_CATALOG_MODE')) return; if (!$this->isCached('tab.tpl', $this->getCacheId('blockspecials-tab'))) { BlockSpecials::$cache_specials = Product::getPricesDrop(intval($params['cookie']->id_lang), 0, 200); shuffle($PricesDrop); array_splice($PricesDrop, Configuration::get('BLOCKSPECIALS_SPECIALS_NBR') ); } if (BlockSpecials::$cache_specials) { shuffle(BlockSpecials::$cache_specials); array_splice(BlockSpecials::$cache_specials, ($nb ? $nb : Configuration::get('BLOCKSPECIALS_SPECIALS_NBR'))); } if (BlockSpecials::$cache_specials === false) return false; return $this->display(__FILE__, 'tab.tpl', $this->getCacheId('blockspecials-tab')); to public function hookDisplayHome($params) { if (Configuration::get('PS_CATALOG_MODE')) return; if (!$this->isCached('tab.tpl', $this->getCacheId('blockspecials-tab'))) { BlockSpecials::$cache_specials = Product::getPricesDrop(intval($params['cookie']->id_lang), 0, 200); shuffle($PricesDrop); array_splice($PricesDrop, Configuration::get('BLOCKSPECIALS_SPECIALS_NBR') ); } if (BlockSpecials::$cache_specials) { shuffle(BlockSpecials::$cache_specials); array_splice(BlockSpecials::$cache_specials, ($nb ? $nb : Configuration::get('BLOCKSPECIALS_SPECIALS_NBR'))); } if (BlockSpecials::$cache_specials === false) return false; return $this->display(__FILE__, 'tab.tpl', $this->getCacheId('blockspecials-tab')); } But after installing proccess my homepage go nuts. Some modules stop showing, css hover on horizontal menu not working.Footer modules dissapear. Deleted module, like uninstall then delete Tried backup day old, clear cache from BO and manually. Didnt help With debug true i got something like that in php error log PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/var/www/domains/domainname.ru/cache/smarty/cache/blockspecials/20200125/110/20200125/1/1/1/1/19/5b/0c/0c): failed to open dir: No such file or directory' in /var/www/domains/domainname.ru/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php:196\nStack trace:\n#0 [internal function]: RecursiveDirectoryIterator->__construct('/var/www/domain...', 0)\n#1 /var/www/domains/domainname.ru/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(196): RecursiveDirectoryIterator->getChildren()\n#2 /var/www/domains/domainname.ru/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(130): Smarty_Internal_CacheResource_File->clear(Object(SmartyCustom), NULL, NULL, NULL, NULL)\n#3 /var/www/domains/domainname.ru/tools/smarty/Smarty.class.php(825): Smarty_Internal_CacheResource_File->clearAll(Object(SmartyCustom), NULL)\n#4 /var/www/domains/domainname.ru/classes/SmartyCustom.php(147): Smarty->clearAll in /var/www/domains/domainname.ru/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php on line 196, referer: https://www.domainname.ru/ PREG_BACKTRACK_LIMIT_ERROR in function packJSinHTML prestashop 1.6.1.16 with default theme Unrelated pics deleted Please help. How to reveret back Unfortunately cant find any errors with debug on(only some js error of some module) Looks like im damage somehow hookHome I dunno uninstall and install every missed module on home page still the same, all tpl files are okay, no errors. Maybe its sql problem? Disable override thing fix index Found it. There was a module(not by prestashop) and aparently he override of the controller. Disable it and we back.
  11. Hi.Unfortunately, no.Still getting those warnings. [Fri Mar 08 14:51:06.764704 2019] [:error] [pid 11970] [client 5.135.164.72:45012] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/domains/domainname.ru/cache/smarty/compile/11/b3/e4/11b3e41194d45743198bd5ee23976134dd28269d.file.header.tpl.php on line 107 <link rel="stylesheet" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['css_uri']->value, ENT_QUOTES, 'UTF-8', true);?> " type="text/css" media="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['media']->value, ENT_QUOTES, 'UTF-8', true);?>
  12. Hi.After update from 1.6.1.2 to 1.6.1.16 without updating the theme.When im adding product to the cart .layer_cart_overlay does not show anymore .firefox devtool said TypeError: product.attributes_full is undefined so its enough to add to line 737 if (typeof product.attributes_full !== 'undefined') ? please help updateLayer : function(product){ $('#layer_cart_product_title').text(product.name); $('#layer_cart_product_attributes').text(''); if (product.hasAttributes && product.hasAttributes == true) $('#layer_cart_product_attributes').html(product.attributes_full.replace(/\,/g,'<br>')); $('#layer_cart_product_price').text(product.price); $('#layer_cart_product_quantity').text(product.quantity); $('.layer_cart_img').html('<img class="layer_cart_img img-responsive" src="' + product.image + '" alt="' + product.name + '" title="' + product.name + '" />'); var n = parseInt($(window).scrollTop()) + 'px'; $('.layer_cart_overlay').css('width','100%'); $('.layer_cart_overlay').css('height','100%'); $('.layer_cart_overlay').show(); $('#layer_cart').css({'top': n}).fadeIn('fast'); crossselling_serialScroll(); }, if (idCombination) $(jsonData.products).each(function(){ if (this.id != undefined && this.id == parseInt(idProduct) && this.idCombination == parseInt(idCombination)) if (contentOnly) window.parent.ajaxCart.updateLayer(this); else ajaxCart.updateLayer(this); }); All ajax-cart.js
  13. Looks like smarty create this directory again after some cache cleaning, so no more this errors, thanks, only PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/domains/domainname.ru/cache/smarty/compile/11/b3/e4/11b3e41194d45743198bd5ee23976134dd28269d.file.header.tpl.php on line 107 line 107.My visits didn't trigger that errors so maybe it's some bots 106 <link rel="stylesheet" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['css_uri']->value, ENT_QUOTES, 'UTF-8', true);?> 107 " type="text/css" media="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['media']->value, ENT_QUOTES, 'UTF-8', true);?> 108 " /> and other errors but some strange, today's happened in the morning [Thu Sep 07 08:09:39.768893 2017] [:error] [pid 24324] [client 95.68.252.232:51625] PHP Warning: PDO::query(): MySQL server has gone away in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.768981 2017] [:error] [pid 24324] [client 95.68.252.232:51625] PHP Warning: PDO::query(): Error reading result set's header in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.768954 2017] [:error] [pid 23454] [client 95.68.252.232:51639] PHP Warning: PDO::query(): MySQL server has gone away in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.769004 2017] [:error] [pid 23454] [client 95.68.252.232:51639] PHP Warning: PDO::query(): Error reading result set's header in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.769158 2017] [:error] [pid 24323] [client 95.68.252.232:51627] PHP Warning: PDO::query(): MySQL server has gone away in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.769200 2017] [:error] [pid 24323] [client 95.68.252.232:51627] PHP Warning: PDO::query(): Error reading result set's header in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.769541 2017] [:error] [pid 24344] [client 95.68.252.232:51657] PHP Warning: PDO::query(): MySQL server has gone away in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.769587 2017] [:error] [pid 24344] [client 95.68.252.232:51657] PHP Warning: PDO::query(): Error reading result set's header in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.769578 2017] [:error] [pid 24210] [client 95.68.252.232:51629] PHP Warning: PDO::query(): MySQL server has gone away in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.769621 2017] [:error] [pid 24210] [client 95.68.252.232:51629] PHP Warning: PDO::query(): Error reading result set's header in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.769851 2017] [:error] [pid 24061] [client 95.68.252.232:51631] PHP Warning: PDO::query(): MySQL server has gone away in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.769893 2017] [:error] [pid 24061] [client 95.68.252.232:51631] PHP Warning: PDO::query(): Error reading result set's header in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.770057 2017] [:error] [pid 24325] [client 95.68.252.232:51621] PHP Warning: PDO::query(): MySQL server has gone away in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.770107 2017] [:error] [pid 24325] [client 95.68.252.232:51621] PHP Warning: PDO::query(): Error reading result set's header in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.770282 2017] [:error] [pid 24338] [client 95.68.252.232:51653] PHP Warning: PDO::query(): MySQL server has gone away in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.770320 2017] [:error] [pid 24338] [client 95.68.252.232:51653] PHP Warning: PDO::query(): Error reading result set's header in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.770725 2017] [:error] [pid 24342] [client 95.68.252.232:51655] PHP Warning: PDO::query(): MySQL server has gone away in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.770765 2017] [:error] [pid 24342] [client 95.68.252.232:51655] PHP Warning: PDO::query(): Error reading result set's header in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.770837 2017] [:error] [pid 24336] [client 95.68.252.232:51651] PHP Warning: PDO::query(): MySQL server has gone away in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.770874 2017] [:error] [pid 24336] [client 95.68.252.232:51651] PHP Warning: PDO::query(): Error reading result set's header in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.771280 2017] [:error] [pid 23839] [client 95.68.252.232:51617] PHP Warning: PDO::query(): MySQL server has gone away in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.771323 2017] [:error] [pid 23839] [client 95.68.252.232:51617] PHP Warning: PDO::query(): Error reading result set's header in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.770448 2017] [:error] [pid 24191] [client 95.68.252.232:51636] PHP Warning: PDO::query(): MySQL server has gone away in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:39.771441 2017] [:error] [pid 24191] [client 95.68.252.232:51636] PHP Warning: PDO::query(): Error reading result set's header in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:40.486450 2017] [:error] [pid 24345] [client 95.68.252.232:51659] PHP Warning: Error while sending QUERY packet. PID=24345 in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname [Thu Sep 07 08:09:41.188990 2017] [:error] [pid 23253] [client 95.68.252.232:51615] PHP Warning: Error while sending QUERY packet. PID=23253 in /var/www/domains/domainname.ru/classes/db/DbPDO.php on line 134, referer: https://www.domainname.ru/73-categoryname
  14. Hi.After update from 1.6.1.2 to 1.6.1.16 some strange warnings starts appears Only on some ip How to fix them?manually delete clear cache folders ? Please help.Thanks [Sun Aug 20 14:06:52.212376 2017] [:error] [pid 27737] [client 192.151.158.146:51974] PHP Warning: scandir(/var/www/domains/domainname.ru/themes/default-bootstrap/cache/ie9): failed to open dir: No such file or directory in /var/www/domains/domainname.ru/classes/Media.php on line 628 [Sun Aug 20 14:06:52.212458 2017] [:error] [pid 27737] [client 192.151.158.146:51974] PHP Warning: scandir(): (errno 2): No such file or directory in /var/www/domains/domainname.ru/classes/Media.php on line 628 [Sun Aug 20 14:06:52.212473 2017] [:error] [pid 27737] [client 192.151.158.146:51974] PHP Warning: array_diff(): Argument #1 is not an array in /var/www/domains/domainname.ru/classes/Media.php on line 628 [Sun Aug 20 14:06:52.212480 2017] [:error] [pid 27737] [client 192.151.158.146:51974] PHP Warning: Invalid argument supplied for foreach() in /var/www/domains/domainname.ru/classes/Media.php on line 628 [Sun Aug 20 14:06:52.228690 2017] [:error] [pid 27737] [client 192.151.158.146:51974] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/domains/domainname.ru/cache/smarty/compile/11/b3/e4/11b3e41194d45743198bd5ee23976134dd28269d.file.header.tpl.php on line 107 Looks like all new visitors generate those warnings, but my visits for example did not [Sun Aug 20 17:23:36.104948 2017] [:error] [pid 28539] [client 91.204.252.230:45680] PHP Warning: scandir(/var/www/domains/domainname.ru/themes/default-bootstrap/cache/ie9): failed to open dir: No such file or directory in /var/www/domains/domainname.ru/classes/Media.php on line 628, referer: http://domainname.ru/fresco/72-tumba-fresco-80-10612.html [Sun Aug 20 17:23:36.105010 2017] [:error] [pid 28539] [client 91.204.252.230:45680] PHP Warning: scandir(): (errno 2): No such file or directory in /var/www/domains/domainname.ru/classes/Media.php on line 628, referer: http://domainname.ru/fresco/72-tumba-fresco-80-10612.html [Sun Aug 20 17:23:36.105027 2017] [:error] [pid 28539] [client 91.204.252.230:45680] PHP Warning: array_diff(): Argument #1 is not an array in /var/www/domains/domainname.ru/classes/Media.php on line 628, referer: http://domainname.ru/fresco/72-tumba-fresco-80-10612.html [Sun Aug 20 17:23:36.105032 2017] [:error] [pid 28539] [client 91.204.252.230:45680] PHP Warning: Invalid argument supplied for foreach() in /var/www/domains/domainname.ru/classes/Media.php on line 628, referer: http://domainname.ru/fresco/72-tumba-fresco-80-10612.html [Sun Aug 20 17:23:36.123627 2017] [:error] [pid 28539] [client 91.204.252.230:45680] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/domains/domainname.ru/cache/smarty/compile/11/b3/e4/11b3e41194d45743198bd5ee23976134dd28269d.file.header.tpl.php on line 107, referer: http://domainname.ru/fresco/72-tumba-fresco-80-10612.html
  15. Creating another product.tpl to those products like product1.tpl will work?or this will require editing controllers Thx for answers btw
×
×
  • Create New...