From 85da0dcb7e62a2167ea08f52f6ce29d41b5f22e3 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 26 Apr 2022 19:44:54 +0530 Subject: [PATCH] Remove blockbestsellers --- config/xml/themes/default.xml | 1 - controllers/admin/AdminThemesController.php | 1 - modules/blockbestsellers/CHANGELOG.txt | 4 - modules/blockbestsellers/Readme.md | 37 --- modules/blockbestsellers/blockbestsellers.php | 273 ------------------ modules/blockbestsellers/composer.json | 19 -- .../blockbestsellers/css/blockbestsellers.css | 55 ---- modules/blockbestsellers/img/index.php | 35 --- modules/blockbestsellers/img/logo.gif | Bin 601 -> 0 bytes modules/blockbestsellers/index.php | 35 --- modules/blockbestsellers/logo.gif | Bin 601 -> 0 bytes modules/blockbestsellers/logo.png | Bin 1488 -> 0 bytes .../blockbestsellers/translations/index.php | 35 --- .../blockbestsellers/upgrade/install-1.2.php | 9 - .../blockbestsellers/upgrade/install-1.3.php | 9 - .../upgrade/install-1.5.5.php | 33 --- modules/blockbestsellers/views/index.php | 35 --- .../templates/hook/blockbestsellers-home.tpl | 32 -- .../views/templates/hook/blockbestsellers.tpl | 69 ----- .../views/templates/hook/index.php | 35 --- .../views/templates/hook/tab.tpl | 25 -- .../views/templates/index.php | 35 --- .../blockbestsellers/blockbestsellers.css | 3 - .../css/modules/blockbestsellers/index.php | 35 --- .../blockbestsellers/blockbestsellers.tpl | 65 ----- .../modules/blockbestsellers/index.php | 35 --- 26 files changed, 915 deletions(-) delete mode 100644 modules/blockbestsellers/CHANGELOG.txt delete mode 100644 modules/blockbestsellers/Readme.md delete mode 100644 modules/blockbestsellers/blockbestsellers.php delete mode 100644 modules/blockbestsellers/composer.json delete mode 100644 modules/blockbestsellers/css/blockbestsellers.css delete mode 100644 modules/blockbestsellers/img/index.php delete mode 100644 modules/blockbestsellers/img/logo.gif delete mode 100644 modules/blockbestsellers/index.php delete mode 100644 modules/blockbestsellers/logo.gif delete mode 100644 modules/blockbestsellers/logo.png delete mode 100644 modules/blockbestsellers/translations/index.php delete mode 100644 modules/blockbestsellers/upgrade/install-1.2.php delete mode 100644 modules/blockbestsellers/upgrade/install-1.3.php delete mode 100644 modules/blockbestsellers/upgrade/install-1.5.5.php delete mode 100644 modules/blockbestsellers/views/index.php delete mode 100644 modules/blockbestsellers/views/templates/hook/blockbestsellers-home.tpl delete mode 100644 modules/blockbestsellers/views/templates/hook/blockbestsellers.tpl delete mode 100644 modules/blockbestsellers/views/templates/hook/index.php delete mode 100644 modules/blockbestsellers/views/templates/hook/tab.tpl delete mode 100644 modules/blockbestsellers/views/templates/index.php delete mode 100644 themes/hotel-reservation-theme/css/modules/blockbestsellers/blockbestsellers.css delete mode 100644 themes/hotel-reservation-theme/css/modules/blockbestsellers/index.php delete mode 100644 themes/hotel-reservation-theme/modules/blockbestsellers/blockbestsellers.tpl delete mode 100644 themes/hotel-reservation-theme/modules/blockbestsellers/index.php diff --git a/config/xml/themes/default.xml b/config/xml/themes/default.xml index eeaacae61..733bcc628 100644 --- a/config/xml/themes/default.xml +++ b/config/xml/themes/default.xml @@ -62,7 +62,6 @@ - diff --git a/controllers/admin/AdminThemesController.php b/controllers/admin/AdminThemesController.php index 216ec151e..968503fc8 100644 --- a/controllers/admin/AdminThemesController.php +++ b/controllers/admin/AdminThemesController.php @@ -2086,7 +2086,6 @@ class AdminThemesControllerCore extends AdminController 'addsharethis', 'bankwire', 'blockadvertising', - 'blockbestsellers', 'blockcart', 'blockcategories', 'blockcms', diff --git a/modules/blockbestsellers/CHANGELOG.txt b/modules/blockbestsellers/CHANGELOG.txt deleted file mode 100644 index 5ddb96c32..000000000 --- a/modules/blockbestsellers/CHANGELOG.txt +++ /dev/null @@ -1,4 +0,0 @@ -2014-04-22 18:56:53 +0200 // Changelog updated -2014-03-24 11:43:28 +0100 / MO blockbestsellers : ps_versions_compliancy modified (1.5.6.1 => 1.6) -2014-03-24 10:59:58 +0100 // MO blockbestsellers : ps_versions_compliancy added -2014-03-20 14:20:39 +0100 Initial commit diff --git a/modules/blockbestsellers/Readme.md b/modules/blockbestsellers/Readme.md deleted file mode 100644 index 54407fbd2..000000000 --- a/modules/blockbestsellers/Readme.md +++ /dev/null @@ -1,37 +0,0 @@ -# Top-sellers block - -## About - -Adds a block displaying your store\'s top-selling products. - -## Contributing - -PrestaShop modules are open-source extensions to the PrestaShop e-commerce solution. Everyone is welcome and even encouraged to contribute with their own improvements. - -### Requirements - -Contributors **must** follow the following rules: - -* **Make your Pull Request on the "dev" branch**, NOT the "master" branch. -* Do not update the module's version number. -* Follow [the coding standards][1]. - -### Process in details - -Contributors wishing to edit a module's files should follow the following process: - -1. Create your GitHub account, if you do not have one already. -2. Fork the blockbestsellers project to your GitHub account. -3. Clone your fork to your local machine in the ```/modules``` directory of your PrestaShop installation. -4. Create a branch in your local clone of the module for your changes. -5. Change the files in your branch. Be sure to follow [the coding standards][1]! -6. Push your changed branch to your fork in your GitHub account. -7. Create a pull request for your changes **on the _'dev'_ branch** of the module's project. Be sure to follow [the commit message norm][2] in your pull request. If you need help to make a pull request, read the [Github help page about creating pull requests][3]. -8. Wait for one of the core developers either to include your change in the codebase, or to comment on possible improvements you should make to your code. - -That's it: you have contributed to this open-source project! Congratulations! - -[1]: http://doc.prestashop.com/display/PS16/Coding+Standards -[2]: http://doc.prestashop.com/display/PS16/How+to+write+a+commit+message -[3]: https://help.github.com/articles/using-pull-requests - diff --git a/modules/blockbestsellers/blockbestsellers.php b/modules/blockbestsellers/blockbestsellers.php deleted file mode 100644 index fb5b87db2..000000000 --- a/modules/blockbestsellers/blockbestsellers.php +++ /dev/null @@ -1,273 +0,0 @@ - -* @copyright 2007-2015 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -if (!defined('_PS_VERSION_')) - exit; - -class BlockBestSellers extends Module -{ - protected static $cache_best_sellers; - - public function __construct() - { - $this->name = 'blockbestsellers'; - $this->tab = 'front_office_features'; - $this->version = '1.7.0'; - $this->author = 'PrestaShop'; - $this->need_instance = 0; - $this->bootstrap = true; - - parent::__construct(); - - $this->displayName = $this->l('Top-sellers block'); - $this->description = $this->l('Adds a block displaying your store\'s top-selling products.'); - $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); - } - - public function install() - { - $this->_clearCache('*'); - - if (!parent::install() - || !$this->registerHook('header') - || !$this->registerHook('leftColumn') - || !$this->registerHook('actionOrderStatusPostUpdate') - || !$this->registerHook('addproduct') - || !$this->registerHook('updateproduct') - || !$this->registerHook('deleteproduct') - || !$this->registerHook('displayHomeTab') - || !$this->registerHook('displayHomeTabContent') - || !ProductSale::fillProductSales() - ) - return false; - - Configuration::updateValue('PS_BLOCK_BESTSELLERS_TO_DISPLAY', 10); - - return true; - } - - public function uninstall() - { - $this->_clearCache('*'); - - return parent::uninstall(); - } - - public function hookAddProduct($params) - { - $this->_clearCache('*'); - } - - public function hookUpdateProduct($params) - { - $this->_clearCache('*'); - } - - public function hookDeleteProduct($params) - { - $this->_clearCache('*'); - } - - public function hookActionOrderStatusPostUpdate($params) - { - $this->_clearCache('*'); - } - - public function _clearCache($template, $cache_id = null, $compile_id = null) - { - parent::_clearCache('blockbestsellers.tpl', 'blockbestsellers-col'); - parent::_clearCache('blockbestsellers-home.tpl', 'blockbestsellers-home'); - parent::_clearCache('tab.tpl', 'blockbestsellers-tab'); - } - - /** - * Called in administration -> module -> configure - */ - public function getContent() - { - $output = ''; - if (Tools::isSubmit('submitBestSellers')) - { - Configuration::updateValue('PS_BLOCK_BESTSELLERS_DISPLAY', (int)Tools::getValue('PS_BLOCK_BESTSELLERS_DISPLAY')); - Configuration::updateValue('PS_BLOCK_BESTSELLERS_TO_DISPLAY', (int)Tools::getValue('PS_BLOCK_BESTSELLERS_TO_DISPLAY')); - $this->_clearCache('*'); - $output .= $this->displayConfirmation($this->l('Settings updated')); - } - - return $output.$this->renderForm(); - } - - public function renderForm() - { - $fields_form = array( - 'form' => array( - 'legend' => array( - 'title' => $this->l('Settings'), - 'icon' => 'icon-cogs' - ), - 'input' => array( - array( - 'type' => 'text', - 'label' => $this->l('Products to display'), - 'name' => 'PS_BLOCK_BESTSELLERS_TO_DISPLAY', - 'desc' => $this->l('Determine the number of product to display in this block'), - 'class' => 'fixed-width-xs', - ), - array( - 'type' => 'switch', - 'label' => $this->l('Always display this block'), - 'name' => 'PS_BLOCK_BESTSELLERS_DISPLAY', - 'desc' => $this->l('Show the block even if no best sellers are available.'), - 'is_bool' => true, - 'values' => array( - array( - 'id' => 'active_on', - 'value' => 1, - 'label' => $this->l('Enabled') - ), - array( - 'id' => 'active_off', - 'value' => 0, - 'label' => $this->l('Disabled') - ) - ), - ) - ), - 'submit' => array( - 'title' => $this->l('Save') - ) - ) - ); - - $helper = new HelperForm(); - $helper->show_toolbar = false; - $helper->table = $this->table; - $lang = new Language((int)Configuration::get('PS_LANG_DEFAULT')); - $helper->default_form_language = $lang->id; - $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0; - $this->fields_form = array(); - - $helper->identifier = $this->identifier; - $helper->submit_action = 'submitBestSellers'; - $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false).'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name; - $helper->token = Tools::getAdminTokenLite('AdminModules'); - $helper->tpl_vars = array( - 'fields_value' => $this->getConfigFieldsValues(), - 'languages' => $this->context->controller->getLanguages(), - 'id_language' => $this->context->language->id - ); - - return $helper->generateForm(array($fields_form)); - } - - public function getConfigFieldsValues() - { - return array( - 'PS_BLOCK_BESTSELLERS_TO_DISPLAY' => (int)Tools::getValue('PS_BLOCK_BESTSELLERS_TO_DISPLAY', Configuration::get('PS_BLOCK_BESTSELLERS_TO_DISPLAY')), - 'PS_BLOCK_BESTSELLERS_DISPLAY' => (int)Tools::getValue('PS_BLOCK_BESTSELLERS_DISPLAY', Configuration::get('PS_BLOCK_BESTSELLERS_DISPLAY')), - ); - } - - public function hookHeader($params) - { - if (Configuration::get('PS_CATALOG_MODE')) - return; - if (isset($this->context->controller->php_self) && $this->context->controller->php_self == 'index') - $this->context->controller->addCSS(_THEME_CSS_DIR_.'product_list.css'); - $this->context->controller->addCSS($this->_path.'blockbestsellers.css', 'all'); - } - - public function hookDisplayHomeTab($params) - { - if (!$this->isCached('tab.tpl', $this->getCacheId('blockbestsellers-tab'))) - { - BlockBestSellers::$cache_best_sellers = $this->getBestSellers($params); - $this->smarty->assign('best_sellers', BlockBestSellers::$cache_best_sellers); - } - - if (BlockBestSellers::$cache_best_sellers === false) - return false; - - return $this->display(__FILE__, 'tab.tpl', $this->getCacheId('blockbestsellers-tab')); - } - - public function hookDisplayHomeTabContent($params) - { - if (!$this->isCached('blockbestsellers-home.tpl', $this->getCacheId('blockbestsellers-home'))) - { - $this->smarty->assign(array( - 'best_sellers' => BlockBestSellers::$cache_best_sellers, - 'homeSize' => Image::getSize(ImageType::getFormatedName('home')) - )); - } - - if (BlockBestSellers::$cache_best_sellers === false) - return false; - - return $this->display(__FILE__, 'blockbestsellers-home.tpl', $this->getCacheId('blockbestsellers-home')); - } - - public function hookRightColumn($params) - { - if (!$this->isCached('blockbestsellers.tpl', $this->getCacheId('blockbestsellers-col'))) - { - if (!isset(BlockBestSellers::$cache_best_sellers)) - BlockBestSellers::$cache_best_sellers = $this->getBestSellers($params); - $this->smarty->assign(array( - 'best_sellers' => BlockBestSellers::$cache_best_sellers, - 'display_link_bestsellers' => Configuration::get('PS_DISPLAY_BEST_SELLERS'), - 'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')), - 'smallSize' => Image::getSize(ImageType::getFormatedName('small')) - )); - } - - if (BlockBestSellers::$cache_best_sellers === false) - return false; - - return $this->display(__FILE__, 'blockbestsellers.tpl', $this->getCacheId('blockbestsellers-col')); - } - - public function hookLeftColumn($params) - { - return $this->hookRightColumn($params); - } - - protected function getBestSellers($params) - { - if (Configuration::get('PS_CATALOG_MODE')) - return false; - - if (!($result = ProductSale::getBestSalesLight((int)$params['cookie']->id_lang, 0, (int)Configuration::get('PS_BLOCK_BESTSELLERS_TO_DISPLAY')))) - return (Configuration::get('PS_BLOCK_BESTSELLERS_DISPLAY') ? array() : false); - - $currency = new Currency($params['cookie']->id_currency); - $usetax = (Product::getTaxCalculationMethod((int)$this->context->customer->id) != PS_TAX_EXC); - foreach ($result as &$row) - $row['price'] = Tools::displayPrice(Product::getPriceStatic((int)$row['id_product'], $usetax), $currency); - - return $result; - } -} diff --git a/modules/blockbestsellers/composer.json b/modules/blockbestsellers/composer.json deleted file mode 100644 index 91882ad0c..000000000 --- a/modules/blockbestsellers/composer.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "PrestaShop/blockbestsellers", - "description": "PrestaShop module blockbestsellers", - "homepage": "https://github.com/PrestaShop/blockbestsellers", - "license": "AFL - Academic Free License (AFL 3.0)", - "authors": [ - { - "name": "PrestaShop SA", - "email": "contact@prestashop.com" - } - ], - "require": { - "php": ">=5.3.2" - }, - "config": { - "preferred-install": "dist" - }, - "type": "prestashop-module" -} diff --git a/modules/blockbestsellers/css/blockbestsellers.css b/modules/blockbestsellers/css/blockbestsellers.css deleted file mode 100644 index db88db52c..000000000 --- a/modules/blockbestsellers/css/blockbestsellers.css +++ /dev/null @@ -1,55 +0,0 @@ -/* Block best sellers */ -#best-sellers_block_right ul {margin-bottom:5px} -#best-sellers_block_right li { - float:none; - padding:10px 0; - border-bottom:1px dotted #ccc -} -#best-sellers_block_right li.last_item {border:none} -#best-sellers_block_right li a.content_img { - display:block; - float:left; - padding:1px; - height:47px; - width:67px; - text-decoration:none; - background:#333 -} -#best-sellers_block_right li span.number { - display:block; - float:left; - margin-top:6px; - width:20px; - font-weight:bold; - font-size:18px; - color:#fff; - text-align:center -} -#best-sellers_block_right li img { - border:1px solid #ededed; -} -#best-sellers_block_right li p { - float:left; - margin-left:7px; - padding:0; - width:125px; - font-weight:bold; - font-size:12px -} -#best-sellers_block_right li .price { - font-weight:bold; - font-size:14px; - color:#990000; - -} - -#best-sellers_block_right p.lnk { - padding:0; - text-align:right -} -#best-sellers_block_right .lnk .button_large { - padding:0; - border:none; - background:none -} -#best-sellers_block_right .lnk .button_large:hover {text-decoration:underline} \ No newline at end of file diff --git a/modules/blockbestsellers/img/index.php b/modules/blockbestsellers/img/index.php deleted file mode 100644 index 044cb85ee..000000000 --- a/modules/blockbestsellers/img/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2015 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/modules/blockbestsellers/img/logo.gif b/modules/blockbestsellers/img/logo.gif deleted file mode 100644 index 86b4e900d2a0ee12df97df0d9e21f863e5af5ff2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 601 zcmZ?wbhEHb6krfwc*el+#>nW$DTgP^g}=lle7!N}>8gZ_&C(C%`2Bi&=<1Awi+wh~ zmMr~b?Qnmk&G+jypKffw-6`~CHP45`zAtyQd}(U>kf8VZa_Zag@Q-C>pKtCun5*@1 zt@@{95$_t*zTRp7Xlng%p7QG*CjUNNdb-K!dso+oqd`BOulfGs(g(kw4{5<)u9y5+ z+Wy8>_4Rt`FSF&ZS2O?pbo+Nk+Sfz6-ybjdb{n=h? zvif$f=iisBUycX-jE#M})BNES#m_euy?1hYxxw=LwXM(hx4%1{{CJl9pPZ~Ob#>p9 zv;Y79&p+Z^ogs!n2V@~AP8is?HN-SUs_^i5cX*4qHuc6Bs&sZRi173^xlQyI zwPawhlAj*qFT%{AXQU%8!LZ0VI!e>SQC333eo+iJv#Fz+`}Re?N=n+&HpW8cN0hvp zOc*aR^4a+C2?Yc=Fa^c92s(18*~sxd^O3VlN_8E IJ1|%S0DEHZo&W#< diff --git a/modules/blockbestsellers/index.php b/modules/blockbestsellers/index.php deleted file mode 100644 index 3b0dc0312..000000000 --- a/modules/blockbestsellers/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2015 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/modules/blockbestsellers/logo.gif b/modules/blockbestsellers/logo.gif deleted file mode 100644 index 86b4e900d2a0ee12df97df0d9e21f863e5af5ff2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 601 zcmZ?wbhEHb6krfwc*el+#>nW$DTgP^g}=lle7!N}>8gZ_&C(C%`2Bi&=<1Awi+wh~ zmMr~b?Qnmk&G+jypKffw-6`~CHP45`zAtyQd}(U>kf8VZa_Zag@Q-C>pKtCun5*@1 zt@@{95$_t*zTRp7Xlng%p7QG*CjUNNdb-K!dso+oqd`BOulfGs(g(kw4{5<)u9y5+ z+Wy8>_4Rt`FSF&ZS2O?pbo+Nk+Sfz6-ybjdb{n=h? zvif$f=iisBUycX-jE#M})BNES#m_euy?1hYxxw=LwXM(hx4%1{{CJl9pPZ~Ob#>p9 zv;Y79&p+Z^ogs!n2V@~AP8is?HN-SUs_^i5cX*4qHuc6Bs&sZRi173^xlQyI zwPawhlAj*qFT%{AXQU%8!LZ0VI!e>SQC333eo+iJv#Fz+`}Re?N=n+&HpW8cN0hvp zOc*aR^4a+C2?Yc=Fa^c92s(18*~sxd^O3VlN_8E IJ1|%S0DEHZo&W#< diff --git a/modules/blockbestsellers/logo.png b/modules/blockbestsellers/logo.png deleted file mode 100644 index a7a74dbae85de481a660ab2689412bed8ece02af..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1488 zcmV;>1uy!EP)6U&?FGDmrKtGkgMt>SQlvk?K1lVUZ&joe zse&&)30kB+h?iC?#YE6vY#}7g#iU8oB$LTyGM97l+j~xuGh=2tQwttgJ#_Y2-}=_t zYkzA;IF5t=^YN|sqYz?s{ro|Ety?%?TPuqm^FEHp_-Hy{={UFV8@$N>nya7XCG5Kk z!3r6C_eWO=ky=9@>(9Q0C%9y|sWbal$N^k@r|W>kpe>YD0nZb3Z2mhx4eP6ua5N1t z3}kx0htPepR4Zx0u}l~}PXn0@gl$8A=_r&hG5!kyp|XsP!L-wGgidgQr0_v#MotA} zFwHi}MG~-})5l#GW%oeN!=%mWF($?>ut|WC(#%j;R&E9On?I9;V`jMdBtReOdrwW6 zR|A;0M`02imc}eINSZb@CzpV2*{Db-V4LhWl94{eb1#vAU>51AVG>9wK#f&MF_5wO&jNFSlyCjyz-aVBLESC(2sGGmg6{VxKRB*3?99O-jE2sn2V__;AYu_qj; zA_)oZAi0=CUIFATAhWc?TcrswXUf8PG-l?yn^@93GYTg3CZ}Gp24cN z9S>CPK8(y%9}?pikea#fibR%1pzdLWn)kqH?8d^yPp~lj$F1f=y&YUi=5AGa1dNF@ z-J{{HPe#MtFC+Hnhe~ja$To;z1JO(+y^fWHwM?;^AAm2^fSMggu-Nw{76&d(HXZuC zg*cf)1d8>kK5(l0bZB!IgCE3f-+S;?wj&VT4=q?nwM#35lUCjC3pF9I@dfUi6OCy=-m3x(Sw`nBjModkzKE1{`zO|*KCI#ZevhNt&?%L)ykTz1cizH z4?Vbn71S_)<8wrIy#|RPvC1Xjd+WK4Cqf-NVa;7*j1=_9gV{<71`|Av>lo#Syq2K* z{4C52egA^QkXVI|d?5nCN<%zb(f%k>u`3Mz5HpmSo6OP;=Gtm-jeBd&LHIZ?NI>%i z>3a%Y#>8greChC=09^ z_ggg^OJB&0&_+lMiRGOKr4UFTK0RY+T+qqS3c5LVo0p4NR&<>d3kto ztbc6jZ2Zy>@I{&-44JK7n(Yi-Wf-Zuz{u&IA8R|>>%u#G;3Q@^ zjLgDU3?Xk&EPtqu!>AXtgEwbe-|XG*y%Ur(4dno-qqUR7x$4&D+UlOixk&9d)9M!N zy$=ZaHv{_wj*fWmZ-|eK%i!`4lbf^|cW{(Hj%jj`v|c#A{n)ma@bjV8HdJic46V8* zx98(?SRVQtiIHL47+w5!@3G6r-3!Tdv2k3=g+!9rK#O)nD>i-lcIT1S`oPYRU(|am zkVrezBh#tAH%|3`JUGeA0U*z9%p3e(39M`fl?c@|>M|m(0C;s*cKJMQmKLWaR?2=q q2zZ4n=myUhG1DcHEOh4ABk&L9@u#uVu?z+P0000 -* @copyright 2007-2015 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/modules/blockbestsellers/upgrade/install-1.2.php b/modules/blockbestsellers/upgrade/install-1.2.php deleted file mode 100644 index 1c636719c..000000000 --- a/modules/blockbestsellers/upgrade/install-1.2.php +++ /dev/null @@ -1,9 +0,0 @@ -registerHook('addproduct') && $object->registerHook('updateproduct') && $object->registerHook('deleteproduct') && $object->registerHook('actionOrderStatusPostUpdate')); -} diff --git a/modules/blockbestsellers/upgrade/install-1.3.php b/modules/blockbestsellers/upgrade/install-1.3.php deleted file mode 100644 index a9735d575..000000000 --- a/modules/blockbestsellers/upgrade/install-1.3.php +++ /dev/null @@ -1,9 +0,0 @@ -registerHook('displayHomeTab') && $object->registerHook('displayHomeTabContent')); -} diff --git a/modules/blockbestsellers/upgrade/install-1.5.5.php b/modules/blockbestsellers/upgrade/install-1.5.5.php deleted file mode 100644 index 48e645b6e..000000000 --- a/modules/blockbestsellers/upgrade/install-1.5.5.php +++ /dev/null @@ -1,33 +0,0 @@ - -* @copyright 2007-2015 PrestaShop SA -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -if (!defined('_PS_VERSION_')) - exit; - -function upgrade_module_1_5_5($object) -{ - return Configuration::updateValue('PS_BLOCK_BESTSELLERS_TO_DISPLAY', 10); -} diff --git a/modules/blockbestsellers/views/index.php b/modules/blockbestsellers/views/index.php deleted file mode 100644 index 3b0dc0312..000000000 --- a/modules/blockbestsellers/views/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2015 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/modules/blockbestsellers/views/templates/hook/blockbestsellers-home.tpl b/modules/blockbestsellers/views/templates/hook/blockbestsellers-home.tpl deleted file mode 100644 index f8d65f83a..000000000 --- a/modules/blockbestsellers/views/templates/hook/blockbestsellers-home.tpl +++ /dev/null @@ -1,32 +0,0 @@ -{* -* 2007-2015 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2015 PrestaShop SA - -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} -{if isset($best_sellers) && $best_sellers} - {include file="$tpl_dir./product-list.tpl" products=$best_sellers class='blockbestsellers tab-pane' id='blockbestsellers'} -{else} -
    -
  • {l s='No best sellers at this time.' mod='blockbestsellers'}
  • -
