Skip to content

silvershop/silvershop-discounts

Folders and files

NameName
Last commit message
Last commit date
Mar 28, 2018
May 13, 2014
Apr 14, 2014
Apr 20, 2011
Oct 26, 2020
Feb 22, 2019
Mar 4, 2019
Dec 31, 2015
Jan 16, 2016
Feb 16, 2016
Feb 10, 2018
Feb 10, 2018
Mar 3, 2016
Apr 10, 2019
Mar 4, 2019
Feb 13, 2018
Feb 22, 2019
Feb 22, 2019

Repository files navigation

SilverShop - Discounts

Latest Stable Version Latest Unstable Version Build Status Code Coverage Scrutinizer Quality Score Total Downloads

Allows creating discounts for products / orders.

  • Discount by various criteria, including:
  • Time
  • User group
  • Product/Category
  • Number of uses
  • Order value
  • Shipping zone
  • Coupon codes
  • Gift voucher products
  • Shipping discount

Discounts can be applied to individual products, cart subtotal, or shipping. Discounts can be globally enabled/disabled.

Requirements

  • SilverShop Module

Installation

	composer require silvershop/discounts dev-master

If you are using the stepped checkout, add the CheckoutStep_Discount checkout step:

SilverShop\Page\CheckoutPage:
  steps:
    'discount' : 'SilverShop\Discounts\Checkout\Step\CheckoutStepDiscount'

If you would like to display the coupon form seperately to the checkout form, apply the following extension. This will make CouponForm available in the checkout template:

SilverShop\Page\CheckoutPageController:
  extensions:
    - SilverShop\Discounts\Extensions\CouponFormCheckoutDecorator

Add the OrderDiscountModifier modifier to your order modifiers yaml config:

SilverShop\Model\Order:
  modifiers:
    - SilverShop\Discounts\Model\Modifiers\OrderDiscountModifier

Specific Pricing

Extend Product and/or ProductVariation with the SpecificPricingExtension to introduce a pricing table for each product. This allows admins to set prices according to things like, date, and membership group.

SilverShop\Page\Product:
  extensions:
    - SilverShop\Discounts\Extensions\SpecificPricingExtension