770 lines
22 KiB
PHP
770 lines
22 KiB
PHP
<?php
|
|
|
|
// //////////////// CONFIG SOUBOR ESHOPU ////////////////////////////////////
|
|
// ********************************************************************** //
|
|
// CONFIG SOUBOR JE SOUBOREM PHP //
|
|
// RADKY ZAKOMENTUJETE ZNACKAMI // NEBO # //
|
|
// NEPOUZIVEJTE JEDNODUCHE UVOZOVKY, POUZE DVOJITE //
|
|
// v pripade problemu kontaktujte autory na: eshop@wpj.cz //
|
|
// ********************************************************************** //
|
|
// //////////////////////////////////////////////////////////////////////////
|
|
|
|
$cfg['Connection']['database'] = 'phpunit_test';
|
|
|
|
$cfg['debug'] = true;
|
|
$cfg['autoload_web_root'] = false;
|
|
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI LICENCE ESHOPU
|
|
* ======================================================================
|
|
* licence ID: cislo licence / MUSI BYT UNIKATNI!!!!
|
|
* licence date: datum zalozeni teto licence
|
|
* licence dateto: datum platnosti teto licence
|
|
* version - print: tistena verze eshopu
|
|
* version - number: verze eshopu v ciselnem formatu pro cteni PHP
|
|
*/
|
|
$cfg['Program']['licence']['ID'] = 'tests_1422870539';
|
|
|
|
$cfg['Program']['version']['number'] = 220;
|
|
$cfg['Program']['version']['dotted'] = sprintf('%.1F', $cfg['Program']['version']['number'] / 10);
|
|
$cfg['Program']['version']['print'] = 'v '.$cfg['Program']['version']['dotted'];
|
|
$cfg['Program']['version']['folder'] = 'engine';
|
|
|
|
$cfg['Modules'] = [];
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI MODULU ESHOPU
|
|
* ======================================================================
|
|
* aktivni moduly.
|
|
*
|
|
* Pro zruseni modulu staci radku zakomentovat pomoci //
|
|
*/
|
|
// Zboží
|
|
$cfg['Modules']['products'] = [
|
|
'price_common' => true,
|
|
'price_buy' => true,
|
|
'weight' => true,
|
|
'sets' => true,
|
|
'note' => true,
|
|
'units' => true,
|
|
'descr_plus' => true,
|
|
];
|
|
|
|
// Prevodniky
|
|
$cfg['Modules']['convertors'] = true;
|
|
// Produktove rezervace
|
|
$cfg['Modules']['product_reservations'] = true;
|
|
|
|
// Parametry zboží
|
|
$cfg['Modules']['products_parameters'] = [
|
|
'configurations' => true,
|
|
];
|
|
|
|
// Skupiny parametrů
|
|
$cfg['Modules']['parameter_groups'] = true;
|
|
|
|
// Sekce zboží
|
|
$cfg['Modules']['products_sections'] = [
|
|
// 'elasticsearch' => true,
|
|
'custom_url' => true,
|
|
];
|
|
// Výrobci zboží
|
|
$cfg['Modules']['producers'] = true;
|
|
// Jednoduché vyhledávání
|
|
$cfg['Modules']['eshop_search'] = true;
|
|
// Editovatelné odkazy v menu
|
|
$cfg['Modules']['menulinks'] = true;
|
|
// Uživatelé eshopu
|
|
$cfg['Modules']['eshop_users'] = [
|
|
'remember_user_delivery_type' => true,
|
|
];
|
|
// WYSIWYG úprava
|
|
// $cfg['Modules']['wysiwyg'] = true;
|
|
// Objednávky
|
|
$cfg['Modules']['orders'] = [
|
|
'dic_validate' => true,
|
|
];
|
|
// Záloha databáze
|
|
$cfg['Modules']['dbbackup'] = true;
|
|
|
|
$cfg['Modules']['automation_configurator'] = true;
|
|
|
|
// Způsoby doručení zásilky
|
|
$cfg['Modules']['eshop_delivery'] = true;
|
|
// Obrázky
|
|
$cfg['Modules']['photos'] = true;
|
|
// Rozšířené vyhledávání
|
|
// $cfg['Modules']['eshop_exsearch'] = true;
|
|
// HTML stránky
|
|
$cfg['Modules']['html_pages'] = true;
|
|
// Porovnání zboží
|
|
// $cfg['Modules']['products_compare'] = true;
|
|
// Oblíbené položky zákazníků
|
|
$cfg['Modules']['products_favorites'] = true;
|
|
// Příplatky
|
|
$cfg['Modules']['products_charges'] = true;
|
|
// Ankety
|
|
// $cfg['Modules']['inquiries'] = true;
|
|
// NewsLetter
|
|
$cfg['Modules']['newsletter'] = true;
|
|
// Statistiky
|
|
$cfg['Modules']['stats'] = true;
|
|
// Export dat
|
|
$cfg['Modules']['export'] = true;
|
|
// Import dat
|
|
$cfg['Modules']['import'] = true;
|
|
// Komentáře ke zboží
|
|
// $cfg['Modules']['products_comments'] = true;
|
|
// Cenové hladiny zboží
|
|
$cfg['Modules']['price_levels'] = true;
|
|
// Články
|
|
$cfg['Modules']['articles'] = true;
|
|
// Sekce článků
|
|
$cfg['Modules']['articles_sections'] = true;
|
|
// Historie cen
|
|
$cfg['Modules']['price_history'] = true;
|
|
// Feed generator
|
|
$cfg['Modules']['feed_generator'] = true;
|
|
// Komentáře ke článku
|
|
// $cfg['Modules']['articles_comments'] = true;
|
|
// Katalogový Feed
|
|
$cfg['Modules']['feeds'] = true;
|
|
// Varianty zboží
|
|
$cfg['Modules']['products_variations'] = [
|
|
'variationCode' => true,
|
|
];
|
|
// Filtrovani podle kategorii/variant
|
|
$cfg['Modules']['filter'] = [
|
|
'totals' => true,
|
|
'onPage' => [20 => 20, 50 => 50, 100 => 100, 200 => 200, 500 => 500],
|
|
];
|
|
$cfg['Modules']['dynamic_filter'] = true;
|
|
// Automatické importy
|
|
$cfg['Modules']['automatic_import'] = true;
|
|
// Dodavatelé produktů/Skladem u dodavatele
|
|
$cfg['Modules']['products_suppliers'] = [
|
|
'delivery_time' => -1,
|
|
];
|
|
// SEO modul
|
|
$cfg['Modules']['seo'] = true;
|
|
// Hlídání produktů které dojdou
|
|
// $cfg['Modules']['missing_products'] = true;
|
|
// Dotaz na prodejce
|
|
// $cfg['Modules']['customer_question'] = true;
|
|
// Hromadné zpracování objednávek
|
|
// $cfg['Modules']['orders_mass_process'] = true;
|
|
// Naskladňovací faktury
|
|
$cfg['Modules']['stock_in'] = [
|
|
'weighted_purchase_price' => true,
|
|
];
|
|
// Editace objednávek zákazníkem
|
|
// $cfg['Modules']['order_edit'] = true;
|
|
// Platby objednávek
|
|
$cfg['Modules']['order_payment'] = true;
|
|
// Slidery
|
|
$cfg['Modules']['sliders'] = true;
|
|
// ISIC/ALIVE karty
|
|
// $cfg['Modules']['isic'] = true;
|
|
// Vratky
|
|
// $cfg['Modules']['replacement'] = true;
|
|
// Sety/Dárky
|
|
$cfg['Modules']['products_sets'] = [
|
|
'calculate_price' => true,
|
|
'calculate_stock' => true,
|
|
];
|
|
// Dárky
|
|
$cfg['Modules']['products_gifts'] = true;
|
|
$cfg['Modules']['skeet'] = true;
|
|
|
|
// Šablony produktů
|
|
$cfg['Modules']['templates'] = true;
|
|
// Kolekce produktů
|
|
$cfg['Modules']['products_collections'] = true;
|
|
// Produkty dodavatelů
|
|
// $cfg['Modules']['orders_of_suppliers'] = true;
|
|
// Platebni brany BACHA OSTRA DATA ZKOPIROVANA Z NARADI HORNIG
|
|
$cfg['Modules']['payments'] = [
|
|
'ThePay' => [
|
|
'test' => '1',
|
|
// 'merchantId' => '457',
|
|
// 'accountId' => '490',
|
|
// 'password' => '50973c916453',
|
|
// 'dataApiPassword' => '0dedd1f91359c4c',
|
|
],
|
|
'TestPayment' => true,
|
|
];
|
|
// Způsoby dopravy
|
|
$cfg['Modules']['deliveries'] = true;
|
|
// Google analytics
|
|
// $cfg['Modules']['google_analytics'] = true;
|
|
// Heureka ověřené zákazníky
|
|
// $cfg['Modules']['heureka_overeno'] = true;
|
|
// Google konverze
|
|
// $cfg['Modules']['google_conversion'] = true;
|
|
// Heureka konverze
|
|
// $cfg['Modules']['heureka_conversion'] = true;
|
|
// Zbozi.cz
|
|
// $cfg['Modules']['zbozi_cz_feedback'] = true;
|
|
// Sklik konverze
|
|
// $cfg['Modules']['sklik_conversion'] = true;
|
|
// Zásilkovna
|
|
// $cfg['Modules']['zasilkovna'] = true;
|
|
// Fotky k variantám
|
|
$cfg['Modules']['products_variations_photos'] = true;
|
|
// Kontaktní formuláře
|
|
// $cfg['Modules']['forms'] = [];
|
|
// Inventura
|
|
// $cfg['Modules']['inventory'] = true;
|
|
// ReCaptcha
|
|
// $cfg['Modules']['recaptcha'] = true;
|
|
// Pokladna
|
|
// $cfg['Modules']['pos'] = true;
|
|
// Abra
|
|
// $cfg['Modules']['abra'] = [
|
|
// 'server' => 'http://server18.elnino.cz:777/AWS/wsdl/WebEngine', // Official
|
|
// //'server' => 'http://gw.it-pro.cz:777/AWS/wsdl/WebEngine', // Testing
|
|
// 'queue' => 'wpj.Q.abra-stock-koza',
|
|
// //'web' => 'kosmetika-zdravi.cz',
|
|
// 'web' => null,
|
|
// ];
|
|
// Balíkonoš
|
|
$cfg['Modules']['balikonos'] = [
|
|
'provider' => 'balikobot',
|
|
];
|
|
|
|
$cfg['Modules']['fulltext_search'] = true;
|
|
|
|
$cfg['Modules']['products_related'] = ['types' => true];
|
|
|
|
$cfg['Modules']['dynamic_related_products'] = true;
|
|
|
|
// $cfg['Modules']['elnino'] = true;
|
|
|
|
$cfg['Modules']['watchdog'] = true;
|
|
|
|
$cfg['Modules']['currencies'] = true;
|
|
$cfg['Modules']['translations'] = true;
|
|
$cfg['Modules']['reviews'] = true;
|
|
$cfg['Modules']['symfony'] = true;
|
|
|
|
$cfg['Modules']['margins'] = true;
|
|
|
|
// Ceníky dopravy
|
|
$cfg['Modules']['delivery_pricelist'] = true;
|
|
|
|
$cfg['Modules']['pricelists'] = [
|
|
'coefficient' => true,
|
|
];
|
|
|
|
$cfg['Modules']['indexed_filter'] = true;
|
|
|
|
$cfg['insert_products_new'] = true;
|
|
|
|
$cfg['Modules']['quantity_discount'] = true;
|
|
|
|
$cfg['Modules']['pos'] = true;
|
|
|
|
$cfg['Modules']['bonus_program'] = true;
|
|
|
|
$cfg['Modules']['comments'] = true;
|
|
|
|
$cfg['Modules']['db_rewrite'] = true;
|
|
|
|
$cfg['Modules']['oss_vats'] = true;
|
|
|
|
$cfg['Modules']['bank_auto_payments'] = true;
|
|
|
|
$cfg['Modules']['telfa'] = true;
|
|
$cfg['Modules']['warehouse'] = true;
|
|
$cfg['Modules']['products_batches'] = true;
|
|
|
|
$cfg['Modules']['stores'] = true;
|
|
$cfg['Modules']['returns'] = true;
|
|
$cfg['Modules']['reclamations'] = true;
|
|
$cfg['Modules']['async_emails'] = true;
|
|
$cfg['Modules']['heureka_cart'] = [
|
|
'API_ID' => 'API_ID',
|
|
'API_ID_SK' => 'API_ID_SK',
|
|
'test' => '1',
|
|
];
|
|
$cfg['Modules']['global_discounts'] = true;
|
|
$cfg['Modules']['order_restrictions'] = true;
|
|
$cfg['Modules']['pohoda'] = [
|
|
'users' => true,
|
|
'orders_import' => true,
|
|
'invoices' => true,
|
|
'instant_user_upload' => true,
|
|
];
|
|
|
|
$cfg['Modules']['synchronization'] = true;
|
|
|
|
$cfg['Modules']['order_discount'] = true;
|
|
$cfg['Modules']['restrictions'] = [
|
|
'objects' => [
|
|
'categories' => 1,
|
|
'producers' => 2,
|
|
'campaigns' => 3,
|
|
'products' => 4,
|
|
],
|
|
'domains' => [
|
|
'countries' => 1,
|
|
'users' => 2,
|
|
'login' => 4,
|
|
'price_levels' => 5,
|
|
'users_groups' => 6,
|
|
],
|
|
];
|
|
$cfg['Modules']['webpack'] = true;
|
|
$cfg['Modules']['new_pos'] = true;
|
|
|
|
$cfg['Modules']['graphql'] = [
|
|
'admin_api' => true,
|
|
];
|
|
|
|
$cfg['Modules']['synchronization'] = true;
|
|
|
|
$cfg['Modules']['sellers'] = true;
|
|
|
|
$cfg['Modules']['reservations'] = true;
|
|
|
|
$cfg['Modules']['dropship'] = true;
|
|
|
|
$cfg['Modules']['kafka'] = true;
|
|
|
|
$cfg['Modules']['users_groups_types'] = [];
|
|
|
|
$cfg['Modules']['user_addresses'] = true;
|
|
|
|
$cfg['Modules']['b2b_preorders'] = [
|
|
'order_status' => 4,
|
|
];
|
|
|
|
$cfg['Modules']['sales'] = true;
|
|
|
|
$cfg['Modules']['labels'] = [
|
|
'product_labels' => true,
|
|
'colors' => [
|
|
[
|
|
'type' => 'green',
|
|
'descr' => 'Zelená',
|
|
],
|
|
[
|
|
'type' => 'blue',
|
|
'descr' => 'Modrá',
|
|
],
|
|
],
|
|
];
|
|
|
|
$cfg['Modules']['recommenders'] = true;
|
|
|
|
// $cfg['Modules']['components'] = true;
|
|
|
|
$cfg['Modules']['products_shopping_list'] = true;
|
|
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI ADRESY ESHOPU
|
|
* ======================================================================
|
|
* full: plna cesta k eshopu s http:// domenou a adresarem
|
|
* print: plna cesta k eshopu bez http - verze k vytisteni
|
|
* error: soubor s chybovou hlaskou
|
|
*/
|
|
$cfg['Addr']['print'] = 'www.kosmetika-zdravi.kupshop.cz/';
|
|
$cfg['Addr']['full'] = 'http://'.$cfg['Addr']['print'];
|
|
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI FTP CESTY K ESHOPU
|
|
* ======================================================================
|
|
* eshop_root: cesta v FTP na serveru
|
|
*
|
|
* kdyz se pripoji pomoci FTP uctu na kupshop.cz, tak z rootu
|
|
* je nasledujici cesta
|
|
*/
|
|
$cfg['FTP']['use_ftp'] = false;
|
|
$cfg['FTP']['eshop_root'] = '/';
|
|
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI CEST ESHOPU
|
|
* ======================================================================
|
|
*/
|
|
// ## smarty: motiv sablon tahajici se ze sdilene slozky
|
|
$cfg['Path']['smarty_tpl']['theme'] = 'x';
|
|
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI JMEN TABULEK, KTERE POUZIVA ESHOP
|
|
* ======================================================================
|
|
*/
|
|
$cfg['DbTablePrefix'] = '';
|
|
$cfg['DbTable']['photos-products'] = 'photos_products_relation';
|
|
$cfg['DbTable']['products-related'] = 'products_related';
|
|
$cfg['DbTable']['products-favorites'] = 'products_favorites';
|
|
$cfg['DbTable']['products-sections'] = 'products_in_sections';
|
|
$cfg['DbTable']['photos_articles'] = 'photos_articles_relation';
|
|
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI JAZYKA
|
|
* ======================================================================
|
|
*/
|
|
$cfg['Lang']['language'] = 'cs';
|
|
|
|
$cfg['Order'] = [];
|
|
// $cfg['Order']['Status'] = array();
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI OBJEDNAVEK
|
|
* ======================================================================
|
|
* Status: nastaveni stavu objednavek
|
|
|
|
*/
|
|
$cfg['Order']['Status']['global'][0] = 'nová';
|
|
$cfg['Order']['Status']['global'][1] = 'přenesena';
|
|
$cfg['Order']['Status']['global'][2] = 'potvrzena';
|
|
$cfg['Order']['Status']['global'][3] = 'vyřízena';
|
|
|
|
$cfg['Order']['Status']['payed'][0] = 'čeká na zaplacení';
|
|
$cfg['Order']['Status']['payed'][1] = 'zaplaceno';
|
|
|
|
$cfg['Order']['Status']['dispatch'][0] = 'čeká na odeslání';
|
|
$cfg['Order']['Status']['dispatch'][1] = 'částečně odesláno';
|
|
$cfg['Order']['Status']['dispatch'][2] = 'odesláno';
|
|
|
|
$cfg['Order']['Status']['storno'][0] = 'nestornována';
|
|
$cfg['Order']['Status']['storno'][1] = 'stornována';
|
|
|
|
$cfg['Order']['Status']['attach_invoice'] = [];
|
|
|
|
$cfg['Order']['hideCode'] = true;
|
|
$cfg['Order']['prependProducer'] = true;
|
|
|
|
// Nastaveni statu
|
|
// $cfg['Order']['Countries'] = array('Česká Republika' => 'Česká Republika', 'Slovensko'=>'Slovensko');
|
|
|
|
// Pridavat na konec objednanyho produktu jeho kod? Napr: Tretry (velikost:modra, kod:ab12345)
|
|
// $cfg['Order']['hideCode'] = true;
|
|
|
|
// Zakazat mazani objednavky v adminu
|
|
// $cfg['Order']['disableDelete'] = true;
|
|
|
|
// ## vygenerovani cisla objednavky
|
|
// D - den, M - mesic, Y - rok, #ID - poradova cislovka, * - nahodne cislo
|
|
// [Y,2][M][D]["-"][#ID,6]
|
|
$cfg['Order']['number']['pattern'] = '["36"][Y,2][#USER_ID]["0"][#USER_ORDER_INDEX]';
|
|
|
|
// Nastaveni flagu objednavek
|
|
$cfg['Order']['Flags'] = [
|
|
'R' => [
|
|
'name' => 'Nedořešené',
|
|
],
|
|
'H' => [
|
|
'name' => 'Heureka',
|
|
],
|
|
];
|
|
|
|
$cfg['Currencies'] = [
|
|
'CZK' => [
|
|
'name' => 'Česká koruna',
|
|
'symbol' => 'Kč',
|
|
'price_round' => '100',
|
|
'price_round_direction' => 'math',
|
|
'countries' => [
|
|
'CZ',
|
|
],
|
|
],
|
|
'EUR' => [
|
|
'name' => 'Euro',
|
|
'symbol' => '€',
|
|
'price_round' => '0',
|
|
'price_round_direction' => 'math',
|
|
'countries' => [
|
|
'SK',
|
|
],
|
|
],
|
|
];
|
|
|
|
/*
|
|
$cfg['Currencies'] = [
|
|
'CZK' => ['name' => 'Česká koruna',
|
|
'symbol' => 'Kč'],
|
|
'EUR' => ['name' => 'Euro',
|
|
'symbol' => '€' ]
|
|
];
|
|
*/
|
|
|
|
$cfg['Factorage'] = [];
|
|
$cfg['Factorage']['Status'] = [];
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI PROVIZI
|
|
* ======================================================================
|
|
* Status: nastaveni stavu provize
|
|
*/
|
|
$cfg['Factorage']['Status']['payed'][0] = 'neproplaceno';
|
|
$cfg['Factorage']['Status']['payed'][1] = 'proplaceno';
|
|
|
|
$cfg['Products']['DeliveryTimeConfig'] = [];
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI ZBOZI V KATALOGU
|
|
* ======================================================================
|
|
* DeliveryTime: nastaveni doby doruceni zbozi
|
|
*/
|
|
$cfg['Products']['DeliveryTimeConfig']['0'] = [
|
|
'name' => 'skladem',
|
|
'allowBuy' => false,
|
|
'allowWatchdog' => false,
|
|
'message' => 'skladem',
|
|
];
|
|
$cfg['Products']['DeliveryTimeConfig']['-1'] = [
|
|
'name' => 'na cestě',
|
|
'allowBuy' => true,
|
|
'allowWatchdog' => false,
|
|
'message' => 'na cestě',
|
|
];
|
|
$cfg['Products']['DeliveryTimeConfig']['-2'] = [
|
|
'name' => 'na objednávku',
|
|
'allowBuy' => true,
|
|
'allowWatchdog' => false,
|
|
'message' => 'na objednávku',
|
|
];
|
|
$cfg['Products']['DeliveryTimeConfig']['-3'] = [
|
|
'name' => 'neni skladem',
|
|
'allowBuy' => false,
|
|
'allowWatchdog' => true,
|
|
'message' => 'neni skladem',
|
|
];
|
|
$cfg['Products']['DeliveryTimeConfig']['1'] = [
|
|
'name' => 'dodáváme do %s dnů',
|
|
'allowBuy' => true,
|
|
'allowWatchdog' => false,
|
|
'message' => 'dodáváme do %s dnů',
|
|
];
|
|
|
|
// Zasunujici se nabidka filtru - melo by byt true kvuli rychlosti.
|
|
$cfg['Filter']['Collapsable'] = false;
|
|
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI OBRAZKU
|
|
* ======================================================================
|
|
*/
|
|
$cfg['Photo'] = [
|
|
'default' => [
|
|
'crop' => false,
|
|
'background' => 0xFFFFFF,
|
|
'watermark' => false,
|
|
'logo' => false,
|
|
'png' => false,
|
|
],
|
|
'types' => [
|
|
'product_large' => [
|
|
'size' => [1024, 768],
|
|
'crop' => false,
|
|
'watermark' => true,
|
|
'logo' => true,
|
|
],
|
|
'product_catalog' => [
|
|
'size' => [220, 165],
|
|
'png' => true,
|
|
],
|
|
'product_detail' => [
|
|
'size' => [485, 371],
|
|
],
|
|
'product_gallery' => [
|
|
'size' => [188, 118],
|
|
// 'crop' => true,
|
|
],
|
|
'admin' => [
|
|
'size' => [64, 48],
|
|
],
|
|
'section' => [
|
|
'size' => [80, 80],
|
|
],
|
|
'producer' => [
|
|
'size' => [120, 60],
|
|
],
|
|
'payment' => [
|
|
'size' => [30, 30],
|
|
],
|
|
'delivery' => [
|
|
'size' => [110, 40],
|
|
],
|
|
'news' => [
|
|
'size' => [250, 250],
|
|
],
|
|
'top_product' => [
|
|
'size' => [130, 110],
|
|
],
|
|
'news_lg' => [
|
|
'size' => [385, 250],
|
|
'crop' => true,
|
|
],
|
|
'swatch' => [
|
|
'size' => [60, 60],
|
|
'crop' => true,
|
|
],
|
|
'subsections' => [
|
|
'size' => [53, 53],
|
|
'type' => 'section',
|
|
],
|
|
'product_cart' => [
|
|
'size' => [53, 53],
|
|
'type' => 'section',
|
|
],
|
|
],
|
|
'id_to_type' => [
|
|
0 => 'product_large',
|
|
1 => 'product_gallery',
|
|
2 => 'product_catalog',
|
|
3 => 'product_detail',
|
|
4 => 'product_gallery',
|
|
5 => 'admin',
|
|
6 => 'section',
|
|
7 => 'producer',
|
|
8 => 'payment',
|
|
9 => 'delivery',
|
|
10 => 'news',
|
|
11 => 'top_product',
|
|
12 => 'news_lg',
|
|
13 => 'swatch',
|
|
14 => 'subsections',
|
|
15 => 'product_cart',
|
|
],
|
|
'placeholder' => '/templates/images/no-img.png',
|
|
'kind' => [
|
|
'Y' => 'Hlavní',
|
|
'N' => 'Vedlejší',
|
|
'O' => 'Odstín',
|
|
],
|
|
];
|
|
|
|
$cfg['Menu'] = [];
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI VLASTNICH EDITOVATELNYCH MENU ESHOPU
|
|
* ======================================================================
|
|
* aktivni moduly.
|
|
*
|
|
* Pro zruseni modulu staci radku zakomentovat pomoci //
|
|
*/
|
|
|
|
$cfg['Menu']['own'][1] = [
|
|
'name' => 'Patička',
|
|
'title' => 'Patička',
|
|
'default' => true,
|
|
];
|
|
|
|
$cfg['Menu']['own'][2] = [
|
|
'name' => 'Menu uživatel',
|
|
'title' => 'Menu uživatel',
|
|
'default' => true,
|
|
];
|
|
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI MENU ESHOPU
|
|
* ======================================================================
|
|
*/
|
|
$cfg['Menu']['main']['default'] = 'sections';
|
|
$cfg['Menu']['sections'] = [
|
|
'show' => true,
|
|
'collapse' => true,
|
|
'collapse_settings' => [
|
|
'max_levels' => 0,
|
|
],
|
|
];
|
|
$cfg['Menu']['producers'] = [
|
|
'show' => true,
|
|
'collapse' => false,
|
|
];
|
|
$cfg['Menu']['inquiry'] = [
|
|
'show' => true,
|
|
];
|
|
$cfg['Menu']['index_product'] = [
|
|
'limit' => 9,
|
|
'photos' => 2,
|
|
];
|
|
$cfg['Menu']['random_product'] = [
|
|
'show' => true,
|
|
'limit' => 4,
|
|
'photos' => 1,
|
|
];
|
|
$cfg['Menu']['bestseller_product'] = [
|
|
'show' => true,
|
|
'limit' => 4,
|
|
'photos' => 1,
|
|
];
|
|
$cfg['Menu']['newest_product'] = [
|
|
'show' => true,
|
|
'limit' => 4,
|
|
'photos' => 1,
|
|
];
|
|
$cfg['Menu']['cart_info'] = [
|
|
'show' => true,
|
|
];
|
|
|
|
$cfg['Menu']['last_visited'] = [
|
|
'limit' => 6,
|
|
'photos' => 2,
|
|
];
|
|
|
|
$cfg['Menu']['related'] = [
|
|
'limit' => 8,
|
|
'photos' => 2,
|
|
];
|
|
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI ADMINISTRACE ESHOPU
|
|
* ======================================================================
|
|
*/
|
|
$cfg['Admin']['Login']['User'] = '_KS_ADMIN';
|
|
$cfg['Admin']['Login']['Password'] = 'ksadmin21';
|
|
$cfg['Admin']['Login']['Timeout'] = (int) 7200; // 60 = 1 minuta
|
|
$cfg['Admin']['settings'] = [
|
|
'email' => 'helpdesk@kupshop.cz',
|
|
'id' => 0,
|
|
'privilege' => '',
|
|
];
|
|
|
|
// # NASTAVENI SSL V ADMINISTRACI
|
|
// zda ma byt v administraci moznost zvolit SSL pripojeni
|
|
$cfg['Admin']['SSL']['support'] = false;
|
|
// zda ma byt administrace automaticky presmerovana na SSL
|
|
$cfg['Admin']['SSL']['automaticRedirection'] = false;
|
|
|
|
/*
|
|
* ======================================================================
|
|
* NASTAVENI MOD_REWRITE PRO SEO FRIENDLY ODKAZY
|
|
* ======================================================================
|
|
*/
|
|
$cfg['Mod_rewrite'] = true;
|
|
|
|
$cfg['Products']['Flags'] = [
|
|
'N' => ['plural' => 'Novinky', 'singular' => 'Novinka', 'url' => 'novinky', 'short' => 'N', 'order' => -4],
|
|
'A' => ['plural' => 'Akce', 'singular' => 'Akce', 'url' => 'akce', 'short' => 'A', 'order' => -6],
|
|
'C' => ['plural' => 'Na cestě', 'singular' => 'Na cestě', 'url' => 'na-ceste', 'short' => 'C', 'order' => -6],
|
|
'R' => ['plural' => 'Opět skladem', 'singular' => 'Opět skladem', 'url' => 'opet-skladem', 'short' => 'R', 'order' => -6],
|
|
'T' => ['plural' => 'Testery', 'singular' => 'Tester', 'url' => 'testery', 'short' => 'T', 'order' => -6],
|
|
'S' => ['plural' => 'Sety', 'singular' => 'Set', 'url' => 'sety', 'short' => 'S', 'order' => -6],
|
|
'Z' => ['plural' => 'Zlevněno', 'singular' => 'Zlevněno', 'url' => 'zlevneno', 'short' => 'Z', 'order' => -6],
|
|
'V' => ['plural' => 'Vzorek', 'singular' => 'Vzorek', 'url' => 'vzorky', 'short' => 'V', 'order' => -6],
|
|
'O' => ['plural' => 'Odstřik', 'singular' => 'Odstřik', 'url' => 'odstrik', 'short' => 'O', 'order' => -6],
|
|
'MS' => ['plural' => 'Multisety', 'singular' => 'Multiset', 'url' => 'js-multiset', 'short' => 'X', 'order' => -6],
|
|
];
|
|
|
|
$cfg['Sections']['Flags'] = [
|
|
'A' => ['plural' => 'Kategorie s akčním zbožím'],
|
|
'L' => ['plural' => 'Pro lamy'],
|
|
];
|
|
|
|
$cfg['captcha']['size'] = 40;
|
|
|
|
require_once dirname(__FILE__).'/../../../config_db.php';
|
|
|
|
$cfg['Modules']['cdn'] = true;
|