Sha256: 14a8d1b231fc0e45bbf72976981ae9f9fac4f76bd16ffea5587498f17d4616ef

Contents?: true

Size: 393 Bytes

Versions: 3

Compression:

Stored size: 393 Bytes

Contents

Deface::Override.new(
  virtual_path: 'spree/admin/variants/_form',
  name:         'add_msrp_to_variants_edit',
  insert_after: 'div[data-hook="price"]',
  text:
<<HTMLBLOB
    <div class="field" data-hook="msrp">
      <%= f.label :msrp, Spree.t(:msrp) %>
      <%= f.text_field :msrp, :value => number_to_currency(@variant.msrp, :unit => ''), :class => 'fullwidth' %>
    </div>
HTMLBLOB
)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_msrp-2.1.7 app/overrides/add_msrp_to_variants_edit.rb
spree_msrp-2.3.1.2 app/overrides/add_msrp_to_variants_edit.rb
spree_msrp-2.2.4 app/overrides/add_msrp_to_variants_edit.rb