Amasty Rewards Plugin
The Amasty Rewards plugin integrates Amasty Reward Points extension with Mage2Plenty, ensuring that reward point transactions, redemptions, and earnings are properly synchronized with PlentyONE orders.
Overview
Package: softcommerce/module-plenty-amasty-rewards
Category: Amasty Integrations
License: OSL-3.0 / AFL-3.0
Status: Production Ready
Features
- Points Usage Export: Exports reward points used in orders as discount totals
- Points Earned Tracking: Synchronizes reward points earned from purchases
- Redemption Discounts: Handles reward point redemptions as order totals adjustments
- Balance Adjustments: Tracks reward point balance changes per order
- Multi-Currency: Supports reward points in multi-currency stores
- Order Total Integration: Correctly calculates order totals with reward points applied
Use Cases
Customer Redeems Points
Scenario: Customer uses 500 points ($5.00) for order discount
Order Details:
- Subtotal: $50.00
- Reward Points: -$5.00 (500 points)
- Grand Total: $45.00
Plugin Action:
- Exports order with $45.00 grand total
- Includes reward redemption as discount line
- Records 500 points used
- Synchronizes with PlentyONE accounting
Customer Earns Points
Scenario: Customer earns 100 points from $100 purchase
Order Details:
- Subtotal: $100.00
- Points Earned: 100 points
Plugin Action:
- Exports order normally
- Records points earned in order metadata
- Tracks for future redemptions
- Available for loyalty reporting
Mixed Scenario
Scenario: Customer uses 200 points AND earns 150 new points
Order Details:
- Subtotal: $75.00
- Reward Discount: -$2.00 (200 points used)
- Grand Total: $73.00
- Points Earned: 150 points
Plugin Action:
- Exports full transaction details
- Tracks both redemption and earning
- Maintains accurate point balance
- Synchronizes complete order data
Requirements
Magento Extensions
- Amasty Reward Points (
amasty/rewards) - Required
Mage2Plenty Modules
softcommerce/module-plenty-profile- Required for synchronization
System Requirements
- Magento 2.4.4 - 2.4.8
- PHP 8.1 - 8.4
- Mage2Plenty connector installed and configured
Installation
Via Composer
# Install the plugin
composer require softcommerce/module-plenty-amasty-rewards
# Run Magento setup
bin/magento setup:upgrade
bin/magento cache:flush
# For production (optional)
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
Verify Installation
# Check module status
bin/magento module:status SoftCommerce_PlentyAmastyRewards
# Should show as enabled
Configuration
This plugin works automatically once installed. It integrates with your existing order export configuration.
Default Behavior
The plugin automatically:
- Detects reward point usage in orders
- Calculates reward point discount amounts
- Tracks points earned from orders
- Includes reward data in order export
- Maintains accurate order totals
How It Works
Order Export Flow with Rewards
Order Placed
↓
Contains Reward Points? → No → Normal export
↓ Yes
Plugin Activated
↓
Calculate Points Used/Earned
↓
Adjust Order Totals
↓
Add Reward Metadata
↓
Export to PlentyONE
Data Mapping
| Magento Data | PlentyONE Field | Notes |
|---|---|---|
| Points Used | Discount | Monetary value of points |
| Points Earned | Custom Field | For loyalty tracking |
| Point Balance Change | Order Metadata | Net point adjustment |
| Reward Discount | Order Total | Applied to grand total |
Troubleshooting
Reward Discount Not Exported
Problem: Order shows wrong total in PlentyONE (reward discount missing)
Solutions:
-
Verify plugin is enabled:
bin/magento module:status SoftCommerce_PlentyAmastyRewards -
Check reward points were actually applied:
- View order in Magento Admin
- Check order totals section
- Verify reward points discount shows
-
Review order export logs:
tail -f var/log/softcommerce/plenty/order.log -
Verify order export profile includes all totals
Incorrect Point Calculation
Problem: Points-to-currency conversion wrong in export
Solutions:
-
Check Amasty Rewards configuration:
- Stores → Configuration → Amasty → Reward Points
- Verify "Points Value" setting
- Confirm exchange rate (points to currency)
-
Review multi-currency configuration if applicable
-
Verify point balance in customer account
-
Check for rounding issues in calculations
Points Earned Not Tracked
Problem: Points earned from order not showing in PlentyONE
Solutions:
- Verify Amasty Rewards is configured to award points for purchases
- Check earning rules in Amasty configuration
- Confirm order status qualifies for point earning
- Review order metadata in export logs
- Check if points are pending approval
Best Practices
Point System Setup
- Clear Exchange Rate: Set clear points-to-currency conversion
- Earning Rules: Configure consistent earning rules
- Expiration Policy: Define point expiration clearly
- Communication: Inform customers of point values
Order Processing
- Test Orders: Process test orders with reward points before going live
- Verify Totals: Always verify order totals match between systems
- Monitor Balance: Regularly audit customer point balances
- Reconciliation: Periodic reconciliation between Magento and PlentyONE
Multi-Currency Considerations
- Currency Conversion: Ensure points convert correctly in all currencies
- Display Values: Show point values in customer's selected currency
- Accounting: Maintain consistent accounting across currencies
- Testing: Test reward redemptions in all supported currencies
Common Scenarios
Scenario 1: First Time Point Usage
Customer Balance: 1000 points
Order Value: $50.00
Points Used: 500 (= $5.00)
New Balance: 500 points
Export: Order total $45.00 with $5.00 reward discount
Scenario 2: Earning and Using
Starting Balance: 200 points
Points Used: 200 (= $2.00)
Order Value: $100.00
Points Earned: 100
Net Change: -200 + 100 = -100 points
Export: Full transaction details with both redemption and earning
Scenario 3: Partial Redemption
Order Value: $150.00
Available Points: 5000 (= $50.00)
Customer Uses: 1000 points (= $10.00)
Export: Order $140.00 with $10.00 reward discount
Remaining: 4000 points in customer account
Related Plugins
Amasty Suite
- Amasty Gift Card - Gift card integration
- Amasty Promo - Promotional items
- Amasty Cash on Delivery - COD fees
Order Export
- Order Export Profile - Configure order synchronization
- Customer Export Profile - Customer data sync
Support
Getting Help
If you encounter issues:
- 📧 Email: support@softcommerce.co.uk
- 📞 Phone: +44 2080 587 795 (GMT working hours)
- 🐛 Bug Reports: GitHub Issues
Source Code
- Location:
/packages/modules/module-plenty-amasty-rewards - License: OSL-3.0 / AFL-3.0
- Contributions: Welcome via pull requests
Version Information
Check current version:
composer show softcommerce/module-plenty-amasty-rewards
Related Documentation
- Free Plugins Overview - All available plugins
- Order Export Profile - Order synchronization setup
- Installation Guide - Core installation
- Troubleshooting Orders - Order sync issues