Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
Would it be possible to add the option to clone a flat rate service, with all its components?
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#3 | commerce_flat_rate-n1403760-3.patch | 3.72 KB | DamienMcKenna |
Comments
Comment #1
ziobudda CreditAttribution: ziobudda commentedAny news ?
Comment #2
DamienMcKennaAm working on this.
Comment #3
DamienMcKennaThis appears to work.
Besides cloning the shipping rate, it also needed to clone the rule conditions onto the new rule, after some fiddling I finally worked out how to make it work.
Comment #4
DamienMcKennaFYI you'll need to clear the caches (or at least rebuild the menus) to have this work as it adds a new menu item.
Comment #5
DamienMcKennaThe patch adds a new "clone" option on the shipping rates list:
Clicking that "clone" link opens up the edit form with the values of the original rate added and the name set to "Clone of [original name]":
Clicking "Save flat rate" will result in the clone being saved:
In addition all of the conditions will now be present on the new rate: