Sha256: 2ccc1530cc4dc978615d808cd2d7962860c1247b78e6261f2d101a68a24b59cd
Contents?: true
Size: 958 Bytes
Versions: 34
Compression:
Stored size: 958 Bytes
Contents
module Workarea module Admin module Discounts class ProductAttributeViewModel < DiscountViewModel def condition_options [ [ t('workarea.admin.pricing_discounts.options.for_everyone'), nil ], [ t('workarea.admin.pricing_discounts.options.when_order_total'), 'order_total' ], [ t('workarea.admin.pricing_discounts.options.when_item_quantity'), 'item_quantity' ], [ t('workarea.admin.pricing_discounts.options.when_user_is_tagged'), 'user_tag' ] ] end def selected_condition_option if order_total? 'order_total' elsif item_quantity? 'item_quantity' elsif user_tag? 'user_tag' end end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems