Sha256: d0207ce6f014ab4aa39c6b0d1cb6389631849f8810cf3aac905f6c70f59a961c
Contents?: true
Size: 1013 Bytes
Versions: 28
Compression:
Stored size: 1013 Bytes
Contents
module Workarea module Admin module Discounts class QuantityFixedPriceViewModel < DiscountViewModel include Products include Categories 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_user_is_tagged'), 'user_tag' ], [ t('workarea.admin.pricing_discounts.options.when_in_segment'), 'segments' ] ] end def selected_condition_option if order_total? 'order_total' elsif user_tag? 'user_tag' elsif active_segment_ids.present? 'segments' end end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems