Coder Social home page Coder Social logo

helpfulrobot / i-lateral-silverstripe-commerce-bulkprice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from i-lateral/silverstripe-commerce-bulkprice

0.0 2.0 0.0 14 KB

Silverstripe Commerce extension that allows admins to set a discount price per product.

License: BSD 3-Clause "New" or "Revised" License

PHP 93.69% Scheme 6.31%

i-lateral-silverstripe-commerce-bulkprice's Introduction

Silverstripe Commerce Bulk Price

Extension to silverstripe commerce module that allows you to alter a product's price when added to the cart, if a certain number of that product are added.

Author

This module is created and maintained by ilateral

Contact: [email protected]

Dependancies

  • SilverStripe Framework 3.1.x
  • Silverstripe Commerce

Installation

Install this module either by downloading and adding to:

[silverstripe-root]/commerce-bulkdiscounts

Then run: dev/build/?flush=all

Or alternativly add to your project's composer.json

Usage

Once installed, you can navigate to a product in the admin and add bulk pricing under the "Bulk Prices" tab.

Each bulk price has 2 fields:

  • Quantity: The quantitiy of items needing to be purchased to qualify for the new price. This can be either a range (eg: 10-19), a fixed number (eg: 10) or an amount over a certain number (eg: 30+).
  • Price: The price that this bulk item will be charged at.

Once you have added this information and saved, it will be automatically used by the shopping cart when the relevent item is added with the specified quantity.

Adding a bulk price table to your product template

This module adds a variable to your catalogue controller that generates a table of bulk prices. This variable is:

$BulkPriceTable

Adding this variable to your product template will generate a table of pricing options.

Note If you want to customise this table, you can overwrite the BulkPriceTable.ss template file.

i-lateral-silverstripe-commerce-bulkprice's People

Contributors

mlewis-everley avatar

Watchers

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