[-] FO : #PSCFV-3268 - Fix bug with cache cartrule badly fill
// This fix is not "clean". It would be intersting to take more time to found a better solution git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16547 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
63737a93ec
commit
412cae1d51
2 files changed
+12
No files matched your search
@@ -913,6 +913,15 @@ class CartRuleCore extends ObjectModel
|
|||||||
|
|
||||||
return $reduction_value;
|
return $reduction_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make sure caches are empty
|
||||||
|
* Must be called before calling multiple time getContextualValue()
|
||||||
|
*/
|
||||||
|
public static function cleanCache()
|
||||||
|
{
|
||||||
|
self::$only_one_gift = array();
|
||||||
|
}
|
||||||
|
|
||||||
protected function getCartRuleCombinations()
|
protected function getCartRuleCombinations()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -195,6 +195,9 @@ abstract class PaymentModuleCore extends Module
|
|||||||
foreach ($data['package_list'] as $id_package)
|
foreach ($data['package_list'] as $id_package)
|
||||||
$package_list[$id_address][$id_package]['id_carrier'] = $id_carrier;
|
$package_list[$id_address][$id_package]['id_carrier'] = $id_carrier;
|
||||||
|
|
||||||
|
// Make sure CarRule caches are empty
|
||||||
|
CartRule::cleanCache();
|
||||||
|
|
||||||
foreach ($package_list as $id_address => $packageByAddress)
|
foreach ($package_list as $id_address => $packageByAddress)
|
||||||
foreach ($packageByAddress as $id_package => $package)
|
foreach ($packageByAddress as $id_package => $package)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user