Download the PHP package krombox/module-downloadable-links-sync without Composer
On this page you can find all versions of the php package krombox/module-downloadable-links-sync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download krombox/module-downloadable-links-sync
More information about krombox/module-downloadable-links-sync
Files in krombox/module-downloadable-links-sync
Package module-downloadable-links-sync
Short Description Magento 2 module to sync links for placed orders
License MIT
Informations about the package module-downloadable-links-sync
Magento 2 Downloadable Links Sync
This module lets you sync new, edited, and deleted product downloadable links to existing orders. Example: Your store has product A with a downloadable link, "link #1." There are several orders containing that product. After some time you decided to add "link #2" and change the title for the initial link to "link #1 extended". By clicking Sync links button on the product edit page or by saving the product(depending on settings) your links will be synchronized with the existing orders.
The module uses Magento`s message queue to process the links sync. AMQP(RabbitMQ) or DB connection is used depend on configuration.
Prerequirements
1) PHP >= 8.0
Installation
To install, use composer:
Usage
To process the queue, either enable CRON or run the following CLI command manually: bin/magento queue:consumers:start krombox.downloadable_links.sync --max-messages=1
CLI command
If you want to sync multiple products at once or are experiencing timeout issues due to a large number of related orders, you can use the CLI command as an alternative. By default, all products on your store will be processed.
bin/magento krombox:downloadable_links:sync
To sync specific product links, use the --product-ids option to limit processing to particular product IDs or ID ranges. In the example below, command processes products with the following IDs: 1,3,4,5,8,10,11,12.
bin/magento krombox:downloadable_links:sync --product-ids 1,3-5,8,10-12
Extensibility
You can extend the module by creating a custom operation. To do so, create a virtualType for the class Krombox\DownloadableLinksSync\Model\Link\Operation with the appropriate configuration.
Afterward, add custom operation to Krombox\DownloadableLinksSync\Model\Link\OperationPool.
Alternatively, you can create a custom operation class by implementing Krombox\DownloadableLinksSync\Model\Link\OperationInterface interface.
For more details, please refer to the etc/di.xml file.
Donate
BTC (BitCoin): bc1qmp5f6n6pe9xulrq0604f2zmhplz4ujq9p8cner
LTC (Litecoin): ltc1qv82lyk9u8gc4ef8duhda64ha4y435v2ve4p6py
ETH (Ethereum ERC20): 0x273b0D4d4e6F6E03E2E39a3Ad02aD57d9680C820
SOL, RAY, BONK, USDT (Solana): 2TjJhsiqVuqZ2YuJvT5DAMuBXD5GFpu6k8ibR1pd4i8t
TRX, USDT (TRON TRC20): TGunJ3mJx5tfYJtLsEiisqcrz5d7oga6No
Credits
License
The MIT License (MIT). Please see License File for more information.
