示例#1
0
 protected function getCacheId($name = null)
 {
     $cache_id = parent::getCacheId();
     if ($name !== null) {
         $cache_id .= '|' . $name;
     }
     if ((Tools::getValue('id_product') || Tools::getValue('id_category')) && isset($this->context->cookie->last_visited_category) && $this->context->cookie->last_visited_category) {
         $cache_id .= '|' . (int) $this->context->cookie->last_visited_category;
     }
     return $cache_id . '|' . implode('-', Customer::getGroupsStatic($this->context->customer->id));
 }
<?php

require dirname(__FILE__) . '/../../config/config.inc.php';
include_once dirname(__FILE__) . '/blockcategories.php';
$module = new BlockCategories();
echo $module->hookAjaxCall();