J2T Rewardpoints
If rewardpoints are not updated when you remove the item from the cart, apply the following changes:
-
Open
app/code/community/J2T/Rewardpoints/Helper/Data.php
and find the methodgetPointsOnOrder
.Replace the following code:
$attribute_restriction = Mage::getStoreConfig('rewardpoints/default/process_restriction', $storeId); foreach ($items->getItems() as $_item){ if ($_item->getParentItemId()) {
with:
$attribute_restriction = Mage::getStoreConfig('rewardpoints/default/process_restriction', $storeId); $ids = false; if (get_class($items) && method_exists($items, 'getAllIds')) { $ids = $items->getAllIds(); } foreach ($items->getItems() as $_item){ if ($ids && !in_array($_item->getId(), $ids)) { continue; } if ($_item->getParentItemId()) {
-
Disable compilation and clear the cache.