-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [ADD] Widget v5.
- Loading branch information
Showing
7 changed files
with
220 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* This file is part of the official Aplazame module for PrestaShop. | ||
* | ||
* @author Aplazame <[email protected]> | ||
* @copyright 2015-2024 Aplazame | ||
* @license see file: LICENSE | ||
*/ | ||
|
||
if (!defined('_PS_VERSION_')) { | ||
exit; | ||
} | ||
|
||
function upgrade_module_8_1_0(Aplazame $module) | ||
{ | ||
/* Deprecate widget legacy option */ | ||
Configuration::deleteByName('WIDGET_LEGACY'); | ||
|
||
/* New widget selectors */ | ||
Configuration::updateValue('PRODUCT_WIDGET_VER', 'v5'); | ||
Configuration::updateValue('CART_WIDGET_VER', 'v5'); | ||
|
||
/* Widget v5 options */ | ||
Configuration::updateValue('PRODUCT_WIDGET_SLIDER', true); | ||
Configuration::updateValue('PRODUCT_WIDGET_SMALL_SIZE', false); | ||
Configuration::updateValue('CART_WIDGET_SLIDER', true); | ||
Configuration::updateValue('CART_WIDGET_SMALL_SIZE', false); | ||
|
||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters