Incorrect key file for table '/tmp/#sql_a4d_0.MYI'; try to repair it
SELECT DISTINCT od.product_id, pl.name, pl.description_short, pl.link_rewrite, p.reference, i.id_image, product_shop.show_price,
cl.link_rewrite category, p.ean13, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity
FROM ps_order_detail od
LEFT JOIN ps_product p ON (p.id_product = od.product_id)
INNER JOIN ps_product_shop product_shop
ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)LEFT JOIN `ps_product_attribute` pa
ON (p.`id_product` = pa.`id_product`)
LEFT JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1 AND product_attribute_shop.`default_on` = 1)
LEFT JOIN ps_stock_available stock
ON (stock.id_product = p.id_product AND stock.id_product_attribute = IFNULL(`product_attribute_shop`.id_product_attribute, 0) AND stock.id_shop = 1 AND stock.id_shop_group = 0 )
LEFT JOIN ps_product_lang pl ON (pl.id_product = od.product_id AND pl.id_shop = 1 )
LEFT JOIN ps_category_lang cl ON (cl.id_category = product_shop.id_category_default AND cl.id_shop = 1 )
LEFT JOIN ps_image i ON (i.id_product = od.product_id)
LEFT JOIN `ps_category_product` cp ON (cp.`id_category` = product_shop.id_category_default
AND cp.id_product = product_shop.id_product)
LEFT JOIN `ps_category_group` cg ON (cp.`id_category` = cg.`id_category`)
WHERE od.id_order IN (1085,1086,1087,1088,1093,1094,1103,1107,1108,1109,1110,1117,1122,1124,1129,1132,1133,1134,1138,1139,1140,1142,1144,1147,1148,1157,1169,1171,1173,1184,1190,1199,1204,1214,1238,1241,1244,1247,1251,1268,1273,1294,1295,1307,1400,1403,1404,1406,1412,1450,1453,1476,1492,1530,1545,1546,1555,1573,1615,1635,1670,1671,1712,1736,1739,1747,1762,1772,1782,1857,1878,1907,1940,1944,2040,2056,2097,2151,2185,2227,2248,2270,2284,2324,2348,2354,2570,2651,2751,2769,2778,2818,2827,2871,2913,3049,3270,3334,3385,3575,3701,3702,3750,3880,3887,3933,3945,4310,4328,4445,4453,4516,4678,4755,4776,4799,4857,4896,4928,5003,5037,5123)
AND pl.id_lang = 1
AND cl.id_lang = 1
AND od.product_id NOT IN (4480)
AND i.cover = 1
AND product_shop.active = 1
AND cg.`id_group` =1
ORDER BY RAND()
LIMIT 10
at line 791 in file classes/db/Db.php
786. if ($webservice_call && $errno) {
787. $dbg = debug_backtrace();
788. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
790. if ($sql) {
791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
792. }
793.
794. throw new PrestaShopDatabaseException($this->getMsgError());
795. }
796. }
420. $this->result = $this->_query($sql);
421. }
422. }
423.
424. if (_PS_DEBUG_SQL_) {
425. $this->displayError($sql);
426. }
427.
428. return $this->result;
429. }
430.
Argument [0] SELECT DISTINCT od.product_id, pl.name, pl.description_short, pl.link_rewrite, p.reference, i.id_image, product_shop.show_price, cl.link_rewrite category, p.ean13, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity FROM ps_order_detail od LEFT JOIN ps_product p ON (p.id_product = od.product_id) INNER JOIN ps_product_shop product_shop ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)LEFT JOIN `ps_product_attribute` pa ON (p.`id_product` = pa.`id_product`) LEFT JOIN ps_product_attribute_shop product_attribute_shop ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1 AND product_attribute_shop.`default_on` = 1) LEFT JOIN ps_stock_available stock ON (stock.id_product = p.id_product AND stock.id_product_attribute = IFNULL(`product_attribute_shop`.id_product_attribute, 0) AND stock.id_shop = 1 AND stock.id_shop_group = 0 ) LEFT JOIN ps_product_lang pl ON (pl.id_product = od.product_id AND pl.id_shop = 1 ) LEFT JOIN ps_category_lang cl ON (cl.id_category = product_shop.id_category_default AND cl.id_shop = 1 ) LEFT JOIN ps_image i ON (i.id_product = od.product_id) LEFT JOIN `ps_category_product` cp ON (cp.`id_category` = product_shop.id_category_default AND cp.id_product = product_shop.id_product) LEFT JOIN `ps_category_group` cg ON (cp.`id_category` = cg.`id_category`) WHERE od.id_order IN (1085,1086,1087,1088,1093,1094,1103,1107,1108,1109,1110,1117,1122,1124,1129,1132,1133,1134,1138,1139,1140,1142,1144,1147,1148,1157,1169,1171,1173,1184,1190,1199,1204,1214,1238,1241,1244,1247,1251,1268,1273,1294,1295,1307,1400,1403,1404,1406,1412,1450,1453,1476,1492,1530,1545,1546,1555,1573,1615,1635,1670,1671,1712,1736,1739,1747,1762,1772,1782,1857,1878,1907,1940,1944,2040,2056,2097,2151,2185,2227,2248,2270,2284,2324,2348,2354,2570,2651,2751,2769,2778,2818,2827,2871,2913,3049,3270,3334,3385,3575,3701,3702,3750,3880,3887,3933,3945,4310,4328,4445,4453,4516,4678,4755,4776,4799,4857,4896,4928,5003,5037,5123) AND pl.id_lang = 1 AND cl.id_lang = 1 AND od.product_id NOT IN (4480) AND i.cover = 1 AND product_shop.active = 1 AND cg.`id_group` =1 ORDER BY RAND() LIMIT 10
638. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
639. }
640. return $this->execute($sql, $use_cache);
641. }
642.
643. $this->result = $this->query($sql);
644.
645. if (!$this->result) {
646. $result = false;
647. } else {
648. if (!$array) {
Argument [0] SELECT DISTINCT od.product_id, pl.name, pl.description_short, pl.link_rewrite, p.reference, i.id_image, product_shop.show_price, cl.link_rewrite category, p.ean13, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity FROM ps_order_detail od LEFT JOIN ps_product p ON (p.id_product = od.product_id) INNER JOIN ps_product_shop product_shop ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)LEFT JOIN `ps_product_attribute` pa ON (p.`id_product` = pa.`id_product`) LEFT JOIN ps_product_attribute_shop product_attribute_shop ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1 AND product_attribute_shop.`default_on` = 1) LEFT JOIN ps_stock_available stock ON (stock.id_product = p.id_product AND stock.id_product_attribute = IFNULL(`product_attribute_shop`.id_product_attribute, 0) AND stock.id_shop = 1 AND stock.id_shop_group = 0 ) LEFT JOIN ps_product_lang pl ON (pl.id_product = od.product_id AND pl.id_shop = 1 ) LEFT JOIN ps_category_lang cl ON (cl.id_category = product_shop.id_category_default AND cl.id_shop = 1 ) LEFT JOIN ps_image i ON (i.id_product = od.product_id) LEFT JOIN `ps_category_product` cp ON (cp.`id_category` = product_shop.id_category_default AND cp.id_product = product_shop.id_product) LEFT JOIN `ps_category_group` cg ON (cp.`id_category` = cg.`id_category`) WHERE od.id_order IN (1085,1086,1087,1088,1093,1094,1103,1107,1108,1109,1110,1117,1122,1124,1129,1132,1133,1134,1138,1139,1140,1142,1144,1147,1148,1157,1169,1171,1173,1184,1190,1199,1204,1214,1238,1241,1244,1247,1251,1268,1273,1294,1295,1307,1400,1403,1404,1406,1412,1450,1453,1476,1492,1530,1545,1546,1555,1573,1615,1635,1670,1671,1712,1736,1739,1747,1762,1772,1782,1857,1878,1907,1940,1944,2040,2056,2097,2151,2185,2227,2248,2270,2284,2324,2348,2354,2570,2651,2751,2769,2778,2818,2827,2871,2913,3049,3270,3334,3385,3575,3701,3702,3750,3880,3887,3933,3945,4310,4328,4445,4453,4516,4678,4755,4776,4799,4857,4896,4928,5003,5037,5123) AND pl.id_lang = 1 AND cl.id_lang = 1 AND od.product_id NOT IN (4480) AND i.cover = 1 AND product_shop.active = 1 AND cg.`id_group` =1 ORDER BY RAND() LIMIT 10
174. AND od.product_id NOT IN ('.$list_product_ids.')
175. AND i.cover = 1
176. AND product_shop.active = 1
177. '.(Group::isFeatureActive() ? $sql_groups_where : '').'
178. ORDER BY RAND()
179. LIMIT '.(int)Configuration::get('CROSSSELLING_NBR'));
180.
181. $tax_calc = Product::getTaxCalculationMethod();
182.
183. foreach ($order_products as &$order_product) {
184. $order_product['id_product'] = (int)$order_product['product_id'];
Argument [0] SELECT DISTINCT od.product_id, pl.name, pl.description_short, pl.link_rewrite, p.reference, i.id_image, product_shop.show_price, cl.link_rewrite category, p.ean13, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity FROM ps_order_detail od LEFT JOIN ps_product p ON (p.id_product = od.product_id) INNER JOIN ps_product_shop product_shop ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)LEFT JOIN `ps_product_attribute` pa ON (p.`id_product` = pa.`id_product`) LEFT JOIN ps_product_attribute_shop product_attribute_shop ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1 AND product_attribute_shop.`default_on` = 1) LEFT JOIN ps_stock_available stock ON (stock.id_product = p.id_product AND stock.id_product_attribute = IFNULL(`product_attribute_shop`.id_product_attribute, 0) AND stock.id_shop = 1 AND stock.id_shop_group = 0 ) LEFT JOIN ps_product_lang pl ON (pl.id_product = od.product_id AND pl.id_shop = 1 ) LEFT JOIN ps_category_lang cl ON (cl.id_category = product_shop.id_category_default AND cl.id_shop = 1 ) LEFT JOIN ps_image i ON (i.id_product = od.product_id) LEFT JOIN `ps_category_product` cp ON (cp.`id_category` = product_shop.id_category_default AND cp.id_product = product_shop.id_product) LEFT JOIN `ps_category_group` cg ON (cp.`id_category` = cg.`id_category`) WHERE od.id_order IN (1085,1086,1087,1088,1093,1094,1103,1107,1108,1109,1110,1117,1122,1124,1129,1132,1133,1134,1138,1139,1140,1142,1144,1147,1148,1157,1169,1171,1173,1184,1190,1199,1204,1214,1238,1241,1244,1247,1251,1268,1273,1294,1295,1307,1400,1403,1404,1406,1412,1450,1453,1476,1492,1530,1545,1546,1555,1573,1615,1635,1670,1671,1712,1736,1739,1747,1762,1772,1782,1857,1878,1907,1940,1944,2040,2056,2097,2151,2185,2227,2248,2270,2284,2324,2348,2354,2570,2651,2751,2769,2778,2818,2827,2871,2913,3049,3270,3334,3385,3575,3701,3702,3750,3880,3887,3933,3945,4310,4328,4445,4453,4516,4678,4755,4776,4799,4857,4896,4928,5003,5037,5123) AND pl.id_lang = 1 AND cl.id_lang = 1 AND od.product_id NOT IN (4480) AND i.cover = 1 AND product_shop.active = 1 AND cg.`id_group` =1 ORDER BY RAND() LIMIT 10
251. public function hookProductFooter($params)
252. {
253. $cache_id = 'crossselling|productfooter|'.(int)$params['product']->id;
254.
255. if (!$this->isCached('crossselling.tpl', $this->getCacheId($cache_id))) {
256. $final_products_list = $this->getOrderProducts(array($params['product']->id));
257.
258. if (count($final_products_list) > 0) {
259. $this->smarty->assign(
260. array(
261. 'orderProducts' => $final_products_list,
Argument [0] Array ( [0] => 4480 )
586. }
587. }
588.
589. // Immediately return the result if we do not log performances
590. if (!Module::$_log_modules_perfs) {
591. return $module->{$method}($params);
592. }
593.
594. // Store time and memory before and after hook call and save the result in the database
595. $time_start = microtime(true);
596. $memory_start = memory_get_usage(true);
Argument [0]
543.
544. // Call hook method
545. if ($hook_callable) {
546. $display = Hook::coreCallHook($moduleInstance, 'hook'.$hook_name, $hook_args);
547. } elseif ($hook_retro_callable) {
548. $display = Hook::coreCallHook($moduleInstance, 'hook'.$retro_hook_name, $hook_args);
549. }
550.
551. // Live edit
552. if (!$array_return && $array['live_edit'] && Tools::isSubmit('live_edit') && Tools::getValue('ad')
553. && Tools::getValue('liveToken') == Tools::getAdminToken('AdminModulesPositions'
Argument [0] Argument [1] hookproductfooter Argument [2]
609. 'id_category_parent' => (int)$this->category->id_parent,
610. 'return_category_name' => Tools::safeOutput($this->category->getFieldByLang('name')),
611. 'categories' => Category::getHomeCategories($this->context->language->id, true, (int)$this->context->shop->id)
612. ));
613. }
614. $this->context->smarty->assign(array('HOOK_PRODUCT_FOOTER' => Hook::exec('displayFooterProduct', array('product' => $this->product, 'category' => $this->category))));
615. }
616.
617. protected function transformDescriptionWithImg($desc)
618. {
619. $reg = '/\[img\-([0-9]+)\-(left|right)\-([a-zA-Z0-9-_]+)\]/';
Argument [0] displayFooterProduct Argument [1] Array ( [product] => Product Object ( [tax_name] => deprecated [tax_rate] => 0 [id_manufacturer] => 11 [id_supplier] => 0 [id_category_default] => 15 [id_shop_default] => 1 [manufacturer_name] => Francia [supplier_name] => [name] => Francia - 2€ Comm. 2020 FDC 50° Morte De Gaulle [description] => Paese della moneta: Francia Tipo di moneta: 2 Euro commemorativo - 50° Anniversario della morte di Charles De Gaulle 80° Anniversario dell' Appello del 18 giugno Anno della moneta: 2020 Versione della moneta: FDC (Fior di conio) [description_short] => Tipo: 2 Euro commemorativo - 50° Anniversario morte Charles De Gaulle 80° Anniversario appello 18 giugno Paese: Francia Anno: 2020 Versione: Fior di conio [quantity] => 3 [minimal_quantity] => 1 [available_now] => [available_later] => [price] => 4 [specificPrice] => Array ( [id_specific_price] => 228150 [id_specific_price_rule] => 1 [id_cart] => 0 [id_product] => 4480 [id_shop] => 1 [id_shop_group] => 0 [id_currency] => 0 [id_country] => 0 [id_group] => 0 [id_customer] => 0 [id_product_attribute] => 0 [price] => -1.000000 [from_quantity] => 1 [reduction] => 0.000000 [reduction_tax] => 0 [reduction_type] => amount [from] => 0000-00-00 00:00:00 [to] => 0000-00-00 00:00:00 [score] => 48 ) [additional_shipping_cost] => 0.00 [wholesale_price] => 0.000000 [on_sale] => 0 [online_only] => 0 [unity] => [unit_price] => 0 [unit_price_ratio] => 0.000000 [ecotax] => 0.000000 [reference] => CMFRA20FD2EURMDG [supplier_reference] => [location] => [width] => 0.000000 [height] => 0.000000 [depth] => 0.000000 [weight] => 0.020000 [ean13] => [upc] => [link_rewrite] => francia-2-euro-comm-2020-fdc-100-morte-de-gaulle [meta_description] => Acquista subito 2 Euro comm. 2020 Francia 50mo ann. morte De Gaulle.Sfoglia il catalogo e trova le monete che mancano per completare la tua Euro-collezione [meta_keywords] => [meta_title] => Francia 2 Euro commemorativo 2020 FDC 50mo ann. morte De Gaulle [quantity_discount] => 0 [customizable] => 0 [new] => [uploadable_files] => 0 [text_fields] => 0 [active] => 1 [redirect_type] => 404 [id_product_redirected] => 0 [available_for_order] => 1 [available_date] => 0000-00-00 [condition] => new [show_price] => 1 [indexed] => 1 [visibility] => both [date_add] => 2020-01-28 10:59:26 [date_upd] => 2024-03-21 10:00:05 [tags] => [base_price] => 4.000000 [id_tax_rules_group] => 1 [id_color_default] => 0 [advanced_stock_management] => 0 [out_of_stock] => 2 [depends_on_stock] => [isFullyLoaded] => 1 [cache_is_pack] => 0 [cache_has_attachments] => 0 [is_virtual] => 0 [id_pack_product_attribute] => [cache_default_attribute] => 0 [category] => 2-euro-commemorativi [pack_stock_type] => 3 [webserviceParameters:protected] => Array ( [objectMethods] => Array ( [add] => addWs [update] => updateWs ) [objectNodeNames] => products [fields] => Array ( [id_manufacturer] => Array ( [xlink_resource] => manufacturers ) [id_supplier] => Array ( [xlink_resource] => suppliers ) [id_category_default] => Array ( [xlink_resource] => categories ) [new] => Array ( ) [cache_default_attribute] => Array ( ) [id_default_image] => Array ( [getter] => getCoverWs [setter] => setCoverWs [xlink_resource] => Array ( [resourceName] => images [subResourceName] => products ) ) [id_default_combination] => Array ( [getter] => getWsDefaultCombination [setter] => setWsDefaultCombination [xlink_resource] => Array ( [resourceName] => combinations ) ) [id_tax_rules_group] => Array ( [xlink_resource] => Array ( [resourceName] => tax_rule_groups ) ) [position_in_category] => Array ( [getter] => getWsPositionInCategory [setter] => setWsPositionInCategory ) [manufacturer_name] => Array ( [getter] => getWsManufacturerName [setter] => ) [quantity] => Array ( [getter] => [setter] => ) [type] => Array ( [getter] => getWsType [setter] => setWsType ) ) [associations] => Array ( [categories] => Array ( [resource] => category [fields] => Array ( [id] => Array ( [required] => 1 ) ) ) [images] => Array ( [resource] => image [fields] => Array ( [id] => Array ( ) ) ) [combinations] => Array ( [resource] => combination [fields] => Array ( [id] => Array ( [required] => 1 ) ) ) [product_option_values] => Array ( [resource] => product_option_value [fields] => Array ( [id] => Array ( [required] => 1 ) ) ) [product_features] => Array ( [resource] => product_feature [fields] => Array ( [id] => Array ( [required] => 1 ) [id_feature_value] => Array ( [required] => 1 [xlink_resource] => product_feature_values ) ) ) [tags] => Array ( [resource] => tag [fields] => Array ( [id] => Array ( [required] => 1 ) ) ) [stock_availables] => Array ( [resource] => stock_available [fields] => Array ( [id] => Array ( [required] => 1 ) [id_product_attribute] => Array ( [required] => 1 ) ) [setter] => ) [accessories] => Array ( [resource] => product [api] => products [fields] => Array ( [id] => Array ( [required] => 1 [xlink_resource] => product ) ) ) [product_bundle] => Array ( [resource] => product [api] => products [fields] => Array ( [id] => Array ( [required] => 1 ) [quantity] => Array ( ) ) ) ) ) [id] => 4480 [id_lang:protected] => 1 [id_shop:protected] => 1 [id_shop_list] => [get_shop_from_context:protected] => [table:protected] => product [identifier:protected] => id_product [fieldsRequired:protected] => Array ( [0] => price ) [fieldsSize:protected] => Array ( [reference] => 32 [supplier_reference] => 32 [location] => 64 [ean13] => 13 [upc] => 12 ) [fieldsValidate:protected] => Array ( [id_shop_default] => isUnsignedId [id_manufacturer] => isUnsignedId [id_supplier] => isUnsignedId [reference] => isReference [supplier_reference] => isReference [location] => isReference [width] => isUnsignedFloat [height] => isUnsignedFloat [depth] => isUnsignedFloat [weight] => isUnsignedFloat [quantity_discount] => isBool [ean13] => isEan13 [upc] => isUpc [cache_is_pack] => isBool [cache_has_attachments] => isBool [is_virtual] => isBool [id_category_default] => isUnsignedId [id_tax_rules_group] => isUnsignedId [on_sale] => isBool [online_only] => isBool [ecotax] => isPrice [minimal_quantity] => isUnsignedInt [price] => isPrice [wholesale_price] => isPrice [unity] => isString [additional_shipping_cost] => isPrice [customizable] => isUnsignedInt [text_fields] => isUnsignedInt [uploadable_files] => isUnsignedInt [active] => isBool [redirect_type] => isString [id_product_redirected] => isUnsignedId [available_for_order] => isBool [available_date] => isDateFormat [condition] => isGenericName [show_price] => isBool [indexed] => isBool [visibility] => isProductVisibility [advanced_stock_management] => isBool [date_add] => isDate [date_upd] => isDate [pack_stock_type] => isUnsignedInt ) [fieldsRequiredLang:protected] => Array ( [0] => link_rewrite [1] => name ) [fieldsSizeLang:protected] => Array ( [meta_description] => 255 [meta_keywords] => 255 [meta_title] => 128 [link_rewrite] => 128 [name] => 128 [available_now] => 255 [available_later] => 255 ) [fieldsValidateLang:protected] => Array ( [meta_description] => isGenericName [meta_keywords] => isGenericName [meta_title] => isGenericName [link_rewrite] => isLinkRewrite [name] => isCatalogName [description] => isCleanHtml [description_short] => isCleanHtml [available_now] => isGenericName [available_later] => IsGenericName ) [tables:protected] => Array ( ) [image_dir:protected] => [image_format:protected] => jpg [def:protected] => Array ( [table] => product [primary] => id_product [multilang] => 1 [multilang_shop] => 1 [fields] => Array ( [id_shop_default] => Array ( [type] => 1 [validate] => isUnsignedId ) [id_manufacturer] => Array ( [type] => 1 [validate] => isUnsignedId ) [id_supplier] => Array ( [type] => 1 [validate] => isUnsignedId ) [reference] => Array ( [type] => 3 [validate] => isReference [size] => 32 ) [supplier_reference] => Array ( [type] => 3 [validate] => isReference [size] => 32 ) [location] => Array ( [type] => 3 [validate] => isReference [size] => 64 ) [width] => Array ( [type] => 4 [validate] => isUnsignedFloat ) [height] => Array ( [type] => 4 [validate] => isUnsignedFloat ) [depth] => Array ( [type] => 4 [validate] => isUnsignedFloat ) [weight] => Array ( [type] => 4 [validate] => isUnsignedFloat ) [quantity_discount] => Array ( [type] => 2 [validate] => isBool ) [ean13] => Array ( [type] => 3 [validate] => isEan13 [size] => 13 ) [upc] => Array ( [type] => 3 [validate] => isUpc [size] => 12 ) [cache_is_pack] => Array ( [type] => 2 [validate] => isBool ) [cache_has_attachments] => Array ( [type] => 2 [validate] => isBool ) [is_virtual] => Array ( [type] => 2 [validate] => isBool ) [id_category_default] => Array ( [type] => 1 [shop] => 1 [validate] => isUnsignedId ) [id_tax_rules_group] => Array ( [type] => 1 [shop] => 1 [validate] => isUnsignedId ) [on_sale] => Array ( [type] => 2 [shop] => 1 [validate] => isBool ) [online_only] => Array ( [type] => 2 [shop] => 1 [validate] => isBool ) [ecotax] => Array ( [type] => 4 [shop] => 1 [validate] => isPrice ) [minimal_quantity] => Array ( [type] => 1 [shop] => 1 [validate] => isUnsignedInt ) [price] => Array ( [type] => 4 [shop] => 1 [validate] => isPrice [required] => 1 ) [wholesale_price] => Array ( [type] => 4 [shop] => 1 [validate] => isPrice ) [unity] => Array ( [type] => 3 [shop] => 1 [validate] => isString ) [unit_price_ratio] => Array ( [type] => 4 [shop] => 1 ) [additional_shipping_cost] => Array ( [type] => 4 [shop] => 1 [validate] => isPrice ) [customizable] => Array ( [type] => 1 [shop] => 1 [validate] => isUnsignedInt ) [text_fields] => Array ( [type] => 1 [shop] => 1 [validate] => isUnsignedInt ) [uploadable_files] => Array ( [type] => 1 [shop] => 1 [validate] => isUnsignedInt ) [active] => Array ( [type] => 2 [shop] => 1 [validate] => isBool ) [redirect_type] => Array ( [type] => 3 [shop] => 1 [validate] => isString ) [id_product_redirected] => Array ( [type] => 1 [shop] => 1 [validate] => isUnsignedId ) [available_for_order] => Array ( [type] => 2 [shop] => 1 [validate] => isBool ) [available_date] => Array ( [type] => 5 [shop] => 1 [validate] => isDateFormat ) [condition] => Array ( [type] => 3 [shop] => 1 [validate] => isGenericName [values] => Array ( [0] => new [1] => used [2] => refurbished ) [default] => new ) [show_price] => Array ( [type] => 2 [shop] => 1 [validate] => isBool ) [indexed] => Array ( [type] => 2 [shop] => 1 [validate] => isBool ) [visibility] => Array ( [type] => 3 [shop] => 1 [validate] => isProductVisibility [values] => Array ( [0] => both [1] => catalog [2] => search [3] => none ) [default] => both ) [cache_default_attribute] => Array ( [type] => 1 [shop] => 1 ) [advanced_stock_management] => Array ( [type] => 2 [shop] => 1 [validate] => isBool ) [date_add] => Array ( [type] => 5 [shop] => 1 [validate] => isDate ) [date_upd] => Array ( [type] => 5 [shop] => 1 [validate] => isDate ) [pack_stock_type] => Array ( [type] => 1 [shop] => 1 [validate] => isUnsignedInt ) [meta_description] => Array ( [type] => 3 [lang] => 1 [validate] => isGenericName [size] => 255 ) [meta_keywords] => Array ( [type] => 3 [lang] => 1 [validate] => isGenericName [size] => 255 ) [meta_title] => Array ( [type] => 3 [lang] => 1 [validate] => isGenericName [size] => 128 ) [link_rewrite] => Array ( [type] => 3 [lang] => 1 [validate] => isLinkRewrite [required] => 1 [size] => 128 [ws_modifier] => Array ( [http_method] => 2 [modifier] => modifierWsLinkRewrite ) ) [name] => Array ( [type] => 3 [lang] => 1 [validate] => isCatalogName [required] => 1 [size] => 128 ) [description] => Array ( [type] => 6 [lang] => 1 [validate] => isCleanHtml ) [description_short] => Array ( [type] => 6 [lang] => 1 [validate] => isCleanHtml ) [available_now] => Array ( [type] => 3 [lang] => 1 [validate] => isGenericName [size] => 255 ) [available_later] => Array ( [type] => 3 [lang] => 1 [validate] => IsGenericName [size] => 255 ) ) [associations] => Array ( [manufacturer] => Array ( [type] => 1 ) [supplier] => Array ( [type] => 1 ) [default_category] => Array ( [type] => 1 [field] => id_category_default [object] => Category ) [tax_rules_group] => Array ( [type] => 1 ) [categories] => Array ( [type] => 2 [field] => id_category [object] => Category [association] => category_product ) [stock_availables] => Array ( [type] => 2 [field] => id_stock_available [object] => StockAvailable [association] => stock_availables ) [l] => Array ( [type] => 2 [field] => id_product [foreign_field] => id_product ) ) [classname] => Product ) [update_fields:protected] => [force_id] => [customization_required] => ) [category] => Category Object ( [id] => 15 [id_category] => 15 [name] => 2 Euro Commemorativi [active] => 1 [position] => 0 [description] => [id_parent] => 14 [id_category_default] => [level_depth] => 3 [nleft] => 4 [nright] => 5 [link_rewrite] => 2-euro-commemorativi [meta_title] => 2 Euro Commemorativi [meta_keywords] => [meta_description] => 2 Euro Commemorativi [date_add] => 2017-02-20 14:46:40 [date_upd] => 2017-11-16 16:49:42 [is_root_category] => 0 [id_shop_default] => 1 [groupBox] => [id_image] => 15 [webserviceParameters:protected] => Array ( [objectsNodeName] => categories [hidden_fields] => Array ( [0] => nleft [1] => nright [2] => groupBox ) [fields] => Array ( [id_parent] => Array ( [xlink_resource] => categories ) [level_depth] => Array ( [setter] => ) [nb_products_recursive] => Array ( [getter] => getWsNbProductsRecursive [setter] => ) ) [associations] => Array ( [categories] => Array ( [getter] => getChildrenWs [resource] => category ) [products] => Array ( [getter] => getProductsWs [resource] => product ) ) ) [id_lang:protected] => 1 [id_shop:protected] => 1 [id_shop_list] => [get_shop_from_context:protected] => 1 [table:protected] => category [identifier:protected] => id_category [fieldsRequired:protected] => Array ( [0] => active ) [fieldsSize:protected] => Array ( ) [fieldsValidate:protected] => Array ( [nleft] => isUnsignedInt [nright] => isUnsignedInt [level_depth] => isUnsignedInt [active] => isBool [id_parent] => isUnsignedInt [id_shop_default] => isUnsignedId [is_root_category] => isBool [date_add] => isDate [date_upd] => isDate ) [fieldsRequiredLang:protected] => Array ( [0] => name [1] => link_rewrite ) [fieldsSizeLang:protected] => Array ( [name] => 128 [link_rewrite] => 128 [meta_title] => 128 [meta_description] => 255 [meta_keywords] => 255 ) [fieldsValidateLang:protected] => Array ( [name] => isCatalogName [link_rewrite] => isLinkRewrite [description] => isCleanHtml [meta_title] => isGenericName [meta_description] => isGenericName [meta_keywords] => isGenericName ) [tables:protected] => Array ( ) [image_dir:protected] => /var/www/vhosts/strike2001.com/shop.strike2001.com/img/c/ [image_format:protected] => jpg [def:protected] => Array ( [table] => category [primary] => id_category [multilang] => 1 [multilang_shop] => 1 [fields] => Array ( [nleft] => Array ( [type] => 1 [validate] => isUnsignedInt ) [nright] => Array ( [type] => 1 [validate] => isUnsignedInt ) [level_depth] => Array ( [type] => 1 [validate] => isUnsignedInt ) [active] => Array ( [type] => 2 [validate] => isBool [required] => 1 ) [id_parent] => Array ( [type] => 1 [validate] => isUnsignedInt ) [id_shop_default] => Array ( [type] => 1 [validate] => isUnsignedId ) [is_root_category] => Array ( [type] => 2 [validate] => isBool ) [position] => Array ( [type] => 1 ) [date_add] => Array ( [type] => 5 [validate] => isDate ) [date_upd] => Array ( [type] => 5 [validate] => isDate ) [name] => Array ( [type] => 3 [lang] => 1 [validate] => isCatalogName [required] => 1 [size] => 128 ) [link_rewrite] => Array ( [type] => 3 [lang] => 1 [validate] => isLinkRewrite [required] => 1 [size] => 128 ) [description] => Array ( [type] => 6 [lang] => 1 [validate] => isCleanHtml ) [meta_title] => Array ( [type] => 3 [lang] => 1 [validate] => isGenericName [size] => 128 ) [meta_description] => Array ( [type] => 3 [lang] => 1 [validate] => isGenericName [size] => 255 ) [meta_keywords] => Array ( [type] => 3 [lang] => 1 [validate] => isGenericName [size] => 255 ) ) [classname] => Category [associations] => Array ( [l] => Array ( [type] => 2 [field] => id_category [foreign_field] => id_category ) ) ) [update_fields:protected] => [force_id] => ) )
225. }
226. }
227. }
228.
229. // Assign template vars related to the category + execute hooks related to the category
230. $this->assignCategory();
231. // Assign template vars related to the price and tax
232. $this->assignPriceAndTax();
233.
234. // Assign template vars related to the images
235. $this->assignImages();
184. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
185. $this->initHeader();
186. }
187.
188. if ($this->viewAccess()) {
189. $this->initContent();
190. } else {
191. $this->errors[] = Tools::displayError('Access denied.');
192. }
193.
194. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
362. if (isset($params_hook_action_dispatcher)) {
363. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
364. }
365.
366. // Running controller
367. $controller->run();
368. } catch (PrestaShopException $e) {
369. $e->displayMessage();
370. }
371. }
372.
23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24. * International Registered Trademark & Property of PrestaShop SA
25. */
26.
27. require(dirname(__FILE__).'/config/config.inc.php');
28. Dispatcher::getInstance()->dispatch();