Shipping rate conditions not migrated

Created on 15 December 2023, over 1 year ago
Updated 22 December 2023, over 1 year ago

Problem/Motivation

Running the commerce1_shipping_flat_rate migration results in all of the shipping rate records being created with no conditions.

Steps to reproduce

Migrate a D7 site that has conditions on the shipment definitions.

Proposed resolution

upgrade_commerce1_shipping_flat_rate should include the conditions.

Remaining tasks

Work out how to fix this problem.

User interface changes

Migrated shipping rates will include conditions.

API changes

TBD

Data model changes

TBD

✨ Feature request
Status

Active

Version

4.0

Component

Drupal Commerce 1.x

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @DamienMcKenna
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Shipping rate details in Commerce 1 / D7 are stored as Rules configurations, which are serialized objects in the database. Argh.

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    I think the easiest solution would be to run the existing shipping migration once to get the basic details, then add all of the conditions for each item and export them using Default Content. Am going to try this approach and see how well it works.

Production build 0.71.5 2024