Coder Social home page Coder Social logo

spree_delivery_date's Introduction

Spree Delivery Date

Requires user to enter a delivery date during checkout (delivery section). The delivery date must be tomorrow or later.

  • Uses validation to ensure the user specifies a date tomorrow or later.
  • Shows delivery date during checkout confirmation.
  • Shows delivery date when viewing or editing order as admin.
  • Allows admin to filter orders by delivery date (date range).
  • Allows admin to sort orders by delivery date.
  • Adds delivery date column to orders index page table.

Installing

Add the gem to your Gemfile

$ gem 'spree_delivery_date', :git => '[email protected]:sgringwe/spree_delivery_date.git'

bundle with

$ bundle update

and run

$ rails g spree_delivery_date:install

to install and (be asken to) run the migrations. This migration simply adds the delivery_date field to Spree::Order.

Remaining Features

The only remaining feature I can think to implement is an option for users to specify their own custom validation method for validating the delivery date. With this option, users of this plugin could specify custom rules such as no deliveries on weekends, require 3 days for preperation (instead of 1 day as of current), etc.

spree_delivery_date's People

Contributors

sgringwe avatar

Watchers

Igor avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.