{"id":21696490,"url":"https://github.com/madetech/spree_abandoned_orders","last_synced_at":"2026-05-20T04:42:03.757Z","repository":{"id":150895507,"uuid":"61035913","full_name":"madetech/spree_abandoned_orders","owner":"madetech","description":null,"archived":false,"fork":false,"pushed_at":"2016-06-29T21:08:20.000Z","size":37,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T14:11:44.069Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madetech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-13T12:50:21.000Z","updated_at":"2016-06-13T16:54:32.000Z","dependencies_parsed_at":"2023-05-03T17:38:39.135Z","dependency_job_id":null,"html_url":"https://github.com/madetech/spree_abandoned_orders","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fspree_abandoned_orders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fspree_abandoned_orders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fspree_abandoned_orders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fspree_abandoned_orders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madetech","download_url":"https://codeload.github.com/madetech/spree_abandoned_orders/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244636152,"owners_count":20485441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T19:20:07.640Z","updated_at":"2026-05-20T04:42:03.699Z","avatar_url":"https://github.com/madetech.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Abandoned Orders For Spree\n\n[![Code Climate](https://codeclimate.com/github/madetech/spree_abandoned_orders/badges/gpa.svg)](https://codeclimate.com/github/madetech/spree_abandoned_orders) [![Build Status](https://travis-ci.org/madetech/spree_abandoned_orders.svg?branch=master)](https://travis-ci.org/madetech/spree_abandoned_orders) [![Test Coverage](https://codeclimate.com/github/madetech/spree_abandoned_orders/badges/coverage.svg)](https://codeclimate.com/github/madetech/spree_abandoned_orders/coverage)\n\nAn abandoned order extension for Spree, which looks for orders with line items that were created between X \u0026 Y days ago and sends an email notification to the customer to remind them to purchase.\n\nOriginally this gem was forked from [https://github.com/Hates/spree_abandoned_cart_email](https://github.com/Hates/spree_abandoned_cart_email) but we subsequently decided to rewrite the functionality to make it more modular and reusable across multiple applications.\n\n##Installation\n\nAdd spree_abandoned_orders to your Gemfile:\n\n```ruby\ngem 'spree_abandoned_orders'\n```\n\nBundle your dependencies and run the installation generator:\n\n```ruby\nbundle install\nbundle exec rails g spree_abandoned_orders:install\n\nbundle exec rake db:migrate\n```\n\nUse the config values below to change settings:\n\n```ruby\nSpree::AbandonedOrdersConfig.inactive_for = 12.hours\nSpree::AbandonedOrdersConfig.ignore_after = 5.days\n```\n\nOverride the email view to customise:\n\n```ruby\napp/views/spree/abandoned_order_mailer/abandoned_email.html.erb\n```\n\nCreate a rake task to send the email:\n\n```ruby\ndesc \"Abandoned order email\"\ntask send_abandoned_order_notifications: :environment do\n    abandoned_orders = Spree::AbandonedOrders::LookupQuery.new.find_each\n    Spree::AbandonedOrders::FilterNotifiedQuery.new(abandoned_orders).find_each.each do |order|\n      Spree::AbandonedOrders::Notifier.new(order).save\n    end\nend\n```\n\n\n##Testing\n\nTo run the tests, create a dummy Rails application and run the suite.\n\n```ruby\nbundle\nbundle exec rake test_app\nbundle exec rspec spec\n```\n\n## Credits\n\n![made](https://s3-eu-west-1.amazonaws.com/made-assets/googleapps/google-apps.png)\n\nDeveloped and maintained by [Made Tech Ltd](https://www.madetech.com/). Key contributions:\n\n* [Nick Wood](https://github.com/SebAshton)\n* [Rory MacDonald](https://github.com/rorymacdonald)\n* [Andrew Scott](https://github.com/askl56)\n\n\n## License\nCopyright © 2016 [Made Tech Ltd](https://www.madetech.com/). It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadetech%2Fspree_abandoned_orders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadetech%2Fspree_abandoned_orders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadetech%2Fspree_abandoned_orders/lists"}