Monthly Archives: August 2018

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

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¬† assignCategory(), preferably in override/controllers/front/ProductController.php protected function assignCategory() { // Assign category to the template if ($this->category !== false && Validate::isLoadedObject($this->category) && $this->category->inShop() && $this->category->isAssociatedToShop()) { $path = Tools::getPath($this->category->id, $this->product->name, true); $all_product_subs = Product::getProductCategoriesFull($this->product->id, $this->context->language->id); if(isset($all_product_subs) && count($all_product_subs)>0) … 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)

Prestashop: Fix pagination error on Attributes and Features in Backoffice

https://www.prestashop.com/forums/topic/554037-possible-bug-on-product-attributes-list-pagination-in-1616/ https://www.prestashop.com/forums/topic/507337-backoffice-pagination-error-in-products-attribute-section/ Hi, i fixed this by adding a short code to ‘AdminAttributesGroupsController.php’ in /controllers/admin/ public function setRedirectAfter($url) { $addUrl = ”; if(Tools::isSubmit(‘viewattribute_group’) && Tools::getValue(‘id_attribute_group’)) { $addUrl = ‘&viewattribute_group&id_attribute_group=’ . Tools::getValue(‘id_attribute_group’); } $this->redirect_after = $url . $addUrl; } Function fixes … Continue reading

Posted in troubleshoot | Tagged , | Comments Off on Prestashop: Fix pagination error on Attributes and Features in Backoffice