Sha256: 4c701ec34e37a1d5468143f305bd88625997d9aebcc3e13e4299b002fd643a5e

Contents?: true

Size: 732 Bytes

Versions: 62

Compression:

Stored size: 732 Bytes

Contents

Description:
    Creates a new custom pricing discount that can be applied to order
    totals, shipping totals, products, and other price paths.

Example:
    rails generate workarea:discount FreeShipping

    creates:
        app/models/workarea/pricing/discount/free_shipping.rb
        app/view_models/workarea/admin/discounts/free_shipping_view_model.rb
        app/views/workarea/admin/pricing_discounts/properties/_free_shipping.html.haml
        app/views/workarea/admin/create_pricing_discounts/_free_shipping.html.haml
        test/models/workarea/pricing/discount/free_shipping_test.rb
        test/view_models/workarea/admin/discounts/free_shipping_view_model_test.rb
    modifies:
      config/initializers/workarea.rb

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.13 lib/generators/workarea/discount/USAGE
workarea-core-3.4.12 lib/generators/workarea/discount/USAGE