Page 1
Website: http://magehit.com Contact: [email protected]
Rewardpoints extension guide Version 0.0.1 – March, 2018
Integrate template of Rewardpoints extension with your theme. Before going to the configuration,
please read this file.
❖ Configuration
Go to Magehit Extension -> Rewardpoints to configure the extension:
Page 4
General
In the Enable field, you can choose yes/no to enable/disable extension.
In the Points/Currency Exchange Rate field, you can set Format x/y (x points / y monetary units). X
and Y must be integer.
In the Redeem points in increments of field, you can set increment point step redeem, be in integer.
Ex 5: Redeem points in groups of 5. 5,10,15 etc.
In the Calculate Reward Points Earned field, you can choose after/before discount.
In the Calculate Reward Points Earned field, you can choose after/before apply tax.
In the Calculate to TAX field, you can choose after/before redeem point.
In the Allow using reward points and coupon code at the same time field, you can set yes/no to
using coupon code same time with rewardpoints module.
Page 5
In the Minimum points required to be redeemed per purchase field, you can set minimum point for
redeem (set 0 or leave empty if no limitations).
In the Maximum Points allowed per account field, you can set max point for account customer (set 0
or leave empty if no limitations).
In the Add reward points to account balance when order status is field, you can choose status
order to complete add point for customer account.
In the Subtract earned points when order is refunded field, you can choose yes/no to subtract
earn point when refund order.
In the Restore redeemed points when order is refunded field, you can choose yes/no to subtract
redeem point when refund order.
In the Default Comment when importing points from CSV file field, you can set default comment
when import point for customer.
In the Default Reward Point Expiration (in days) field, you can set day for point expiration.
In the Allow Active/Disable customer points field, you can choose yes/no to allow show
active/disable for customer reward account.
Display Configuration
In the Unit name of reward points field, you can set unit name of reward points.
In the Position of unit name field, you can choose position of point unit.
In the Reward Points Currency Icon field, you can currency icon.
In the Display Reward Points Icon field, you can set yes/no. If Yes, Reward Point Icon replaces Unit
name of Reward Points.
In the Add option to show credit info field, you can set yes/no to show credit info.
In the Display Promotion Message field, you can set yes/no to display promotion message.
In the Display Promotion Banner field, you can set yes/no to display promotion banner.
In the Default Banner Size field, you can set default banner size. Example 900x400
Sharing Reward Points
In the Allow sending points to friends field, you can set yes/no to allow sending point to friends.
In the Sending point transaction to expire after (set hours) if not accepted by friend field, you
can set hours to expire transaction sending point for friends.
Facebook Configuration
In the Facebook Application Id field, you can set Facebook Application Id.
In the Like button event limit field, you can set limit to add point for like event.
In the Send button event limit field, you can set limit to add point for share event.
Email Notifications
In the Enable notifications field, you can choose yes/no notifications.
Page 6
In the Email Sender field, you can set email sender.
In the Balance Update Email Template field, you can set template email for Balance Update Email
Template
In the Reward Points Expiration Email Template field, you can set template email for Reward
Points Expiration Email Template
In the Points for Customer's Birthday Email Template field, you can set template email for Points
for Customer's Birthday Email Template
In the Sending Points Email Template field, you can set template email for Sending Points Email
Template
In the Invitation email template field, you can set template email for Invitation email template
In the Reminder email sent before points expire (in # of days) field, you can set day for reminder
email before point expire
❖ Earning Rules
- Catalog Earning Rules:
In Magehit Extension tab, select "Catalog Earning Rules":
You can Add new Catalog Earning Rules, edit and delete more rules.
Page 8
- Individual Reward points
In Magehit Extension tab, select "Individual Reward points":
You can set earn point for product
Page 9
When import point for product. Click button import product reward points.
- Shopping Cart Earning Rules.
In Magehit Extension tab, select " Shopping Cart Earning Rules ":
Page 11
- Customer Behavior Rules.
In Magehit Extension tab, select " Customer Behavior Rules ":
When add new behavior rules:
Page 12
❖ Spending Rules
- In Magehit Extension tab, select “Spending Rules ":
When adding new spending rules:
Page 14
❖ Customer Account
- In Magehit Extension tab, select "Customer Account ":
Click button "Import Reward Points " to import reward points for customer.
When view customer reward account:
Page 15
And tracsaction list of customer:
❖ Sell Product in points
- In Magehit Extension tab, select " Sell Product In Points":
Page 16
❖ Transaction History
- In Magehit Extension tab, select "All Transaction History":
Page 17
❖ Reports
- In Magehit Extension tab, select " Reports ":
You can filter by date to showing report of rewardpoint (overview, earn point, redeem point).
And clear the cache if you have any changes for our extension.
+ How to install extension:
- Unpack the extension ZIP file on your computer and connect ftp/sftp to server, then upload
extension package to the corresponding root folder of your Magento installation.
- Connect SSH to server and run command:
php bin/magento module:enable Magehit_Core Magehit_Rewardpoints
php bin/magento setup:upgrade
Page 18
rm -rf var/cache/ var/generation/ var/page_cache/ var/view_preprocessed/
- And clear cache in backend.
+ How to show in frontend:
- In folder module you can find "Template_integration.txt", copy code to display rewardpoint
in frontend
Reward Points - Template Integration Guide
---------------------------------------------
SHOW REWARD POINTS IN PRODUCT REVIEW FORM
----------------------------------------
1. edit the file:
app/design/frontend/default_package/your_theme/Magento_Review/templates/form.phtml
2. copy this code:
<?php echo $this->helper('Magehit\Rewardpoints\Helper\Data')-
>getDisplayEarnpointSubmitProductReview(); ?>
3. after this code:
<?php if ($block->getAllowWriteReviewFlag()): ?>
SHOW REWARD POINTS IN SIGNING UP NEWLETTER FORM
----------------------------------------------
Page 19
1. edit this file:
app/design/frontend/default_package/your_theme/Magento_Newsletter/templates/subscribe.phtm
l
2. insert this code:
<?php echo $this->helper('Magehit\Rewardpoints\Helper\Data')-
>getDisplayEarnpointSignUpNewLetter(); ?>
SHOW FACEBOOK LIKE & SEND BUTTON IN PRODUCT DETAIL PAGE
-------------------------------------------
1. edit the file:
app/design/frontend/default_package/your_theme/template/catalog/product/view.phtml
2. copy this code:
<?php echo Mage::helper('core/mwrewardpoints')->showFacebookRewardPoints(); ?>
3. before this code:
<?php if ($_product->getShortDescription()):?>
INVITATION CODE
-------------------------------------------
copy this code:
<?php echo $this->helper('Magehit\Rewardpoints\Helper\Data')->getInvitationTemplate(); ?>
into template that you want show
Page 20
FACEBOOK LIKE BUTTON
-------------------------------------------
copy this code:
$this->helper('Magehit\Rewardpoints\Helper\Data')->getDisplayFacebookLike();
+ Command cron for Reward Points :
bin/magento cron:run --group=magehit_rewardpoints_crontab
-Example more frontend screen: