Magento 1 Reward Points v1.x Uninstalling

Disabling Extension

In order to enable/disable the Magento Reward Points Extension v1.0, you can use the extension settings. Below you will learn how to access the extension settings page.

Step-by-Step action:

  1. Select “System”.
  2. Select “Configuration”.
Url-manager-enable-1.png

Step-by-Step action:

  1. Select “Plumrocket Reward Points” in the left menu.
  2. Option “Enable Plumrocket Reward Points”: Set “Yes” to enable the Module or “No” to disable it.
  3. Press the button “Save Config” to save the settings.
Rewards-enable-2.png

Important Information:

Make sure to backup all your Magento files and folders before you proceed with uninstalling extension.

Removing Extension

Quick Module Deactivation

In order to quickly deactivate the module, you will have to rename this module’s config file

/app/etc/modules/Plumrocket_Rewards.xml

by changing its extension from “.xml” into something like “.xml_”

After you rename the file be sure to clear Magento cache.

Removing Magento Extension Manually

If you want to delete all the files and folders including all the extension-related data stored in Magento database, you will have to delete all the files from the list below (note, CODE_POOL can be either community or local folder):

If you are using Magento Reward Points v1.0.0 – v1.5.3 please delete all the files from the list below:

/app/code/community/Plumrocket/Rewards
/app/code/local/Plumrocket/Rewards
/app/etc/modules/Plumrocket_Rewards.xml
/app/locale/en_US/Plumrocket_Rewards.csv
/app/design/frontend/base/default/template/rewards
/app/design/frontend/base/default/layout/rewards.xml
/app/design/frontend/default/default/template/rewards
/app/design/frontend/default/default/layout/rewards.xml
/app/design/adminhtml/default/default/layout/rewards.xml
/app/design/adminhtml/default/default/template/rewards
/skin/frontend/base/default/css/plumrocket/rewards
/skin/frontend/base/default/images/plumrocket/rewards
/skin/frontend/base/default/js/plumrocket/rewards
/skin/frontend/default/default/css/plumrocket/rewards
/skin/frontend/default/default/images/plumrocket/rewards
/skin/frontend/default/default/js/plumrocket/rewards
/skin/adminhtml/default/default/js/plumrocket/rewards

You will also have to delete the following tables from the database:

rewards_history rewards_points

Make sure to delete the following fields:

  1. From the table “eav_attribute” – attribute_code equal rewards_spent_points, rewards_available_points, rewards_activated_points;
  2. Fields rpdiscount_amount, base_rpdiscount_amount, tax_rpdiscount_amount, base_tax_rpdiscount_amount in table `sales_flat_order`;
  3. Fields rpdiscount_amount, base_rpdiscount_amount, tax_rpdiscount_amount, base_tax_rpdiscount_amount in table `sales_flat_quote_address`.

Note:

If you are using Magento Reward Points v1.0.0 – v1.1.0 please delete all the files from the list below:

/app/code/local/Plumrocket/Rewards
/app/etc/modules/Plumrocket_Rewards.xml
/app/design/frontend/base/default/template/rewards
/app/design/frontend/base/default/layout/rewards.xml
/app/design/adminhtml/default/default/layout/rewards.xml
/skin/frontend/base/default/css/plumrocket/rewards
/skin/frontend/base/default/images/plumrocket/rewards
/skin/frontend/base/default/js/plumrocket/rewards
/app/locale/en_US/Plumrocket_Rewards.csv

Below you will find the SQL command designed to delete both tables and attributes from the database:

DROP TABLE IF EXISTS `rewards_history`;
DROP TABLE IF EXISTS `rewards_points`;
ALTER TABLE `sales_flat_quote_address` DROP `tax_rpdiscount_amount`;
ALTER TABLE `sales_flat_quote_address` DROP `base_tax_rpdiscount_amount`;
ALTER TABLE `sales_flat_quote_address` DROP `rpdiscount_amount`;
ALTER TABLE `sales_flat_quote_address` DROP `base_rpdiscount_amount`;
ALTER TABLE `sales_flat_order` DROP `tax_rpdiscount_amount`;
ALTER TABLE `sales_flat_order` DROP `base_tax_rpdiscount_amount`;
ALTER TABLE `sales_flat_order` DROP `rpdiscount_amount`;
ALTER TABLE `sales_flat_order` DROP `base_rpdiscount_amount`;
DELETE FROM `core_config_data` WHERE `path` LIKE 'rewards/%';
DELETE FROM `core_resource` WHERE `code` = 'rewards_setup';
DELETE FROM `eav_attribute` WHERE `attribute_code` = "rewards_available_points";
DELETE FROM `eav_attribute` WHERE `attribute_code` = "rewards_spent_points";
DELETE FROM `eav_attribute` WHERE `attribute_code` = "rewards_activated_points";
DELETE FROM `eav_attribute` WHERE `attribute_code` = "disallow_apply_points";
DELETE FROM `eav_attribute` WHERE `attribute_code` = "disallow_earning_points";
DELETE FROM `eav_attribute` WHERE `attribute_code` = "additional_purchase_points";

Automated Extension Removal

In order to remove a module by means of a script follow the steps described below.

1. Download the remove_module_reward_points.zip archive and unzip it.

2. Upload it to the root directory of the site as shown below:

Detailed description:

  1. This is your client side. You will see your module removal script file.
  2. This is your root directory on server side. This is where the file should be uploaded.
  3. All the files must be uploaded to the server. Select the file and press the right mouse button
  4. Select the “Upload” option in order to upload the file to the server.
Magento-Reward-Points-Uninstalling-script-1.png

3. You should enter the script path in your browser’s address bar and follow this address. The path format is

www.yourdomain.com/remove_module_reward_points.php

where “yourdomain” is the name of your domain.

The screenshot below displays the page that will appear after you successfully delete a module:

Detailed description:

  1. Enter the path to execute module removal in you browser’s address bar.
  2. Successful message page.
Magento-Reward-Points-Uninstalling-script-2.png
Was this article helpful?