Files
Jacek Pyziak 6cc26c0ed2 Add Creative Elements templates and update index files
- Introduced new templates for catalog, checkout, contact, and error pages.
- Implemented caching headers and redirection in index.php files across various directories.
- Enhanced product and layout templates for better integration with Creative Elements.
- Added backoffice header styles and scripts for improved UI/UX in the admin panel.
2025-07-01 00:56:07 +02:00

29 lines
776 B
PHP

<?php
/**
* Creative Elements - live Theme & Page Builder
*
* @author WebshopWorks
* @copyright 2019-2022 WebshopWorks.com
* @license One domain support license
*/
defined('_PS_VERSION_') or die;
function upgrade_module_2_5_9($module)
{
Shop::isFeatureActive() && Shop::setContext(Shop::CONTEXT_ALL);
if (isset($module->context->cookie->ceViewedProducts)) {
$products = explode(',', $module->context->cookie->ceViewedProducts);
$products = array_slice($products, 0, CreativeElements::VIEWED_PRODUCTS_LIMIT);
$module->context->cookie->ceViewedProducts = implode(',', $products);
$module->context->cookie->write();
}
CE\Plugin::instance()->files_manager->clearCache();
Media::clearCache();
return true;
}