Coder Social home page Coder Social logo

spree-order-level's Introduction

Order Level

Adds order_minimum and order_increment to the Product model as well as adding them as extra fields to the Product administration page.

As an example, setting both to 10 is basically saying "You have to order at least 10 of these and if you want more they have to be ordered in batches of 10" so the customer has to order 10, 20, 30, ... etc.

This extensions migration add order_minimum and order_increment columns to the products table and add a comment column to the line_items table.

An override for /views/product/show.html.erb is included to demonstrate how to display a minimum quantity message to the customer. This override has been updated to work with the latest (0.7) version of Spree so if something breaks, please diff it with the base view.

An override for /views/orders/_line_item.html.erb is included to demonstrate the display of line_item.comment when an adjustment is made to the order quantity.

A localization file (config/lang/us-EN.yml) which includes the English version of all localization tags in thie extension.

spree-order-level's People

Contributors

stevemac avatar

Watchers

James Cloos avatar  avatar Elevation Dev 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.