Category Archives: ecommerce

Prestashop: Layered Navigation Block – Auto Scroll to Products

Source: https://www.prestashop.com/forums/topic/347990-layered-navigation-block-auto-scroll-to-products/ js file under “/themes/themename/js/modules/blocklayered” called “blocklayered.js” Solution 1: Replace : $.scrollTo(‘.product_list’, 400); by $.scrollTo(‘product_list’, 0); //stop the scroll or $.scrollTo(‘body’, 0); // brings to the top of the page instantly. Solution 2: //if(slideUp) //$.scrollTo(‘.product_list’, 400); //updateProductUrl();  

Posted in ecommerce, modules | Tagged | Comments Off on Prestashop: Layered Navigation Block – Auto Scroll to Products

Prestashop: remove PayPal logo from right column

Solution: https://www.prestashop.com/forums/topic/249896-solved-how-do-i-remove-the-paypal-logo-from-my-home-page/?tab=comments#comment-1241457 open the file: (paypal module directory) views/templates/hook/column.tpl and remove the content of this file And/or: https://www.prestashop.com/forums/topic/255741-solved-how-to-remove-paypal-logo/?tab=comments#comment-2010062 unhook the PayPal module from the right column on my template. This is in the Modules – Positions.

Posted in ecommerce, templates | Comments Off on Prestashop: remove PayPal logo from right column

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: 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: How to add the invoice number to the backoffice orders grid

Source: https://www.prestashop.com/forums/topic/300119-solved-how-to-add-the-invoice-number-to-the-orders-grid/?do=findComment&comment=1517949 Try to start with adding another array item to $this->fields_list add code to: /controllers/admin/AdminOrdersController.php ‘invoice_number’ => array( ‘title’ => $this->l(‘Rechnung-Nr: ‘), ‘width’ => 50 ),

Posted in ecommerce | Tagged | Comments Off on Prestashop: How to add the invoice number to the backoffice orders grid

Prestashop: Add style number to product page

Using warehouse theme. When product has combinations, the SKU is shown. I wanted to also show the main product style number for easy reference. https://www.prestashop.com/forums/topic/605088-slovedhow-to-show-reference-numbers-on-product-page/?do=findComment&comment=2540332 {l s=’Style:’} {$product->reference|escape:’html’:’UTF-8′} There are 2 locations to add in ware theme product.tpl

Posted in ecommerce, templates | Tagged | Comments Off on Prestashop: Add style number to product page

Prestashop 1.6: Breadcrumb to display the category that product is currently in (not its default category)

Update 20190608: Due to SEO concern, the friendly url of product is configured to not show subcategories, i.e. domain.com/product-name-1234.html so the following solution does not work as it uses the subcategories in the friendly url as reference Source: https://www.prestashop.com/forums/topic/167513-how-to-show-the-full-breadcrumb-to-the-default-category-on-every-product-page/?do=findComment&comment=2684341 Function  … Continue reading

Posted in ecommerce | Tagged , | Comments Off on Prestashop 1.6: Breadcrumb to display the category that product is currently in (not its default category)