Download the PHP package iwd/dominate-aheadworks-reward-points-compatibility-patch without Composer
On this page you can find all versions of the php package iwd/dominate-aheadworks-reward-points-compatibility-patch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iwd/dominate-aheadworks-reward-points-compatibility-patch
More information about iwd/dominate-aheadworks-reward-points-compatibility-patch
Files in iwd/dominate-aheadworks-reward-points-compatibility-patch
Package dominate-aheadworks-reward-points-compatibility-patch
Short Description Compatibility extension for Aheadworks RewardPoints with Dominate checkout SaaS integration
License proprietary
Informations about the package dominate-aheadworks-reward-points-compatibility-patch
Dominate Aheadworks RewardPoints Compatibility Patch
This Magento 2 extension provides compatibility between Aheadworks RewardPoints and Dominate checkout system.
Overview
The extension creates a custom reward points field that integrates with the Dominate checkout iframe and uses Aheadworks' existing reward points functionality. It adds reward points handling to the IWD CheckoutConnector page via a separate JavaScript file.
Architecture
- Block Class:
Block/Checkout/RewardPoints- Main block class for reward points functionality - CustomDataProvider:
Model/CustomDataProvider- Sends collapsible HTML input field block to iframe - CartCustomDataProvider:
Model/CartCustomDataProvider- Sends dynamic variables and HTML block in cart totals section - Totals Integration:
Model/Cart/CartTotals- Extends IWD CartTotals to inject custom data - Templates:
view/webapi_rest/templates/checkout/- PHTML templates for rendering reward points UI - AW Extensions:
Model/Calculator/Earning/EarnItemResolver/RawItemProcessor/InvoiceItemsResolver&Plugin/Model/Sales/InvoiceRepositoryPlugin- Aheadworks compatibility - DI Configuration:
etc/di.xml- Dependency injection preferences - Iframe JavaScript: Refactored client-side code for Dominate iframe integration (see Configuration section)
Installation
Option 1: Manual Installation
- Copy the extension files to
app/code/DominateAheadworksCompatibility/RewardPoints/ - Run Magento commands:
Option 2: Composer Installation
-
Add the extension to your composer.json:
- Run Magento commands:
Configuration
JavaScript Integration
The following JavaScript code needs to be added to Dominate Merchant Dashboard > Features > Custom Code > Body Code:
Parent Window Integration
The extension automatically adds reward points handling to the IWD CheckoutConnector page through a separate JavaScript file. No additional configuration is required for the parent window integration.
PostMessage Communication
The JavaScript sends the following messages to the parent window:
Apply Points:
Remove Points:
Expected Response Messages:
Success responses:
Error responses:
Dependencies
- Aheadworks_RewardPoints
- IWD_CheckoutConnector
File Structure
Technical Implementation
Data Synchronization
- Automatic Updates: Syncs with
window.checkoutData.cart.data.custom_data.variableson checkout updates - Smart Updates: Only modifies input values when max allowed points actually change
- State Management: Maintains consistent UI state across multiple form instances
API Integration
- PostMessage Communication: Sends apply/remove requests to parent window via postMessage API
- Response Handling: Processes success/error responses with proper UI state updates
- IWD Integration: Uses IWD CheckoutConnector's CartTotals extension point to inject reward points data
All versions of dominate-aheadworks-reward-points-compatibility-patch with dependencies
magento/framework Version *
magento/module-sales Version *
magento/module-quote Version *
magento/module-directory Version *
magento/module-tax Version *
aheadworks/module-reward-points Version *
iwd/dominate-saas Version *