Remove blockcategories

This commit is contained in:
Abhishek Kumar
2022-04-26 19:59:50 +05:30
parent 76d2d0ab80
commit bba9fe1202
32 changed files with 1 additions and 1395 deletions

View File

@@ -158,7 +158,7 @@ class ProductControllerCore extends FrontController
$id_category = (int)$this->product->id_category_default;
}
$this->category = new Category((int)$id_category, (int)$this->context->cookie->id_lang);
if (isset($this->context->cookie) && isset($this->category->id_category) && !(Module::isInstalled('blockcategories') && Module::isEnabled('blockcategories'))) {
if (isset($this->context->cookie) && isset($this->category->id_category)) {
$this->context->cookie->last_visited_category = (int)$this->category->id_category;
}
}