Skip to content

Simple Commerce to Cargo migration: No migration for widgets #46

@Jamesking56

Description

@Jamesking56

Bug description

If you've setup some widgets with Simple Commerce, there's no migration path for them in Cargo.

Not sure if this is simply a documentation exercise or whether a new command is needed that fixes the widgets.

How to reproduce

  1. Create a Statamic 5 site with Simple Commerce installed
  2. Setup Simple Commerce widgets in config/statamic/cp.php as follows:
'widgets' => [
      [
          'type' => 'orders_chart',
          'width' => 100,
      ],
      [
          'type' => 'recent_orders',
          'width' => 50,
          'limit' => 5,
      ],
      [
          'type' => 'top_customers',
          'width' => 50,
          'limit' => 5,
      ],
],
  1. Upgrade to Statamic 6
  2. Install Cargo and run the migration steps
  3. Login to the CP to find that it now errors due to the widgets no longer functioning

Logs

Environment

Environment
Application Name: ~snip: client confidentiality~
Laravel Version: 12.30.1
PHP Version: 8.4.12
Composer Version: 2.8.12
Environment: local
Debug Mode: ENABLED
URL: ~snip: client confidentiality~
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
public/storage: LINKED

Statamic
Addons: 3
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.0.0-alpha.8 PRO

Statamic Addons
duncanmcclean/statamic-cargo: 1.0.0-alpha.6
statamic/seo-pro: dev-statamic-v6-support
visuellverstehen/statamic-classify: dev-statamic-6-support

Cargo
Carts: file
Orders: file
Payment Gateways: Dummy

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions