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 86b4e900d..000000000 Binary files a/modules/blockbestsellers/img/logo.gif and /dev/null differ 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 86b4e900d..000000000 Binary files a/modules/blockbestsellers/logo.gif and /dev/null differ diff --git a/modules/blockbestsellers/logo.png b/modules/blockbestsellers/logo.png deleted file mode 100644 index a7a74dbae..000000000 Binary files a/modules/blockbestsellers/logo.png and /dev/null differ diff --git a/modules/blockbestsellers/translations/index.php b/modules/blockbestsellers/translations/index.php deleted file mode 100644 index 044cb85ee..000000000 --- a/modules/blockbestsellers/translations/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/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;