Developers

Console Commands

Snipcart includes console commands you can run from your Craft project’s directory.

Orders

snipcart/verify/check-orders

Checks that your most recent Snipcart orders with shippable items made it to ShipStation. Any order missing from ShipStation is sent again if it was created within the reFeedAttemptWindow setting (15 minutes by default), and an email listing the missing orders is sent to your notificationEmails addresses. Run this on a schedule, such as a cron job, to recover orders that failed to reach ShipStation.

The command takes two positional arguments, in this order.

ArgumentDescriptionDefault
forceFeedSend every missing order to ShipStation again, regardless of when it was created. Use 1 or 0.0
limitThe number of recent orders to check.3
php craft snipcart/verify/check-orders 0 10

Maintenance

snipcart/cleanup

Drops the snipcart_product_details database table, deleting all stored Product Details field values. This can’t be undone, so only run it when you’re removing Snipcart’s data, and back up your database first.

php craft snipcart/cleanup