-{/if} diff --git a/modules/blockbestsellers/views/templates/hook/blockbestsellers.tpl b/modules/blockbestsellers/views/templates/hook/blockbestsellers.tpl deleted file mode 100644 index bb5d3e8a9..000000000 --- a/modules/blockbestsellers/views/templates/hook/blockbestsellers.tpl +++ /dev/null @@ -1,69 +0,0 @@ -{* -* 2007-2015 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2015 PrestaShop SA - -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} - - -
-

- - {l s='Top sellers' mod='blockbestsellers'} - -

- -
- {if $best_sellers && $best_sellers|@count > 0} - -

» {l s='All best sellers' mod='blockbestsellers'}

- {else} -

{l s='No best sellers at this time' mod='blockbestsellers'}

- {/if} -
-
- diff --git a/modules/blockbestsellers/views/templates/hook/index.php b/modules/blockbestsellers/views/templates/hook/index.php deleted file mode 100644 index 3b0dc0312..000000000 --- a/modules/blockbestsellers/views/templates/hook/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2015 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/modules/blockbestsellers/views/templates/hook/tab.tpl b/modules/blockbestsellers/views/templates/hook/tab.tpl deleted file mode 100644 index c6b795f42..000000000 --- a/modules/blockbestsellers/views/templates/hook/tab.tpl +++ /dev/null @@ -1,25 +0,0 @@ -{* -* 2007-2015 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2015 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} -
  • {l s='Best Sellers' mod='blockbestsellers'}
  • \ No newline at end of file diff --git a/modules/blockbestsellers/views/templates/index.php b/modules/blockbestsellers/views/templates/index.php deleted file mode 100644 index 3b0dc0312..000000000 --- a/modules/blockbestsellers/views/templates/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2015 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/themes/hotel-reservation-theme/css/modules/blockbestsellers/blockbestsellers.css b/themes/hotel-reservation-theme/css/modules/blockbestsellers/blockbestsellers.css deleted file mode 100644 index b2429f7f5..000000000 --- a/themes/hotel-reservation-theme/css/modules/blockbestsellers/blockbestsellers.css +++ /dev/null @@ -1,3 +0,0 @@ - - -/*# sourceMappingURL=blockbestsellers.css.map */ diff --git a/themes/hotel-reservation-theme/css/modules/blockbestsellers/index.php b/themes/hotel-reservation-theme/css/modules/blockbestsellers/index.php deleted file mode 100644 index 9a99a8662..000000000 --- a/themes/hotel-reservation-theme/css/modules/blockbestsellers/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2017 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/themes/hotel-reservation-theme/modules/blockbestsellers/blockbestsellers.tpl b/themes/hotel-reservation-theme/modules/blockbestsellers/blockbestsellers.tpl deleted file mode 100644 index d5e412d8b..000000000 --- a/themes/hotel-reservation-theme/modules/blockbestsellers/blockbestsellers.tpl +++ /dev/null @@ -1,65 +0,0 @@ -{* -* 2007-2017 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2017 PrestaShop SA - -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} - - -
    -

    - {l s='Top sellers' mod='blockbestsellers'} -

    -
    - {if $best_sellers && $best_sellers|@count > 0} -
      - {foreach from=$best_sellers item=product name=myLoop} -
    • - - {$product.legend|escape:'html':'UTF-8'} - -
      -
      - - {$product.name|strip_tags:'UTF-8'|escape:'html':'UTF-8'} - -
      -

      {$product.description_short|strip_tags:'UTF-8'|truncate:75:'...'}

      - {if !$PS_CATALOG_MODE} -
      - {$product.price} - {hook h="displayProductPriceBlock" product=$product type="price"} -
      - {/if} -
      -
    • - {/foreach} -
    - - {else} -

    {l s='No best sellers at this time' mod='blockbestsellers'}

    - {/if} -
    -
    - \ No newline at end of file diff --git a/themes/hotel-reservation-theme/modules/blockbestsellers/index.php b/themes/hotel-reservation-theme/modules/blockbestsellers/index.php deleted file mode 100644 index 9a99a8662..000000000 --- a/themes/hotel-reservation-theme/modules/blockbestsellers/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2017 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit;