Tag Archives: prestashop 1.6

Google Search Console: either “offers”, “review”, or aggregaterating should be specified

Source: https://www.prestashop.com/forums/topic/956810-google-analytics-error-either-offers-review-or-aggregaterating-should-be-specified/ Edit: product.tpl around line 37, add <div data-section-id=”product” data-section-type=”product” data-enable-history-state=”true” itemscope itemtype=”https://schema.org/Product”> <meta itemprop=”name” content=”{$product->name|escape:’html’:’UTF-8′}”> <meta itemprop=”url” content=”{$link->getProductLink($product)}”> <meta itemprop=”brand” content=”{$shop_name|escape:’html’:’UTF-8′}”> <meta itemprop=”image” content=”{$link->getImageLink($product->link_rewrite, $cover.id_image, ‘large_default’)|escape:’html’:’UTF-8′}” /> <meta itemprop=”description” content=”{$product->description|strip_tags:false|strip}” /> <meta itemprop=”sku” content=”{$product->reference}” /> <meta itemprop=”itemCondition” content=”New” … Continue reading

Posted in Google Analytics | Tagged | Comments Off on Google Search Console: either “offers”, “review”, or aggregaterating should be specified

Prestashop: Full-width for CMS pages

Warehouse theme. If the display left column option is disabled in the advanced setting of the theme, the center column does not know it is supposed to be in full width. A blank space is shown on the left. Enable … Continue reading

Posted in troubleshoot | Tagged | Comments Off on Prestashop: Full-width for CMS pages

Prestashop: delete customer’s cookies

Solution: https://www.prestashop.com/forums/topic/364875-how-to-delete-cookies-customers/?tab=comments#comment-2348354 Overriding the method __construct (classes/Cookie.php) changing the commented lines override/classes/Cookie.php class Cookie extends CookieCore { public function __construct($name, $path = ”, $expire = null, $shared_urls = null, $standalone = false, $secure = false) { $this->_content = array(); $this->_standalone … Continue reading

Posted in ecommerce, troubleshoot | Tagged , | Comments Off on Prestashop: delete customer’s cookies

Prestashop: category pages noindex

Due to layered navigation block disabling robots by default… Solution: https://www.prestashop.com/forums/topic/866411-category-pages-noindex/ Hi, the problem comes from the “Layered navigation block” module. After the update to v2.2.1 something has changed. To Fix the problem for Prestashop 1.6 go to Modules and … Continue reading

Posted in modules, troubleshoot | Tagged , | Comments Off on Prestashop: category pages noindex

Prestashop: Add tags to the product list

Source: http://nemops.com/prestashop-product-list-tags/#.XPt5M7hS-Ul 1) Product.php class (use override) Insert code at the last part of public static function getProductProperties($id_lang, $row, Context $context = null) /* add product tags to product list */ $row[‘tags’] = array(); $tags = Tag::getProductTags($row[‘id_product’]); //show product tags … Continue reading

Posted in templates | Tagged , | Comments Off on Prestashop: Add tags to the product list

Prestashop: Remove View Grid/List buttons from Product Listing

Source: https://www.prestashop.com/forums/topic/337353-remove-view-gridlist-bottons/ Open themes/yourtheme/product-sort.tpl and find this code: <ul class=”display hidden-xs”>     <li class=”display-title”>{l s=’View:’}</li>     <li id=”grid”><a rel=”nofollow” href=”#” title=”{l s=’Grid’}”><i class=”icon-th-large”></i>{l s=’Grid’}</a></li>     <li id=”list”><a rel=”nofollow” href=”#” title=”{l s=’List’}”><i class=”icon-th-list”></i>{l s=’List’}</a></li> </ul> Delete it and buttons will gone.

Posted in templates | Tagged , | Comments Off on Prestashop: Remove View Grid/List buttons from Product Listing

Prestashop: fake customer registrations spam

Source: https://www.prestashop.com/forums/topic/981159-securite-spam-customer-account-solution-13-15/ within your class classes/Validate.php – either in the native code, or into an override, add this function public static function isCustomerName($name) { if (preg_match(Tools::cleanNonUnicodeSupport(‘/www|http/ui’),$name)) return false; return preg_match(Tools::cleanNonUnicodeSupport(‘/^[^0-9!\[\]<>,;?=+()@#”°{}_$%:\/\\\*\^]*$/u’), $name); } Then modify inside classes/Customer.php ‘lastname’ => array(‘type’ => … Continue reading

Posted in troubleshoot | Tagged , | Comments Off on Prestashop: fake customer registrations spam

Prestashop: Searching orders by the products they contain via mysql

Source: https://www.prestashop.com/forums/topic/437518-searching-orders-by-the-products-they-contain/?tab=comments#comment-2033625 SELECT product_id, product_attribute_id, product_name, GROUP_CONCAT(id_order SEPARATOR ‘, ‘) AS orders FROM ps_order_detail group by product_name order by product_id, product_attribute_id Can add where product_id = to the number you want to narrow down the specific product SELECT product_id, product_attribute_id, … Continue reading

Posted in database | Tagged , , | Comments Off on Prestashop: Searching orders by the products they contain via mysql

Prestashop: Warehouse theme mobile menu disable link on category parent

File edits are uploaded on: modules/iqitmegamenu/iqitmegamenu.php override/modules/iqitmegamenu/iqitmegamenu.php themes/warehouse/js/modules/iqitmegamenu/js/mlpushmenu.js 1) modules/iqitmegamenu/iqitmegamenu.php changed private function generateCategoriesMenu($categories, $depth_limit, $depth = 0) to protected function generateCategoriesMenu($categories, $depth_limit, $depth = 0) Overrides do not work on private functions. Could have just edited the whole file … Continue reading

Posted in ecommerce, modules | Tagged , | Comments Off on Prestashop: Warehouse theme mobile menu disable link on category parent

Prestashop: Fix layered navigation block doesn’t keep order position of filters

Solution: https://www.prestashop.com/forums/topic/317265-layered-navigation-block-dont-keep-order-position/?do=findComment&comment=2128180 https://github.com/musicpanda/blocklayered/commit/c53257c6cefcf5551d1f3cd51268fde658c1ad6b?diff=unified Info: It repairs one file: blocklayered_admin.js in the module /modules/blocklayered/blocklayered_admin.js If you’re using other themes look for the corresponding file to make the change e.g. warehouse theme /modules/blocklayered_mod/blocklayered_mod_admin.js look for if (typeof filters !== ‘undefined’) { filters … Continue reading

Posted in troubleshoot | Tagged , , | Comments Off on Prestashop: Fix layered navigation block doesn’t keep order position of filters