This project is not covered by Drupal’s security advisory policy.
Provides functionality to transfer a product variation to another product in Drupal Commerce.
Use Case
This module was created to have an easy way to move a product variation to another product without having to re-create or migrate the variation. The internal ID of the variation is not modified, keeping references to the variation intact for data such as order history and stock transactions.
Installation / Usage
- Install the module (https://www.drupal.org/docs/develop/using-composer/manage-dependencies#a...)
- Edit permissions and give "transfer commerce_product_variation access" to users who should be allowed to transfer product variations. The user must also have access to manage the variation type they intend to transfer.
- Visit a product's variation listing page (e.g. /product/PRODUCT_ID/variations).
- Click the operations dropdown and click the "Transfer" link.
- Search for a product that you wish to transfer the variation to.
- Click the submit button. If successful, you will be redirected to the product's variation listing that you transferred the variation to.
- If the transfer was not successful, you will be shown a message for why the transfer did not go through. See the restrictions for transferring variations section.
Transfer Restrictions
- Variation's may not transfer to the product they already belong to.
- Variation's may not transfer to a product type that does not allow variations of that type.
- Variation's may not transfer to a product that only allows one variation that already has one variation.
Permissions
In order to transfer a variation, the user must have the "transfer commerce_product_variation access" permission, as well as permission to manage the variation type.
Project information
- Project categories: E-commerce
- Ecosystem: Commerce Core
- Created by ericchew on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
