* @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 6594 $ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ // backward compatibility vouchers should be available in all categories function update_module_loyalty() { if (Configuration::get('PS_LOYALTY_POINT_VALUE') !== false) { $category_list = ''; foreach(Category::getSimpleCategories(Configuration::get('PS_LANG_DEFAULT')) as $category) $category_list .= $category['id_category'].','; if (!empty($category_list)) { $category_list = rtrim($category_list, ','); Configuration::updateValue('PS_LOYALTY_VOUCHER_CATEGORY', $category_list); } } }